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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 114.7 kB / 17.06 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 197.3 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1749/0.1749, allocations: 38.04 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 59.91 kB / 457.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3391, allocations: 58.06 MB / 0.5036 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004544/0.3437, allocations: 3.618 MB / 0.5071 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.3461, allocations: 1.801 MB / 0.5089 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.3463, allocations: 8.5 kB / 0.5089 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007473/0.3471, allocations: 238.4 kB / 0.5091 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005147/0.3476, allocations: 262.1 kB / 0.5094 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.3481, allocations: 203.5 kB / 0.5096 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000474/0.3486, allocations: 440.1 kB / 0.51 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003152/0.3489, allocations: 191.4 kB / 0.5102 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003635/0.3493, allocations: 192.3 kB / 0.5104 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.3495, allocations: 167.4 kB / 0.5105 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.602e-05/0.3496, allocations: 27.69 kB / 0.5106 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005006/0.3501, allocations: 328 kB / 0.5109 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.3502, allocations: 113.2 kB / 0.511 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.3503, allocations: 153.3 kB / 0.5111 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006699/0.351, allocations: 0.5128 MB / 0.5116 GB, free: 2.309 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.351, allocations: 0 / 0.5116 GB, free: 2.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.351, allocations: 5.312 kB / 0.5116 GB, free: 2.305 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.3511, allocations: 3.938 kB / 0.5116 GB, free: 2.301 MB / 382.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.0007994/0.3519, allocations: 0.6322 MB / 0.5123 GB, free: 1.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3519, allocations: 17.45 kB / 0.5123 GB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.105e-05/0.352, allocations: 55.58 kB / 0.5123 GB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007011/0.3527, allocations: 93.31 kB / 0.5124 GB, free: 1.672 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004527/0.3531, allocations: 376.3 kB / 0.5128 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.3532, allocations: 17.09 kB / 0.5128 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.925e-05/0.3532, allocations: 24.11 kB / 0.5128 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005554/0.3538, allocations: 357.3 kB / 0.5132 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.3538, allocations: 1.094 kB / 0.5132 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.792e-05/0.3538, allocations: 6.859 kB / 0.5132 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.474e-05/0.3539, allocations: 14.86 kB / 0.5132 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006174/0.3545, allocations: 390.9 kB / 0.5135 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001737/0.3562, allocations: 1.541 MB / 0.5151 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006677/0.3569, allocations: 318.9 kB / 0.5154 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.3572, allocations: 109.5 kB / 0.5155 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.3572, allocations: 7.656 kB / 0.5155 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003911/0.3576, allocations: 202.3 kB / 0.5157 GB, free: 15.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.793e-06/0.3576, allocations: 0 / 0.5157 GB, free: 15.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008147/0.3584, allocations: 384.3 kB / 0.516 GB, free: 15.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.997e-05/0.3585, allocations: 132.3 kB / 0.5162 GB, free: 15.22 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004003/0.359, allocations: 294.8 kB / 0.5164 GB, free: 15.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.359, allocations: 33.05 kB / 0.5165 GB, free: 15.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.3592, allocations: 186.9 kB / 0.5166 GB, free: 14.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.817e-05/0.3593, allocations: 84.62 kB / 0.5167 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.3594, allocations: 62.06 kB / 0.5168 GB, free: 14.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.3596, allocations: 340.6 kB / 0.5171 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.3598, allocations: 93.52 kB / 0.5172 GB, free: 14.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.3601, allocations: 186 kB / 0.5174 GB, free: 14.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005212/0.3606, allocations: 302.6 kB / 0.5177 GB, free: 14.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3606, allocations: 1.312 kB / 0.5177 GB, free: 14.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007284/0.3613, allocations: 357.5 kB / 0.518 GB, free: 13.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3614, allocations: 9.5 kB / 0.518 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3614, allocations: 3.266 kB / 0.518 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.3614, allocations: 8.422 kB / 0.518 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002532/0.3617, allocations: 61.19 kB / 0.5181 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.3617, allocations: 8.922 kB / 0.5181 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.3618, allocations: 36.8 kB / 0.5181 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/0.3619, allocations: 18.58 kB / 0.5181 GB, free: 13.86 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.000228/0.3621, allocations: 179.3 kB / 0.5183 GB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.3622, allocations: 30.27 kB / 0.5183 GB, free: 13.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000663/0.3629, allocations: 317 kB / 0.5186 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3629, allocations: 2.406 kB / 0.5186 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3629, allocations: 6.562 kB / 0.5187 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.3629, allocations: 1.156 kB / 0.5187 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.3641, allocations: 0.752 MB / 0.5194 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3641, allocations: 4.453 kB / 0.5194 GB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.3643, allocations: 43.77 kB / 0.5194 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.334e-06/0.3643, allocations: 6.219 kB / 0.5194 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.3643, allocations: 10.06 kB / 0.5195 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3643, allocations: 1.281 kB / 0.5195 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3644, allocations: 5.172 kB / 0.5195 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000629/0.365, allocations: 414.7 kB / 0.5199 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.854e-05/0.3651, allocations: 111.1 kB / 0.52 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.731e-05/0.3652, allocations: 12.83 kB / 0.52 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001358/0.3653, allocations: 3.297 kB / 0.52 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.663e-05/0.3654, allocations: 20.8 kB / 0.52 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.3654, allocations: 9.141 kB / 0.52 GB, free: 12.69 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002962/0.3657, allocations: 214.9 kB / 0.5202 GB, free: 12.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3657, allocations: 4 kB / 0.5202 GB, free: 12.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000462/0.3662, allocations: 79.39 kB / 0.5203 GB, free: 12.55 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.002631/0.3688, allocations: 1.288 MB / 0.5215 GB, free: 11.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006322/0.3695, allocations: 252.1 kB / 0.5218 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3695, allocations: 0.625 kB / 0.5218 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.3698, allocations: 124.3 kB / 0.5219 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005429/0.3703, allocations: 70.12 kB / 0.522 GB, free: 11.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004227/0.3746, allocations: 3.066 MB / 0.525 GB, free: 9.457 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005186/0.3751, allocations: 0.7861 MB / 0.5257 GB, free: 8.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000256/0.3754, allocations: 91.94 kB / 0.5258 GB, free: 8.734 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.3756, allocations: 104.4 kB / 0.5259 GB, free: 8.668 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3756, allocations: 0 / 0.5259 GB, free: 8.668 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03107/0.4066, allocations: 6.928 MB / 0.5327 GB, free: 6.492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.611/9.018, allocations: 22.09 kB / 0.5327 GB, free: 6.477 MB / 398.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)