Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.001327/0.001327, 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.001506/0.001506, 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.508/1.508, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.1983/0.1983, allocations: 38.56 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.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",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.002067/0.002067, allocations: 66.41 kB / 492.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3855, allocations: 62.47 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004918/0.3904, allocations: 3.316 MB / 0.5452 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.3924, allocations: 1.169 MB / 0.5463 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.3925, allocations: 13.69 kB / 0.5463 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006128/0.3931, allocations: 158.9 kB / 0.5465 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004277/0.3935, allocations: 175.4 kB / 0.5466 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003342/0.3939, allocations: 134.7 kB / 0.5468 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000362/0.3942, allocations: 285.5 kB / 0.547 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002701/0.3945, allocations: 118.2 kB / 0.5472 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002672/0.3948, allocations: 132.7 kB / 0.5473 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.395, allocations: 102.4 kB / 0.5474 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.764e-05/0.395, allocations: 13.75 kB / 0.5474 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003313/0.3953, allocations: 191.5 kB / 0.5476 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.336e-05/0.3954, allocations: 66.33 kB / 0.5476 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.3955, allocations: 73.83 kB / 0.5477 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004502/0.396, allocations: 291.8 kB / 0.548 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.396, allocations: 1.438 kB / 0.548 GB, free: 11.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.396, allocations: 0 / 0.548 GB, free: 11.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.396, allocations: 3.938 kB / 0.548 GB, free: 11.68 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006742/0.3967, allocations: 440.8 kB / 0.5484 GB, free: 11.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3967, allocations: 13.42 kB / 0.5484 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.63e-05/0.3968, allocations: 48.67 kB / 0.5485 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006582/0.3974, allocations: 77.38 kB / 0.5485 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.3978, allocations: 206.1 kB / 0.5487 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.3978, allocations: 11.52 kB / 0.5488 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.694e-05/0.3978, allocations: 22.86 kB / 0.5488 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004324/0.3983, allocations: 263.8 kB / 0.549 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.3983, allocations: 1.5 kB / 0.549 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.3983, allocations: 13.34 kB / 0.549 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.587e-05/0.3983, allocations: 11.05 kB / 0.5491 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003511/0.3987, allocations: 224.1 kB / 0.5493 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.4003, allocations: 1.11 MB / 0.5504 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.4006, allocations: 135.9 kB / 0.5505 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.275e-05/0.4006, allocations: 48.22 kB / 0.5505 GB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.308e-05/0.4007, allocations: 1.312 kB / 0.5505 GB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.4007, allocations: 37.44 kB / 0.5506 GB, free: 9.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.4007, allocations: 4 kB / 0.5506 GB, free: 9.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003364/0.401, allocations: 170.3 kB / 0.5507 GB, free: 9.398 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.4011, allocations: 79.83 kB / 0.5508 GB, free: 9.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.4013, allocations: 209.5 kB / 0.551 GB, free: 9.148 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.4013, allocations: 29.7 kB / 0.551 GB, free: 9.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.4014, allocations: 155.4 kB / 0.5512 GB, free: 8.969 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.4015, allocations: 49.27 kB / 0.5512 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.661e-05/0.4015, allocations: 45.12 kB / 0.5513 GB, free: 8.891 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4017, allocations: 330.9 kB / 0.5516 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.89e-05/0.4018, allocations: 38.77 kB / 0.5516 GB, free: 8.547 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.4019, allocations: 124.7 kB / 0.5517 GB, free: 8.422 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/0.4021, allocations: 174.7 kB / 0.5519 GB, free: 8.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.4021, allocations: 5.219 kB / 0.5519 GB, free: 8.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003252/0.4025, allocations: 211.1 kB / 0.5521 GB, free: 8.148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.4025, allocations: 9.688 kB / 0.5521 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.4025, allocations: 3.094 kB / 0.5521 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.4025, allocations: 7.219 kB / 0.5521 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002613/0.4028, allocations: 50.06 kB / 0.5522 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/0.404, allocations: 1.313 MB / 0.5535 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.4041, allocations: 21.91 kB / 0.5535 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.4041, allocations: 8.281 kB / 0.5535 GB, free: 6.77 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.4043, allocations: 156.3 kB / 0.5536 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.8e-05/0.4043, allocations: 16.06 kB / 0.5537 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.4046, allocations: 138.7 kB / 0.5538 GB, free: 6.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.4046, allocations: 6.344 kB / 0.5538 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-06/0.4046, allocations: 0 / 0.5538 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.4046, allocations: 1.25 kB / 0.5538 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006766/0.4052, allocations: 455.6 kB / 0.5542 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.4052, allocations: 1.438 kB / 0.5542 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000169/0.4054, allocations: 35.23 kB / 0.5543 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.4054, allocations: 1.469 kB / 0.5543 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.4054, allocations: 1.406 kB / 0.5543 GB, free: 6.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009737/0.4064, allocations: 1.334 MB / 0.5556 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4064, allocations: 0.625 kB / 0.5556 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003627/0.4068, allocations: 296.3 kB / 0.5559 GB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.389e-05/0.4068, allocations: 26.39 kB / 0.5559 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.459e-05/0.4068, allocations: 2.219 kB / 0.5559 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.551e-05/0.4069, allocations: 1.375 kB / 0.5559 GB, free: 4.488 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.407, allocations: 16.45 kB / 0.5559 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.407, allocations: 7.719 kB / 0.5559 GB, free: 4.473 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.4071, allocations: 148.7 kB / 0.556 GB, free: 4.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4071, allocations: 5 kB / 0.5561 GB, free: 4.359 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003513/0.4075, allocations: 46.86 kB / 0.5561 GB, free: 4.352 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006643/0.4081, allocations: 0.8472 MB / 0.5569 GB, free: 3.574 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003195/0.4084, allocations: 126.1 kB / 0.557 GB, free: 3.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4085, allocations: 4.25 kB / 0.557 GB, free: 3.516 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.4086, allocations: 52.06 kB / 0.5571 GB, free: 3.496 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.409, allocations: 39.77 kB / 0.5571 GB, free: 3.477 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.4119, allocations: 2.359 MB / 0.5594 GB, free: 1.469 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.4121, allocations: 128.9 kB / 0.5596 GB, free: 1.324 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.4122, allocations: 33.61 kB / 0.5596 GB, free: 1.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.396e-05/0.4123, allocations: 55.42 kB / 0.5596 GB, free: 1.234 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4123, allocations: 0 / 0.5596 GB, free: 1.234 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.4453, allocations: 4.324 MB / 0.5639 GB, free: 13.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.13, allocations: 13.91 kB / 0.5639 GB, free: 13.04 MB / 414.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest_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_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.12080115592107] Failed to read output from testmodel.py, exit status != 0: 13.252612662967294 13.269328083 12.869851169 Calling exit ...