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.001365/0.001365, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001534/0.001534, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.438/1.438, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.1851/0.1851, allocations: 38.53 MB / 352.5 MB, free: 12.51 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.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.002894/0.002894, allocations: 63.91 kB / 492.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3348, allocations: 62.47 MB / 0.542 GB, free: 432 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005244/0.34, allocations: 3.775 MB / 0.5457 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.3431, allocations: 1.98 MB / 0.5476 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.3432, allocations: 13.31 kB / 0.5476 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000812/0.3441, allocations: 245.9 kB / 0.5479 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006812/0.3447, allocations: 307.1 kB / 0.5481 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.3452, allocations: 186.6 kB / 0.5483 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005205/0.3457, allocations: 448.9 kB / 0.5488 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.346, allocations: 157.3 kB / 0.5489 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004174/0.3464, allocations: 227.2 kB / 0.5491 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002835/0.3467, allocations: 190.8 kB / 0.5493 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.21e-05/0.3467, allocations: 28.84 kB / 0.5493 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006119/0.3474, allocations: 375.8 kB / 0.5497 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.3475, allocations: 120.5 kB / 0.5498 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001599/0.3477, allocations: 156.6 kB / 0.55 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000728/0.3484, allocations: 0.5677 MB / 0.5505 GB, free: 9.965 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3484, allocations: 0 / 0.5505 GB, free: 9.965 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3484, allocations: 0 / 0.5505 GB, free: 9.965 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.3484, allocations: 4 kB / 0.5505 GB, free: 9.961 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.0009396/0.3493, allocations: 0.5892 MB / 0.5511 GB, free: 9.441 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3494, allocations: 14.11 kB / 0.5511 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.113e-05/0.3494, allocations: 54.27 kB / 0.5512 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007075/0.3501, allocations: 90.12 kB / 0.5512 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005604/0.3507, allocations: 323.6 kB / 0.5515 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.3507, allocations: 12.59 kB / 0.5516 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.889e-05/0.3508, allocations: 23.89 kB / 0.5516 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005895/0.3514, allocations: 353.4 kB / 0.5519 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.3514, allocations: 9.203 kB / 0.5519 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/0.3514, allocations: 6.594 kB / 0.5519 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.156e-05/0.3514, allocations: 20.05 kB / 0.552 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006158/0.3521, allocations: 386.6 kB / 0.5523 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.3541, allocations: 1.515 MB / 0.5538 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005912/0.3547, allocations: 302.2 kB / 0.5541 GB, free: 7.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.3549, allocations: 93.56 kB / 0.5542 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.3549, allocations: 13.55 kB / 0.5542 GB, free: 7.031 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003465/0.3553, allocations: 199.5 kB / 0.5544 GB, free: 6.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.3553, allocations: 1.375 kB / 0.5544 GB, free: 6.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.000782/0.356, allocations: 387.1 kB / 0.5548 GB, free: 6.688 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/0.3561, allocations: 136 kB / 0.5549 GB, free: 6.527 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.3565, allocations: 312.1 kB / 0.5552 GB, free: 6.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.727e-05/0.3565, allocations: 36.23 kB / 0.5552 GB, free: 6.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.3567, allocations: 177.3 kB / 0.5554 GB, free: 6.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.546e-05/0.3568, allocations: 88.36 kB / 0.5555 GB, free: 6.047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.3569, allocations: 57.14 kB / 0.5555 GB, free: 6.004 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.357, allocations: 337.9 kB / 0.5558 GB, free: 5.672 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.3572, allocations: 93.27 kB / 0.5559 GB, free: 5.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.3575, allocations: 194.8 kB / 0.5561 GB, free: 5.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004433/0.3579, allocations: 302 kB / 0.5564 GB, free: 5.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3579, allocations: 0 / 0.5564 GB, free: 5.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000606/0.3585, allocations: 362.2 kB / 0.5568 GB, free: 4.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3585, allocations: 8 kB / 0.5568 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.3585, allocations: 4 kB / 0.5568 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3586, allocations: 4 kB / 0.5568 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.3588, allocations: 59.91 kB / 0.5568 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.3588, allocations: 11.88 kB / 0.5568 GB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.359, allocations: 27.78 kB / 0.5569 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.359, allocations: 16 kB / 0.5569 GB, free: 4.859 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.0001925/0.3592, allocations: 182 kB / 0.5571 GB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.18e-05/0.3593, allocations: 27.81 kB / 0.5571 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006566/0.3599, allocations: 340 kB / 0.5574 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3599, allocations: 4 kB / 0.5574 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3599, allocations: 7.938 kB / 0.5574 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.36, allocations: 7.984 kB / 0.5574 GB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.361, allocations: 0.718 MB / 0.5581 GB, free: 3.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.361, allocations: 4 kB / 0.5581 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.3612, allocations: 47.89 kB / 0.5582 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.3612, allocations: 7.938 kB / 0.5582 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.964e-05/0.3612, allocations: 8 kB / 0.5582 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.3612, allocations: 0 / 0.5582 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3612, allocations: 0 / 0.5582 GB, free: 3.449 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005777/0.3618, allocations: 412.9 kB / 0.5586 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.3618, allocations: 31.69 kB / 0.5586 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.935e-05/0.3619, allocations: 23.92 kB / 0.5586 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.362, allocations: 0 / 0.5586 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.3621, allocations: 19.97 kB / 0.5587 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.3621, allocations: 11.98 kB / 0.5587 GB, free: 2.938 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002597/0.3624, allocations: 223.1 kB / 0.5589 GB, free: 2.723 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3624, allocations: 0 / 0.5589 GB, free: 2.723 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00045/0.3628, allocations: 103.8 kB / 0.559 GB, free: 2.621 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 (25): * Single equations (assignments): 22 * 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.002598/0.3654, allocations: 1.35 MB / 0.5603 GB, free: 1.434 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004871/0.3659, allocations: 243.8 kB / 0.5605 GB, free: 1.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3659, allocations: 3.938 kB / 0.5605 GB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.3661, allocations: 107.1 kB / 0.5606 GB, free: 1.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.3666, allocations: 60.39 kB / 0.5607 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.3706, allocations: 3.103 MB / 0.5637 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000515/0.3711, allocations: 0.7992 MB / 0.5645 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002171/0.3714, allocations: 82.84 kB / 0.5646 GB, free: 12.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.3715, allocations: 111.4 kB / 0.5647 GB, free: 12.76 MB / 414.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3715, allocations: 0 / 0.5647 GB, free: 12.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03431/0.4059, allocations: 7.752 MB / 0.5723 GB, free: 5.059 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.17, allocations: 14.89 kB / 0.5723 GB, free: 5.047 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=50 --tolerance=1e-06 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.006398485973477] Failed to read output from testmodel.py, exit status != 0: 12.335617828182876 12.365491356 12.011218998 Calling exit ...