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.001328/0.001328, allocations: 115.6 kB / 20.44 MB, free: 1.465 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.001608/0.001608, allocations: 212.9 kB / 23.74 MB, free: 4.691 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.532/1.532, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.1926/0.1926, allocations: 38.53 MB / 352.5 MB, free: 12.55 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.002911/0.002911, allocations: 63.91 kB / 492.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3447, allocations: 62.47 MB / 0.542 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006957/0.3517, allocations: 5.081 MB / 0.547 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00439/0.3561, allocations: 2.55 MB / 0.5495 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004781/0.3566, allocations: 17.41 kB / 0.5495 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001506/0.3581, allocations: 451.3 kB / 0.5499 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001547/0.3596, allocations: 0.5156 MB / 0.5504 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008844/0.3605, allocations: 276.7 kB / 0.5507 GB, free: 9.434 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.3617, allocations: 0.7383 MB / 0.5514 GB, free: 9.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005529/0.3623, allocations: 293.4 kB / 0.5517 GB, free: 8.828 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006581/0.3629, allocations: 337.2 kB / 0.552 GB, free: 8.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005517/0.3635, allocations: 358.3 kB / 0.5523 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.273e-05/0.3635, allocations: 36.69 kB / 0.5524 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001422/0.365, allocations: 0.6435 MB / 0.553 GB, free: 8.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.3652, allocations: 205.2 kB / 0.5532 GB, free: 7.934 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003455/0.3656, allocations: 245.5 kB / 0.5534 GB, free: 7.777 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001336/0.3669, allocations: 0.7724 MB / 0.5542 GB, free: 7.301 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3669, allocations: 0 / 0.5542 GB, free: 7.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3669, allocations: 0 / 0.5542 GB, free: 7.301 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.3669, allocations: 1.125 kB / 0.5542 GB, free: 7.301 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.001403/0.3684, allocations: 0.7056 MB / 0.5549 GB, free: 6.727 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.3684, allocations: 13.39 kB / 0.5549 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001236/0.3685, allocations: 86.69 kB / 0.555 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001704/0.3702, allocations: 211.5 kB / 0.5552 GB, free: 6.543 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006778/0.3709, allocations: 301.6 kB / 0.5555 GB, free: 6.293 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.705e-05/0.3709, allocations: 33.33 kB / 0.5555 GB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.207e-05/0.371, allocations: 43.94 kB / 0.5555 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.3722, allocations: 0.6333 MB / 0.5561 GB, free: 5.855 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.799e-05/0.3722, allocations: 5.016 kB / 0.5561 GB, free: 5.852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.105e-05/0.3722, allocations: 20.83 kB / 0.5562 GB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.712e-05/0.3723, allocations: 30.95 kB / 0.5562 GB, free: 5.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00106/0.3734, allocations: 0.6124 MB / 0.5568 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003746/0.3771, allocations: 2.185 MB / 0.5589 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006824/0.3778, allocations: 381.4 kB / 0.5593 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003549/0.3781, allocations: 209.7 kB / 0.5595 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.239e-05/0.3782, allocations: 7.984 kB / 0.5595 GB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.3782, allocations: 34.56 kB / 0.5595 GB, free: 2.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.044e-06/0.3782, allocations: 0 / 0.5595 GB, free: 2.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003847/0.3821, allocations: 1.562 MB / 0.5611 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.3821, allocations: 81.11 kB / 0.5611 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003535/0.3825, allocations: 280.2 kB / 0.5614 GB, free: 340 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.851e-05/0.3825, allocations: 33.64 kB / 0.5614 GB, free: 300 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.3827, allocations: 236.6 kB / 0.5617 GB, free: 56 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.3829, allocations: 158.8 kB / 0.5618 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.383, allocations: 90.14 kB / 0.5619 GB, free: 15.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.3832, allocations: 350.5 kB / 0.5622 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.3835, allocations: 180.8 kB / 0.5624 GB, free: 15.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003928/0.3839, allocations: 293.8 kB / 0.5627 GB, free: 14.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007502/0.3847, allocations: 0.5004 MB / 0.5632 GB, free: 14.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3847, allocations: 0 / 0.5632 GB, free: 14.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001315/0.386, allocations: 0.6773 MB / 0.5638 GB, free: 13.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.386, allocations: 8 kB / 0.5638 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.386, allocations: 4 kB / 0.5638 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000646/0.3867, allocations: 176.9 kB / 0.564 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004091/0.3871, allocations: 99.81 kB / 0.5641 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/0.3911, allocations: 2.679 MB / 0.5667 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003521/0.3915, allocations: 23.98 kB / 0.5668 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/0.3915, allocations: 20 kB / 0.5668 GB, free: 10.6 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.0003011/0.3918, allocations: 197.7 kB / 0.567 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.126e-05/0.3919, allocations: 39.7 kB / 0.567 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001335/0.3932, allocations: 0.6295 MB / 0.5676 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.3932, allocations: 8 kB / 0.5676 GB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.3932, allocations: 3.938 kB / 0.5676 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3932, allocations: 0 / 0.5676 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/0.3958, allocations: 1.324 MB / 0.5689 GB, free: 8.297 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.3958, allocations: 0 / 0.5689 GB, free: 8.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/0.3962, allocations: 75.89 kB / 0.569 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004953/0.3967, allocations: 152.7 kB / 0.5691 GB, free: 8.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.3967, allocations: 7.984 kB / 0.5691 GB, free: 8.062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003445/0.4002, allocations: 2.461 MB / 0.5715 GB, free: 5.492 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.4002, allocations: 4.094 kB / 0.5715 GB, free: 5.488 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.4019, allocations: 0.9538 MB / 0.5725 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.402, allocations: 35.77 kB / 0.5725 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.575e-05/0.402, allocations: 11.94 kB / 0.5725 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.4023, allocations: 16.03 kB / 0.5725 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.393e-05/0.4024, allocations: 35.94 kB / 0.5726 GB, free: 4.406 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.925e-05/0.4024, allocations: 19.98 kB / 0.5726 GB, free: 4.387 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002405/0.4026, allocations: 195.1 kB / 0.5728 GB, free: 4.195 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4026, allocations: 0 / 0.5728 GB, free: 4.195 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007175/0.4034, allocations: 136 kB / 0.5729 GB, free: 4.062 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.00202/0.4054, allocations: 1.49 MB / 0.5744 GB, free: 2.531 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.4068, allocations: 0.6578 MB / 0.575 GB, free: 1.859 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.252e-05/0.4068, allocations: 0 / 0.575 GB, free: 1.859 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007599/0.4076, allocations: 404.1 kB / 0.5754 GB, free: 1.453 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000561/0.4081, allocations: 71.56 kB / 0.5755 GB, free: 1.387 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006938/0.4151, allocations: 4.47 MB / 0.5798 GB, free: 12.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005579/0.4156, allocations: 0.8749 MB / 0.5807 GB, free: 11.83 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002226/0.4159, allocations: 71.22 kB / 0.5807 GB, free: 11.76 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/0.4161, allocations: 159.3 kB / 0.5809 GB, free: 11.6 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4161, allocations: 0 / 0.5809 GB, free: 11.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04727/0.4634, allocations: 10.44 MB / 0.5911 GB, free: 1.293 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/13.68, allocations: 0 / 0.5911 GB, free: 1.293 MB / 430.1 MB " [Timeout remaining time 646] (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.779547001999163] Failed to read output from testmodel.py, exit status != 0: 13.799981121999735 13.816176004 13.445592631 Calling exit ...