Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001782/0.001782, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 239.3 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 191.6 kB / 289.6 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4566/0.4566, allocations: 78.54 MB / 418.2 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 79.88 kB / 497.6 MB, free: 6.332 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1362/0.1379, allocations: 68.18 MB / 0.5525 GB, free: 2.113 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test): time 0.2327/0.3707, allocations: 6.611 MB / 0.5589 GB, free: 35.77 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004004/0.3747, allocations: 2.018 MB / 0.5609 GB, free: 35.21 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007489/0.3755, allocations: 15.88 kB / 0.5609 GB, free: 35.21 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007022/0.3762, allocations: 242.5 kB / 0.5612 GB, free: 35.2 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001801/0.3781, allocations: 0.7678 MB / 0.5619 GB, free: 35.05 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001378/0.3794, allocations: 0.6646 MB / 0.5626 GB, free: 34.97 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.3809, allocations: 1.631 MB / 0.5641 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004446/0.3813, allocations: 347.4 kB / 0.5645 GB, free: 34.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006858/0.382, allocations: 0.6627 MB / 0.5651 GB, free: 34.51 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007204/0.3827, allocations: 0.8159 MB / 0.5659 GB, free: 34.29 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001862/0.3829, allocations: 123.7 kB / 0.566 GB, free: 34.29 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000484/0.3834, allocations: 264.1 kB / 0.5663 GB, free: 34.28 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002292/0.3837, allocations: 336.2 kB / 0.5666 GB, free: 34.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004651/0.3841, allocations: 0.6693 MB / 0.5673 GB, free: 33.95 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.3854, allocations: 1.677 MB / 0.5689 GB, free: 33.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3854, allocations: 0 / 0.5689 GB, free: 33.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3855, allocations: 2.375 kB / 0.5689 GB, free: 33.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.3855, allocations: 0 / 0.5689 GB, free: 33.57 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.008449/0.3939, allocations: 2.772 MB / 0.5716 GB, free: 32.59 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.394, allocations: 8.688 kB / 0.5716 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001417/0.3941, allocations: 129.1 kB / 0.5717 GB, free: 32.55 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004661/0.3988, allocations: 0.7806 MB / 0.5725 GB, free: 32.46 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.4003, allocations: 0.8885 MB / 0.5734 GB, free: 32.04 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/0.4006, allocations: 253.9 kB / 0.5736 GB, free: 31.85 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/0.4007, allocations: 87.62 kB / 0.5737 GB, free: 31.85 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002063/0.4028, allocations: 1.173 MB / 0.5748 GB, free: 31.77 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.4028, allocations: 5.594 kB / 0.5748 GB, free: 31.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.4029, allocations: 35.31 kB / 0.5749 GB, free: 31.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.886e-05/0.403, allocations: 18.38 kB / 0.5749 GB, free: 31.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002038/0.405, allocations: 1.076 MB / 0.576 GB, free: 31.76 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005543/0.4106, allocations: 3.683 MB / 0.5795 GB, free: 30.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002118/0.4127, allocations: 1.549 MB / 0.5811 GB, free: 29.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.4141, allocations: 0.7864 MB / 0.5818 GB, free: 28.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.757e-05/0.4142, allocations: 15.81 kB / 0.5818 GB, free: 28.84 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001745/0.4159, allocations: 0.8907 MB / 0.5827 GB, free: 28.49 MB / 430.1 MB Notification: Performance of pre-optimization done (n=102): time 4.468e-06/0.416, allocations: 0 / 0.5827 GB, free: 28.49 MB / 430.1 MB Notification: Performance of matching and sorting (n=102): time 0.02759/0.4436, allocations: 6.955 MB / 0.5895 GB, free: 27.04 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.4437, allocations: 117.4 kB / 0.5896 GB, free: 26.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/0.4459, allocations: 1.036 MB / 0.5906 GB, free: 26.48 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003011/0.4462, allocations: 45.95 kB / 0.5907 GB, free: 26.44 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004065/0.4466, allocations: 0.5 MB / 0.5912 GB, free: 26.04 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005588/0.4472, allocations: 374.2 kB / 0.5915 GB, free: 25.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008011/0.448, allocations: 247.3 kB / 0.5918 GB, free: 25.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4481, allocations: 355.2 kB / 0.5921 GB, free: 25.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00197/0.4501, allocations: 0.7673 MB / 0.5928 GB, free: 25.01 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.4522, allocations: 0.9113 MB / 0.5937 GB, free: 24.61 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02223/0.4745, allocations: 5.436 MB / 0.599 GB, free: 22.9 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.311e-05/0.4745, allocations: 0.9688 kB / 0.599 GB, free: 22.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.01588/0.4904, allocations: 4.507 MB / 0.6034 GB, free: 21.72 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.888e-05/0.4905, allocations: 60.27 kB / 0.6035 GB, free: 21.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/0.4906, allocations: 5.547 kB / 0.6035 GB, free: 21.65 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007342/0.4979, allocations: 1.864 MB / 0.6053 GB, free: 21.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.4993, allocations: 251.5 kB / 0.6056 GB, free: 21.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02174/0.5211, allocations: 9.478 MB / 0.6148 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.5232, allocations: 190.8 kB / 0.615 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003399/0.5236, allocations: 51.98 kB / 0.6151 GB, free: 14.66 MB / 430.1 MB Warning: Assuming fixed start value for the following 2 variables: order6Type2_Inputs_Outputs.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order6Type2_Inputs_Outputs.delta:VARIABLE(flow=false start = order6Type2_Inputs_Outputs.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0008918/0.5245, allocations: 297.5 kB / 0.6153 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00043/0.5249, allocations: 124.3 kB / 0.6155 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01289/0.5378, allocations: 4.189 MB / 0.6195 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.851e-05/0.5379, allocations: 12 kB / 0.6196 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.5379, allocations: 0 / 0.6196 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.597e-05/0.538, allocations: 7.922 kB / 0.6196 GB, free: 9.996 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01521/0.5532, allocations: 5.976 MB / 0.6254 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/0.5532, allocations: 0 / 0.6254 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007579/0.554, allocations: 107.9 kB / 0.6255 GB, free: 3.781 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005905/0.5599, allocations: 1.833 MB / 0.6273 GB, free: 1.945 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002506/0.5602, allocations: 20 kB / 0.6273 GB, free: 1.926 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02288/0.5831, allocations: 10.32 MB / 0.6374 GB, free: 7.316 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.942e-06/0.5831, allocations: 3.938 kB / 0.6374 GB, free: 7.312 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01687/0.6, allocations: 5.13 MB / 0.6424 GB, free: 2.145 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006316/0.6007, allocations: 227.2 kB / 0.6426 GB, free: 1.902 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005231/0.6013, allocations: 24.81 kB / 0.6426 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/0.6029, allocations: 111.9 kB / 0.6428 GB, free: 1.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008/0.6037, allocations: 212.7 kB / 0.643 GB, free: 1.562 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001739/0.6039, allocations: 28.55 kB / 0.643 GB, free: 1.535 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001393/0.6053, allocations: 0.6993 MB / 0.6437 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6053, allocations: 0 / 0.6437 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002039/0.6074, allocations: 479.5 kB / 0.6441 GB, free: 368 kB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order6Type2_Inputs_Outputs.delta,order6Type2_Inputs_Outputs.w,order6Type2_Inputs_Outputs.e1q,order6Type2_Inputs_Outputs.e1d,order6Type2_Inputs_Outputs.e2q,order6Type2_Inputs_Outputs.e2d,aVRI.ExcitationSystem.x_scaled[1],aVRI.derivativeBlock.x,aVRI.firstOrder2.y,aVRI.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(26,10), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.017/0.6244, allocations: 5.724 MB / 0.6497 GB, free: 10.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008607/0.633, allocations: 2.72 MB / 0.6524 GB, free: 7.848 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.6331, allocations: 0 / 0.6524 GB, free: 7.848 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005606/0.6387, allocations: 1.799 MB / 0.6541 GB, free: 6.016 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/0.6403, allocations: 116.5 kB / 0.6542 GB, free: 5.902 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04702/0.6874, allocations: 17.33 MB / 0.6712 GB, free: 4.184 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.6885, allocations: 1.139 MB / 0.6723 GB, free: 3.016 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007867/0.6893, allocations: 111.9 kB / 0.6724 GB, free: 2.906 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009295/0.6903, allocations: 475.3 kB / 0.6728 GB, free: 2.441 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6903, allocations: 0 / 0.6728 GB, free: 2.441 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08003/0.7703, allocations: 36.81 MB / 0.7088 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.73, allocations: 0 / 0.7088 GB, free: 13.92 MB / 0.5137 GB (rm -f OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 OpenIPSL_OpenIPSL_Tests_Controls_PSAT_AVR_AVRTypeII_Test.fmu > OpenIPSL_OpenIPSL.Tests.Controls.PSAT.AVR.AVRTypeII_Test.pipe 2>&1)