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.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/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001236/0.001236, allocations: 200 kB / 18.01 MB, free: 5.047 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.387/1.387, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.178/0.178, allocations: 38.03 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 71.83 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3493/0.3512, allocations: 58.05 MB / 0.5036 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.007701/0.359, allocations: 3.61 MB / 0.5071 GB, free: 4.957 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004008/0.363, allocations: 1.801 MB / 0.5089 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002565/0.3633, allocations: 9.969 kB / 0.5089 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.3645, allocations: 234.2 kB / 0.5091 GB, free: 3.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009354/0.3654, allocations: 261.2 kB / 0.5094 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008171/0.3663, allocations: 211 kB / 0.5096 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006871/0.367, allocations: 439.9 kB / 0.51 GB, free: 3.105 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004141/0.3674, allocations: 190.2 kB / 0.5102 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005146/0.3679, allocations: 185.5 kB / 0.5104 GB, free: 2.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.3683, allocations: 176.5 kB / 0.5105 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.325e-05/0.3683, allocations: 29.75 kB / 0.5106 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008102/0.3692, allocations: 321.1 kB / 0.5109 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.3694, allocations: 116.2 kB / 0.511 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001894/0.3696, allocations: 150.6 kB / 0.5111 GB, free: 2.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009547/0.3705, allocations: 0.5157 MB / 0.5116 GB, free: 2.395 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3705, allocations: 1.125 kB / 0.5116 GB, free: 2.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3706, allocations: 0 / 0.5116 GB, free: 2.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.3706, allocations: 0 / 0.5116 GB, free: 2.395 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.001104/0.3717, allocations: 0.6378 MB / 0.5122 GB, free: 1.844 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.3718, allocations: 12.98 kB / 0.5123 GB, free: 1.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.065e-05/0.3718, allocations: 59.61 kB / 0.5123 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/0.373, allocations: 95.66 kB / 0.5124 GB, free: 1.758 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006687/0.3737, allocations: 368.8 kB / 0.5128 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.919e-05/0.3738, allocations: 13.77 kB / 0.5128 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.529e-05/0.3738, allocations: 24.48 kB / 0.5128 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000806/0.3747, allocations: 356.6 kB / 0.5131 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.3747, allocations: 1.094 kB / 0.5131 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.3747, allocations: 11.2 kB / 0.5131 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.755e-05/0.3748, allocations: 22.58 kB / 0.5132 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008996/0.3757, allocations: 387.5 kB / 0.5135 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002117/0.3778, allocations: 1.545 MB / 0.515 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009012/0.3788, allocations: 316.6 kB / 0.5153 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002479/0.379, allocations: 104.1 kB / 0.5154 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.988e-05/0.3791, allocations: 11.72 kB / 0.5155 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004445/0.3796, allocations: 198 kB / 0.5156 GB, free: 15.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.795e-06/0.3796, allocations: 0 / 0.5156 GB, free: 15.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008837/0.3805, allocations: 389.3 kB / 0.516 GB, free: 15.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.891e-05/0.3806, allocations: 131.5 kB / 0.5161 GB, free: 15.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003887/0.381, allocations: 294.7 kB / 0.5164 GB, free: 15.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.381, allocations: 33.08 kB / 0.5165 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.3812, allocations: 179.1 kB / 0.5166 GB, free: 14.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.283e-05/0.3813, allocations: 92.38 kB / 0.5167 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.3814, allocations: 58.25 kB / 0.5168 GB, free: 14.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.3816, allocations: 344.6 kB / 0.5171 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.3818, allocations: 96.52 kB / 0.5172 GB, free: 14.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002684/0.3821, allocations: 186.8 kB / 0.5174 GB, free: 14.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005348/0.3827, allocations: 297.9 kB / 0.5176 GB, free: 14.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.3827, allocations: 1.766 kB / 0.5176 GB, free: 14.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007263/0.3834, allocations: 361.2 kB / 0.518 GB, free: 13.99 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.3834, allocations: 13.41 kB / 0.518 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3835, allocations: 2.938 kB / 0.518 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.3835, allocations: 3.531 kB / 0.518 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.3838, allocations: 66.2 kB / 0.5181 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.3838, allocations: 8.359 kB / 0.5181 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.3839, allocations: 28.47 kB / 0.5181 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.384, allocations: 11.98 kB / 0.5181 GB, free: 13.96 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.0002335/0.3842, allocations: 178 kB / 0.5183 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.316e-05/0.3843, allocations: 30.44 kB / 0.5183 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006353/0.3849, allocations: 324.4 kB / 0.5186 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.385, allocations: 3.031 kB / 0.5186 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.385, allocations: 9.75 kB / 0.5186 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.385, allocations: 2.359 kB / 0.5186 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.3861, allocations: 0.7463 MB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3861, allocations: 1.156 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.3863, allocations: 42.78 kB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.3863, allocations: 6.375 kB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.3863, allocations: 10.19 kB / 0.5194 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3863, allocations: 1.062 kB / 0.5194 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3863, allocations: 2.156 kB / 0.5194 GB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006173/0.387, allocations: 409.8 kB / 0.5198 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.399e-05/0.3871, allocations: 115 kB / 0.5199 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.303e-05/0.3871, allocations: 13.55 kB / 0.5199 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.3873, allocations: 8.234 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.126e-05/0.3873, allocations: 15.73 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.3874, allocations: 13.12 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002625/0.3876, allocations: 215.4 kB / 0.5202 GB, free: 12.67 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3876, allocations: 0 / 0.5202 GB, free: 12.67 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000419/0.3881, allocations: 74.58 kB / 0.5203 GB, free: 12.65 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.002377/0.3904, allocations: 1.312 MB / 0.5215 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005753/0.391, allocations: 247.9 kB / 0.5218 GB, free: 11.65 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3911, allocations: 0 / 0.5218 GB, free: 11.65 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002211/0.3913, allocations: 123 kB / 0.5219 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005135/0.3918, allocations: 60.48 kB / 0.522 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00411/0.3959, allocations: 3.074 MB / 0.525 GB, free: 9.551 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004668/0.3964, allocations: 0.7896 MB / 0.5257 GB, free: 8.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00026/0.3967, allocations: 86.75 kB / 0.5258 GB, free: 8.828 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.3969, allocations: 103.3 kB / 0.5259 GB, free: 8.762 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3969, allocations: 0 / 0.5259 GB, free: 8.762 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03206/0.429, allocations: 6.914 MB / 0.5327 GB, free: 6.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.143/8.572, allocations: 15.08 kB / 0.5327 GB, free: 6.582 MB / 398.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)