Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.Frequency.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.001414/0.001414, 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.001569/0.001569, allocations: 204.5 kB / 23.73 MB, free: 4.379 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.48/1.48, 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.1905/0.1905, allocations: 38.55 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.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_Frequency",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.002139/0.002139, allocations: 71.88 kB / 492.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3411/0.3432, allocations: 62.47 MB / 0.5419 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007458/0.3507, allocations: 5.213 MB / 0.547 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.353, allocations: 1.075 MB / 0.5481 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002428/0.3532, allocations: 26.12 kB / 0.5481 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002703/0.3535, allocations: 83.27 kB / 0.5482 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007462/0.3543, allocations: 312.9 kB / 0.5485 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000315/0.3546, allocations: 140.7 kB / 0.5486 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007568/0.3553, allocations: 0.6977 MB / 0.5493 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.3556, allocations: 121 kB / 0.5494 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000525/0.3561, allocations: 325.7 kB / 0.5497 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005357/0.3566, allocations: 345.1 kB / 0.55 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.254e-05/0.3567, allocations: 34.22 kB / 0.5501 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.301e-05/0.3568, allocations: 32.88 kB / 0.5501 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.357, allocations: 158.7 kB / 0.5503 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002355/0.3572, allocations: 208.3 kB / 0.5505 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005967/0.3578, allocations: 496.8 kB / 0.5509 GB, free: 9.543 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3578, allocations: 5.156 kB / 0.5509 GB, free: 9.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3578, allocations: 0 / 0.5509 GB, free: 9.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.3578, allocations: 0 / 0.5509 GB, free: 9.539 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001414/0.3592, allocations: 0.741 MB / 0.5517 GB, free: 8.949 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.3593, allocations: 12.94 kB / 0.5517 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.104e-05/0.3594, allocations: 71 kB / 0.5517 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.149e-05/0.3595, allocations: 54.45 kB / 0.5518 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007872/0.3603, allocations: 394.5 kB / 0.5522 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.266e-05/0.3603, allocations: 27.41 kB / 0.5522 GB, free: 8.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.021e-05/0.3604, allocations: 40.73 kB / 0.5522 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006949/0.3611, allocations: 465.4 kB / 0.5527 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.3611, allocations: 5.094 kB / 0.5527 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.681e-05/0.3611, allocations: 16.31 kB / 0.5527 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.3611, allocations: 8.75 kB / 0.5527 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005071/0.3616, allocations: 304.3 kB / 0.553 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002088/0.3637, allocations: 1.645 MB / 0.5546 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002459/0.364, allocations: 137.5 kB / 0.5547 GB, free: 6.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.203e-05/0.3641, allocations: 51.61 kB / 0.5548 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.3641, allocations: 2.25 kB / 0.5548 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/0.3641, allocations: 40.84 kB / 0.5548 GB, free: 6.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.3641, allocations: 0 / 0.5548 GB, free: 6.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.00105/0.3652, allocations: 0.547 MB / 0.5554 GB, free: 5.926 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.458e-05/0.3652, allocations: 106.2 kB / 0.5555 GB, free: 5.801 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004095/0.3656, allocations: 382 kB / 0.5558 GB, free: 5.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.3657, allocations: 26.89 kB / 0.5558 GB, free: 5.527 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/0.3659, allocations: 288.9 kB / 0.5561 GB, free: 5.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.291e-05/0.3659, allocations: 59.33 kB / 0.5562 GB, free: 5.215 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.873e-05/0.366, allocations: 63.56 kB / 0.5562 GB, free: 5.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3662, allocations: 347.5 kB / 0.5566 GB, free: 4.828 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.3663, allocations: 51 kB / 0.5566 GB, free: 4.805 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002054/0.3665, allocations: 203.9 kB / 0.5568 GB, free: 4.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003418/0.3669, allocations: 271.6 kB / 0.5571 GB, free: 4.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3669, allocations: 0 / 0.5571 GB, free: 4.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004487/0.3673, allocations: 285 kB / 0.5573 GB, free: 3.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3673, allocations: 8 kB / 0.5574 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3673, allocations: 4 kB / 0.5574 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.3674, allocations: 8.625 kB / 0.5574 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.3676, allocations: 75.91 kB / 0.5574 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.3676, allocations: 7.938 kB / 0.5574 GB, free: 3.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.3678, allocations: 19.89 kB / 0.5575 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.3678, allocations: 16.53 kB / 0.5575 GB, free: 3.832 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002039/0.368, allocations: 189.6 kB / 0.5577 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-05/0.3681, allocations: 35.77 kB / 0.5577 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003016/0.3684, allocations: 168.7 kB / 0.5579 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3684, allocations: 4 kB / 0.5579 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3684, allocations: 448 / 0.5579 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.3684, allocations: 7.984 kB / 0.5579 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007047/0.3691, allocations: 498.3 kB / 0.5583 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.3691, allocations: 4 kB / 0.5583 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.3693, allocations: 35.98 kB / 0.5584 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.3693, allocations: 4 kB / 0.5584 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.3693, allocations: 0 / 0.5584 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/0.3693, allocations: 7.938 kB / 0.5584 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3693, allocations: 3.938 kB / 0.5584 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.3698, allocations: 399 kB / 0.5588 GB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.986e-05/0.3699, allocations: 39.66 kB / 0.5588 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.68e-05/0.3699, allocations: 12.06 kB / 0.5588 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.3701, allocations: 7.938 kB / 0.5588 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.262e-05/0.3701, allocations: 15.92 kB / 0.5589 GB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.3701, allocations: 4 kB / 0.5589 GB, free: 2.336 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002669/0.3704, allocations: 255.2 kB / 0.5591 GB, free: 2.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3704, allocations: 0 / 0.5591 GB, free: 2.094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004427/0.3708, allocations: 68 kB / 0.5592 GB, free: 2.027 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007317/0.3716, allocations: 0.9279 MB / 0.5601 GB, free: 1.062 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002904/0.3718, allocations: 155.8 kB / 0.5602 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3718, allocations: 3.938 kB / 0.5602 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.3719, allocations: 55.89 kB / 0.5603 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007116/0.3727, allocations: 92.91 kB / 0.5604 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004271/0.3769, allocations: 3.404 MB / 0.5637 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.3772, allocations: 243.8 kB / 0.5639 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001691/0.3774, allocations: 47.25 kB / 0.564 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.3776, allocations: 151.4 kB / 0.5641 GB, free: 12.68 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3776, allocations: 0 / 0.5641 GB, free: 12.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03967/0.4173, allocations: 8.003 MB / 0.5719 GB, free: 4.867 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.7, allocations: 4.062 kB / 0.5719 GB, free: 4.863 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.Frequency.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.Frequency_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.637226434948388] Failed to read output from testmodel.py, exit status != 0: 11.814484157017432 11.840989477 11.478027846 Calling exit ...