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.00138/0.00138, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001502/0.001502, allocations: 206.8 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.1897/0.1897, allocations: 38.56 MB / 352.5 MB, free: 12.29 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.00203/0.00203, allocations: 63.91 kB / 492.5 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3372, allocations: 62.48 MB / 0.5419 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005186/0.3423, allocations: 3.322 MB / 0.5452 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.3442, allocations: 1.164 MB / 0.5463 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.3443, allocations: 13.59 kB / 0.5463 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006067/0.3449, allocations: 156.1 kB / 0.5465 GB, free: 12.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000418/0.3453, allocations: 178.3 kB / 0.5466 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003104/0.3457, allocations: 131.3 kB / 0.5468 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003559/0.346, allocations: 288.5 kB / 0.547 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002755/0.3463, allocations: 111.7 kB / 0.5472 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.3465, allocations: 140.4 kB / 0.5473 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.3467, allocations: 118.3 kB / 0.5474 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.3468, allocations: 13.81 kB / 0.5474 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003385/0.3471, allocations: 196.3 kB / 0.5476 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.962e-05/0.3472, allocations: 53.89 kB / 0.5477 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.938e-05/0.3473, allocations: 85.38 kB / 0.5477 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004135/0.3477, allocations: 283.8 kB / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3477, allocations: 1.031 kB / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3477, allocations: 0 / 0.548 GB, free: 11.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.3477, allocations: 0 / 0.548 GB, free: 11.66 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.0006785/0.3484, allocations: 451.2 kB / 0.5484 GB, free: 11.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.3484, allocations: 14.2 kB / 0.5484 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.195e-05/0.3485, allocations: 52.23 kB / 0.5485 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006749/0.3492, allocations: 77.78 kB / 0.5486 GB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003597/0.3495, allocations: 200.9 kB / 0.5488 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.3496, allocations: 19.27 kB / 0.5488 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.497e-05/0.3496, allocations: 15.16 kB / 0.5488 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004272/0.35, allocations: 264 kB / 0.549 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.35, allocations: 1.406 kB / 0.549 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.3501, allocations: 10.84 kB / 0.5491 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.694e-05/0.3501, allocations: 9.328 kB / 0.5491 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003483/0.3504, allocations: 215.9 kB / 0.5493 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.3521, allocations: 1.123 MB / 0.5504 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002732/0.3524, allocations: 127.6 kB / 0.5505 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.182e-05/0.3525, allocations: 47.8 kB / 0.5505 GB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.3525, allocations: 2 kB / 0.5505 GB, free: 9.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.3525, allocations: 37.16 kB / 0.5506 GB, free: 9.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.3525, allocations: 0 / 0.5506 GB, free: 9.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003556/0.3529, allocations: 163.2 kB / 0.5507 GB, free: 9.398 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.391e-05/0.353, allocations: 78.52 kB / 0.5508 GB, free: 9.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.3532, allocations: 213.7 kB / 0.551 GB, free: 9.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.3532, allocations: 34.92 kB / 0.551 GB, free: 9.105 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.3533, allocations: 162.4 kB / 0.5512 GB, free: 8.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.748e-05/0.3534, allocations: 42.45 kB / 0.5512 GB, free: 8.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.924e-05/0.3534, allocations: 43.81 kB / 0.5513 GB, free: 8.883 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3536, allocations: 327.9 kB / 0.5516 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.08e-05/0.3537, allocations: 46.59 kB / 0.5516 GB, free: 8.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.3538, allocations: 120.3 kB / 0.5518 GB, free: 8.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.354, allocations: 179.8 kB / 0.5519 GB, free: 8.262 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.354, allocations: 1.156 kB / 0.5519 GB, free: 8.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003367/0.3544, allocations: 214.1 kB / 0.5521 GB, free: 8.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.3544, allocations: 6.438 kB / 0.5521 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3544, allocations: 3.781 kB / 0.5521 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.3544, allocations: 7.938 kB / 0.5521 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.3547, allocations: 52.94 kB / 0.5522 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.3559, allocations: 1.32 MB / 0.5535 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.356, allocations: 18.62 kB / 0.5535 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.639e-05/0.356, allocations: 12 kB / 0.5535 GB, free: 6.746 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.0001541/0.3562, allocations: 148 kB / 0.5537 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.402e-05/0.3562, allocations: 15.56 kB / 0.5537 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002623/0.3565, allocations: 143.2 kB / 0.5538 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3565, allocations: 2.312 kB / 0.5538 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-06/0.3565, allocations: 0 / 0.5538 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3565, allocations: 1.031 kB / 0.5538 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007127/0.3572, allocations: 456 kB / 0.5542 GB, free: 6.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3572, allocations: 8.938 kB / 0.5543 GB, free: 6.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.3574, allocations: 30.97 kB / 0.5543 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.3574, allocations: 2.156 kB / 0.5543 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.3574, allocations: 6.125 kB / 0.5543 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.3585, allocations: 1.321 MB / 0.5556 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.3585, allocations: 5.25 kB / 0.5556 GB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003641/0.3589, allocations: 304.1 kB / 0.5559 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/0.3589, allocations: 18.16 kB / 0.5559 GB, free: 4.473 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.359, allocations: 5.438 kB / 0.5559 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-05/0.3591, allocations: 1.438 kB / 0.5559 GB, free: 4.469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.3591, allocations: 12.47 kB / 0.5559 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.3591, allocations: 8.281 kB / 0.5559 GB, free: 4.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000153/0.3593, allocations: 144.4 kB / 0.5561 GB, free: 4.352 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3593, allocations: 1.344 kB / 0.5561 GB, free: 4.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003551/0.3596, allocations: 46.33 kB / 0.5561 GB, free: 4.344 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.0006838/0.3603, allocations: 0.8482 MB / 0.5569 GB, free: 3.562 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003249/0.3606, allocations: 125.7 kB / 0.5571 GB, free: 3.508 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3606, allocations: 0 / 0.5571 GB, free: 3.508 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.3608, allocations: 56.69 kB / 0.5571 GB, free: 3.484 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.3612, allocations: 39.5 kB / 0.5571 GB, free: 3.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003513/0.3647, allocations: 2.358 MB / 0.5594 GB, free: 1.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.3649, allocations: 136.9 kB / 0.5596 GB, free: 1.301 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.365, allocations: 29.62 kB / 0.5596 GB, free: 1.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.3651, allocations: 59.41 kB / 0.5597 GB, free: 1.211 MB / 398.1 MB Notification: Performance of SimCode: time 1.363e-06/0.3651, allocations: 0 / 0.5597 GB, free: 1.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03522/0.4003, allocations: 4.396 MB / 0.564 GB, free: 12.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.12, allocations: 10.09 kB / 0.564 GB, free: 12.93 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.114302854985] Failed to read output from testmodel.py, exit status != 0: 13.261062138015404 13.277574607 12.926706045 Calling exit ...