Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 210.9 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.588/1.588, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1873/0.1873, allocations: 38.54 MB / 352.5 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002112/0.002112, allocations: 75.89 kB / 492.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3456, allocations: 62.46 MB / 0.5419 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.007276/0.3529, allocations: 4.753 MB / 0.5466 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004189/0.3571, allocations: 2.336 MB / 0.5489 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000411/0.3575, allocations: 17.72 kB / 0.5489 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001451/0.359, allocations: 432.7 kB / 0.5493 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001576/0.3606, allocations: 0.5126 MB / 0.5498 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007642/0.3613, allocations: 280.6 kB / 0.5501 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000992/0.3623, allocations: 0.7382 MB / 0.5508 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005371/0.3628, allocations: 289.6 kB / 0.5511 GB, free: 9.238 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005676/0.3634, allocations: 335.9 kB / 0.5514 GB, free: 9.047 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005207/0.3639, allocations: 335.7 kB / 0.5517 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.004e-05/0.364, allocations: 36.5 kB / 0.5517 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001044/0.365, allocations: 0.5264 MB / 0.5522 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.3652, allocations: 194.6 kB / 0.5524 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002361/0.3655, allocations: 216.4 kB / 0.5526 GB, free: 8.316 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00107/0.3666, allocations: 0.7704 MB / 0.5534 GB, free: 7.848 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3666, allocations: 0 / 0.5534 GB, free: 7.848 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3666, allocations: 0 / 0.5534 GB, free: 7.848 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3666, allocations: 1.094 kB / 0.5534 GB, free: 7.848 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001288/0.3679, allocations: 0.7091 MB / 0.5541 GB, free: 7.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.3679, allocations: 13.61 kB / 0.5541 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.368, allocations: 87.45 kB / 0.5542 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001675/0.3697, allocations: 211.7 kB / 0.5544 GB, free: 7.086 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000633/0.3703, allocations: 301.3 kB / 0.5547 GB, free: 6.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.562e-05/0.3704, allocations: 33.75 kB / 0.5547 GB, free: 6.816 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.865e-05/0.3705, allocations: 44.02 kB / 0.5547 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.3715, allocations: 0.6232 MB / 0.5554 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.3715, allocations: 17.94 kB / 0.5554 GB, free: 6.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.872e-05/0.3716, allocations: 19.31 kB / 0.5554 GB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.044e-05/0.3716, allocations: 35.97 kB / 0.5554 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.3727, allocations: 0.6011 MB / 0.556 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003443/0.3761, allocations: 2.083 MB / 0.558 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006175/0.3767, allocations: 373.5 kB / 0.5584 GB, free: 3.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.377, allocations: 209.7 kB / 0.5586 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.3771, allocations: 12 kB / 0.5586 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.3771, allocations: 30.56 kB / 0.5586 GB, free: 2.922 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.994e-06/0.3771, allocations: 0 / 0.5586 GB, free: 2.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003386/0.3805, allocations: 1.562 MB / 0.5602 GB, free: 1.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.3806, allocations: 85.09 kB / 0.5602 GB, free: 1.219 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.3809, allocations: 284.1 kB / 0.5605 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.3809, allocations: 33.7 kB / 0.5606 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.3811, allocations: 236.5 kB / 0.5608 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.3812, allocations: 158.6 kB / 0.5609 GB, free: 0.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.3813, allocations: 82.19 kB / 0.561 GB, free: 424 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3815, allocations: 350.7 kB / 0.5613 GB, free: 64 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003014/0.3818, allocations: 177 kB / 0.5615 GB, free: 15.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003629/0.3822, allocations: 293.8 kB / 0.5618 GB, free: 15.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007016/0.3829, allocations: 0.5043 MB / 0.5623 GB, free: 15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3829, allocations: 0 / 0.5623 GB, free: 15 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00121/0.3841, allocations: 0.6772 MB / 0.5629 GB, free: 14.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3841, allocations: 8 kB / 0.563 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.3841, allocations: 4 kB / 0.563 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005847/0.3847, allocations: 180.8 kB / 0.5631 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.385, allocations: 95.88 kB / 0.5632 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/0.3886, allocations: 2.663 MB / 0.5658 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.3889, allocations: 23.98 kB / 0.5658 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/0.3889, allocations: 23.98 kB / 0.5659 GB, free: 11.22 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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 {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002449/0.3892, allocations: 191.4 kB / 0.566 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.424e-05/0.3892, allocations: 43.7 kB / 0.5661 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001218/0.3905, allocations: 0.6334 MB / 0.5667 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.3905, allocations: 4 kB / 0.5667 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.3905, allocations: 7.875 kB / 0.5667 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3905, allocations: 3.984 kB / 0.5667 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.3927, allocations: 1.211 MB / 0.5679 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.3927, allocations: 4 kB / 0.5679 GB, free: 9.039 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00035/0.3931, allocations: 79.89 kB / 0.568 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004516/0.3935, allocations: 144.8 kB / 0.5681 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.062e-05/0.3936, allocations: 12 kB / 0.5681 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003118/0.3967, allocations: 2.441 MB / 0.5705 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.3967, allocations: 4 kB / 0.5705 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/0.3982, allocations: 0.9538 MB / 0.5715 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-05/0.3983, allocations: 27.95 kB / 0.5715 GB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.503e-05/0.3983, allocations: 19.97 kB / 0.5715 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.3985, allocations: 12 kB / 0.5715 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.448e-05/0.3986, allocations: 43.91 kB / 0.5716 GB, free: 5.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.3986, allocations: 12 kB / 0.5716 GB, free: 5.152 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002108/0.3988, allocations: 203.1 kB / 0.5718 GB, free: 4.953 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3988, allocations: 0 / 0.5718 GB, free: 4.953 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006439/0.3995, allocations: 140 kB / 0.5719 GB, free: 4.816 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001819/0.4013, allocations: 1.498 MB / 0.5734 GB, free: 3.277 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.4026, allocations: 0.65 MB / 0.574 GB, free: 2.613 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.4026, allocations: 0 / 0.574 GB, free: 2.613 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006964/0.4033, allocations: 403.8 kB / 0.5744 GB, free: 2.207 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005003/0.4038, allocations: 68.62 kB / 0.5744 GB, free: 2.141 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006284/0.41, allocations: 4.458 MB / 0.5788 GB, free: 13.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.4104, allocations: 270.6 kB / 0.5791 GB, free: 13.21 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.4106, allocations: 71.22 kB / 0.5791 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002389/0.4108, allocations: 151.4 kB / 0.5793 GB, free: 12.99 MB / 430.1 MB Notification: Performance of SimCode: time 1.243e-06/0.4108, allocations: 0 / 0.5793 GB, free: 12.99 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04483/0.4557, allocations: 10.41 MB / 0.5894 GB, free: 2.742 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.25, allocations: 3.984 kB / 0.5894 GB, free: 2.738 MB / 430.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest2.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.30968834226951] Failed to read output from testmodel.py, exit status != 0: 13.368637025821954 13.385603678 13.015309568 Calling exit ...