Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001825/0.001825, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002356/0.002356, allocations: 218.7 kB / 24.52 MB, free: 3.91 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.466/1.466, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1899/0.1899, allocations: 38.56 MB / 353.3 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="cs",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.002024/0.002024, allocations: 67.91 kB / 493.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3575, allocations: 62.47 MB / 0.5427 GB, free: 240 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.006377/0.3639, allocations: 3.608 MB / 0.5462 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.3674, allocations: 1.825 MB / 0.548 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002455/0.3676, allocations: 8.406 kB / 0.548 GB, free: 12.06 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.3687, allocations: 227.8 kB / 0.5482 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.3698, allocations: 308.8 kB / 0.5485 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007186/0.3705, allocations: 181.6 kB / 0.5487 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000771/0.3713, allocations: 452.7 kB / 0.5491 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004254/0.3717, allocations: 165.3 kB / 0.5493 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005708/0.3723, allocations: 200.9 kB / 0.5495 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004233/0.3727, allocations: 196.1 kB / 0.5497 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.572e-05/0.3728, allocations: 29.66 kB / 0.5497 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007762/0.3736, allocations: 328.4 kB / 0.55 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.3737, allocations: 129.1 kB / 0.5501 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002551/0.374, allocations: 124.9 kB / 0.5503 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.3752, allocations: 0.577 MB / 0.5508 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.3752, allocations: 4 kB / 0.5508 GB, free: 10.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3752, allocations: 0 / 0.5508 GB, free: 10.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.3752, allocations: 5.281 kB / 0.5508 GB, free: 10.2 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.00125/0.3765, allocations: 0.5828 MB / 0.5514 GB, free: 9.68 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3765, allocations: 17.58 kB / 0.5514 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.338e-05/0.3765, allocations: 5.969 kB / 0.5514 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.347e-05/0.3766, allocations: 53.98 kB / 0.5515 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008457/0.3774, allocations: 90.69 kB / 0.5516 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005939/0.378, allocations: 295.7 kB / 0.5518 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.3781, allocations: 20.39 kB / 0.5519 GB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.797e-05/0.3781, allocations: 24.17 kB / 0.5519 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000705/0.3788, allocations: 394.1 kB / 0.5523 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.3788, allocations: 1.344 kB / 0.5523 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.891e-05/0.3789, allocations: 10.7 kB / 0.5523 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.567e-05/0.3789, allocations: 15.91 kB / 0.5523 GB, free: 9.008 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007985/0.3797, allocations: 446.8 kB / 0.5527 GB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002117/0.3818, allocations: 1.398 MB / 0.5541 GB, free: 7.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007593/0.3826, allocations: 338.6 kB / 0.5544 GB, free: 7.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.3828, allocations: 120.4 kB / 0.5545 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.3828, allocations: 6.625 kB / 0.5545 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003762/0.3832, allocations: 214.6 kB / 0.5547 GB, free: 7.184 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.964e-06/0.3832, allocations: 0 / 0.5547 GB, free: 7.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009062/0.3841, allocations: 427.4 kB / 0.5551 GB, free: 6.973 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.3842, allocations: 131.9 kB / 0.5553 GB, free: 6.816 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004861/0.3847, allocations: 352.3 kB / 0.5556 GB, free: 6.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.3848, allocations: 37.03 kB / 0.5556 GB, free: 6.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.3849, allocations: 184.9 kB / 0.5558 GB, free: 6.383 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.366e-05/0.385, allocations: 84.25 kB / 0.5559 GB, free: 6.312 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.3851, allocations: 61.06 kB / 0.5559 GB, free: 6.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.3853, allocations: 343.4 kB / 0.5563 GB, free: 5.93 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.3856, allocations: 106.8 kB / 0.5564 GB, free: 5.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003139/0.3859, allocations: 223.7 kB / 0.5566 GB, free: 5.684 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005077/0.3864, allocations: 326.8 kB / 0.5569 GB, free: 5.359 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.3864, allocations: 4 kB / 0.5569 GB, free: 5.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007183/0.3871, allocations: 389.3 kB / 0.5573 GB, free: 4.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.3871, allocations: 7.938 kB / 0.5573 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.729e-06/0.3871, allocations: 4 kB / 0.5573 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.3872, allocations: 8 kB / 0.5573 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.3875, allocations: 63.89 kB / 0.5574 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.3875, allocations: 11.88 kB / 0.5574 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.3877, allocations: 31.78 kB / 0.5574 GB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.966e-05/0.3877, allocations: 12 kB / 0.5574 GB, free: 4.832 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.0002275/0.3879, allocations: 181.7 kB / 0.5576 GB, free: 4.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.932e-05/0.388, allocations: 35.88 kB / 0.5576 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008037/0.3888, allocations: 408.1 kB / 0.558 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.3888, allocations: 7.984 kB / 0.558 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.3889, allocations: 3.938 kB / 0.558 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.3889, allocations: 0 / 0.558 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001315/0.3902, allocations: 0.7909 MB / 0.5588 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3902, allocations: 0 / 0.5588 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.3904, allocations: 55.91 kB / 0.5588 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/0.3904, allocations: 7.938 kB / 0.5588 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/0.3904, allocations: 15.98 kB / 0.5589 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.3904, allocations: 0 / 0.5589 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3904, allocations: 0 / 0.5589 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007229/0.3912, allocations: 495.7 kB / 0.5593 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.505e-05/0.3912, allocations: 39.69 kB / 0.5594 GB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.65e-05/0.3913, allocations: 8 kB / 0.5594 GB, free: 2.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.3915, allocations: 11.98 kB / 0.5594 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.431e-05/0.3915, allocations: 19.97 kB / 0.5594 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.224e-05/0.3916, allocations: 19.98 kB / 0.5594 GB, free: 2.672 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000315/0.3919, allocations: 255 kB / 0.5597 GB, free: 2.426 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3919, allocations: 4 kB / 0.5597 GB, free: 2.422 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005741/0.3924, allocations: 99.81 kB / 0.5598 GB, free: 2.324 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.003371/0.3958, allocations: 1.467 MB / 0.5612 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000699/0.3965, allocations: 272 kB / 0.5615 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3965, allocations: 0 / 0.5615 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003139/0.3968, allocations: 144.4 kB / 0.5616 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005778/0.3974, allocations: 75.55 kB / 0.5617 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004644/0.4021, allocations: 3.259 MB / 0.5649 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.4023, allocations: 200.9 kB / 0.565 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002284/0.4025, allocations: 82.91 kB / 0.5651 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.4027, allocations: 115.4 kB / 0.5652 GB, free: 12.75 MB / 414.1 MB Notification: Performance of SimCode: time 1.322e-06/0.4027, allocations: 3.938 kB / 0.5652 GB, free: 12.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03326/0.436, allocations: 8.408 MB / 0.5735 GB, free: 4.398 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.44, allocations: 14.64 kB / 0.5735 GB, free: 4.395 MB / 414.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.380397806991823] Failed to read output from testmodel.py, exit status != 0: 12.668380783987232 12.689955539 12.310962332 Calling exit ...