Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.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.001308/0.001308, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001417/0.001417, allocations: 212.2 kB / 23.73 MB, free: 4.523 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.479/1.479, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.1893/0.1893, allocations: 38.55 MB / 352.5 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 179] 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.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",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.00206/0.00206, allocations: 71.88 kB / 492.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3193, allocations: 62.46 MB / 0.5419 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.006167/0.3255, allocations: 3.611 MB / 0.5455 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.3288, allocations: 1.823 MB / 0.5472 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002424/0.329, allocations: 13.69 kB / 0.5473 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.3301, allocations: 230.4 kB / 0.5475 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009579/0.331, allocations: 313.4 kB / 0.5478 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006052/0.3316, allocations: 174.6 kB / 0.5479 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006409/0.3323, allocations: 452.2 kB / 0.5484 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003512/0.3326, allocations: 165.6 kB / 0.5485 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004436/0.3331, allocations: 208.9 kB / 0.5487 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002939/0.3334, allocations: 191.9 kB / 0.5489 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.494e-05/0.3334, allocations: 29.59 kB / 0.5489 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006172/0.334, allocations: 332 kB / 0.5493 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001425/0.3342, allocations: 121.5 kB / 0.5494 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.3344, allocations: 124.2 kB / 0.5495 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008315/0.3352, allocations: 0.5813 MB / 0.5501 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.3352, allocations: 0 / 0.5501 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3352, allocations: 0 / 0.5501 GB, free: 10.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.3352, allocations: 1.281 kB / 0.5501 GB, free: 10.21 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001095/0.3363, allocations: 0.583 MB / 0.5506 GB, free: 9.691 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.3364, allocations: 17.77 kB / 0.5506 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.035e-05/0.3365, allocations: 59.06 kB / 0.5507 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000773/0.3372, allocations: 93.7 kB / 0.5508 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004833/0.3377, allocations: 288 kB / 0.5511 GB, free: 9.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.3377, allocations: 12.69 kB / 0.5511 GB, free: 9.332 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.3378, allocations: 28.09 kB / 0.5511 GB, free: 9.316 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000639/0.3384, allocations: 402.5 kB / 0.5515 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.3384, allocations: 0 / 0.5515 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.3385, allocations: 10.31 kB / 0.5515 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.424e-05/0.3385, allocations: 16.83 kB / 0.5515 GB, free: 9.016 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000696/0.3392, allocations: 436.1 kB / 0.5519 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.3411, allocations: 1.406 MB / 0.5533 GB, free: 7.617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007185/0.3418, allocations: 343 kB / 0.5536 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.342, allocations: 107.5 kB / 0.5537 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.342, allocations: 3.375 kB / 0.5537 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003604/0.3424, allocations: 225.9 kB / 0.554 GB, free: 7.188 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.3424, allocations: 0 / 0.554 GB, free: 7.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008573/0.3433, allocations: 428 kB / 0.5544 GB, free: 6.977 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.659e-05/0.3434, allocations: 136.9 kB / 0.5545 GB, free: 6.816 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004149/0.3438, allocations: 352.1 kB / 0.5548 GB, free: 6.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.3438, allocations: 32.64 kB / 0.5549 GB, free: 6.555 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.344, allocations: 184.4 kB / 0.555 GB, free: 6.387 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.492e-05/0.344, allocations: 85 kB / 0.5551 GB, free: 6.316 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.911e-05/0.3441, allocations: 61.56 kB / 0.5552 GB, free: 6.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3443, allocations: 343.1 kB / 0.5555 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.3445, allocations: 106.6 kB / 0.5556 GB, free: 5.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002845/0.3448, allocations: 227.8 kB / 0.5558 GB, free: 5.684 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004861/0.3453, allocations: 326.1 kB / 0.5561 GB, free: 5.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3453, allocations: 0 / 0.5561 GB, free: 5.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006542/0.3459, allocations: 393.1 kB / 0.5565 GB, free: 4.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.3459, allocations: 4 kB / 0.5565 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.346, allocations: 4 kB / 0.5565 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.346, allocations: 4 kB / 0.5565 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.3462, allocations: 59.91 kB / 0.5566 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.3463, allocations: 7.938 kB / 0.5566 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.3464, allocations: 32.09 kB / 0.5566 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.3465, allocations: 23.97 kB / 0.5566 GB, free: 4.848 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0002086/0.3467, allocations: 181.6 kB / 0.5568 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/0.3467, allocations: 31.81 kB / 0.5568 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007529/0.3475, allocations: 412 kB / 0.5572 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.3475, allocations: 4 kB / 0.5572 GB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3475, allocations: 3.938 kB / 0.5572 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.3475, allocations: 3.984 kB / 0.5572 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.3487, allocations: 0.7868 MB / 0.558 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3487, allocations: 4 kB / 0.558 GB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002082/0.3489, allocations: 51.97 kB / 0.5581 GB, free: 3.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.3489, allocations: 7.938 kB / 0.5581 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.3489, allocations: 8 kB / 0.5581 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.3489, allocations: 3.938 kB / 0.5581 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3489, allocations: 4 kB / 0.5581 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006828/0.3496, allocations: 484.1 kB / 0.5585 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.194e-05/0.3497, allocations: 39.73 kB / 0.5586 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.408e-05/0.3497, allocations: 11.94 kB / 0.5586 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.3499, allocations: 12 kB / 0.5586 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.3499, allocations: 23.95 kB / 0.5586 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.621e-05/0.35, allocations: 16 kB / 0.5586 GB, free: 2.699 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002872/0.3502, allocations: 259 kB / 0.5589 GB, free: 2.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3502, allocations: 0 / 0.5589 GB, free: 2.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004664/0.3507, allocations: 103.8 kB / 0.559 GB, free: 2.348 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002903/0.3536, allocations: 1.478 MB / 0.5604 GB, free: 1.062 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005528/0.3542, allocations: 280.2 kB / 0.5607 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3542, allocations: 0 / 0.5607 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.3544, allocations: 143.8 kB / 0.5608 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/0.3549, allocations: 56.41 kB / 0.5609 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0042/0.3591, allocations: 3.26 MB / 0.5641 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.3593, allocations: 196.9 kB / 0.5643 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002129/0.3595, allocations: 86.89 kB / 0.5643 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.3597, allocations: 115.4 kB / 0.5645 GB, free: 12.77 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3597, allocations: 0 / 0.5645 GB, free: 12.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0394/0.3991, allocations: 8.792 MB / 0.573 GB, free: 4.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.91, allocations: 3.562 kB / 0.573 GB, free: 4.02 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.189535508863628] Failed to read output from testmodel.py, exit status != 0: 12.082698598038405 12.110839059 11.77065201 Calling exit ...