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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001058/0.001058, allocations: 178.6 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.681/1.681, allocations: 194.3 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00172/0.00172, allocations: 120.7 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.168/0.168, allocations: 37.93 MB / 330.9 MB, free: 2.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.789e-05/1.792e-05, allocations: 4 kB / 390.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3904, allocations: 53.22 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1265/0.517, allocations: 88.58 MB / 0.5198 GB, free: 8.965 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001985/0.519, allocations: 0.5776 MB / 0.5204 GB, free: 8.387 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getDerTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableValue. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableTimeTmin. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$city$data.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.2615/0.7805, allocations: 14.29 MB / 0.5343 GB, free: 87.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.7805, allocations: 0 / 0.5343 GB, free: 87.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.199e-05/0.7806, allocations: 5.375 kB / 0.5343 GB, free: 87.32 MB / 378.7 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.0008237/0.7814, allocations: 0.6204 MB / 0.5349 GB, free: 86.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.7815, allocations: 8.938 kB / 0.5349 GB, free: 86.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008513/0.7823, allocations: 104.2 kB / 0.535 GB, free: 86.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005805/0.7829, allocations: 353.4 kB / 0.5354 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/0.783, allocations: 6.312 kB / 0.5354 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.327e-05/0.783, allocations: 12.12 kB / 0.5354 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006984/0.7837, allocations: 352.2 kB / 0.5357 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005804/0.7843, allocations: 342.9 kB / 0.536 GB, free: 86.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.7843, allocations: 1.031 kB / 0.5361 GB, free: 86.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.7844, allocations: 6.031 kB / 0.5361 GB, free: 86.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/0.7844, allocations: 11.5 kB / 0.5361 GB, free: 86.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.7862, allocations: 1.616 MB / 0.5376 GB, free: 85.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006417/0.7869, allocations: 349.7 kB / 0.538 GB, free: 85.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001796/0.7871, allocations: 109.7 kB / 0.5381 GB, free: 85.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.712e-05/0.7871, allocations: 12.95 kB / 0.5381 GB, free: 85.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003191/0.7874, allocations: 203.3 kB / 0.5383 GB, free: 85.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.144e-06/0.7875, allocations: 0 / 0.5383 GB, free: 85.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.0005258/0.788, allocations: 311.1 kB / 0.5386 GB, free: 84.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.788, allocations: 131.6 kB / 0.5387 GB, free: 84.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002621/0.7883, allocations: 278.4 kB / 0.539 GB, free: 84.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.7883, allocations: 29.64 kB / 0.539 GB, free: 84.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.201e-05/0.7884, allocations: 178.2 kB / 0.5392 GB, free: 84.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.554e-05/0.7885, allocations: 87.42 kB / 0.5393 GB, free: 84.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.703e-05/0.7885, allocations: 3.875 kB / 0.5393 GB, free: 84.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.487e-05/0.7886, allocations: 340.8 kB / 0.5396 GB, free: 84.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.7888, allocations: 111.7 kB / 0.5397 GB, free: 84.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.7889, allocations: 200.7 kB / 0.5399 GB, free: 83.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.7892, allocations: 151.1 kB / 0.54 GB, free: 83.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.7892, allocations: 0 / 0.54 GB, free: 83.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005522/0.7897, allocations: 403.5 kB / 0.5404 GB, free: 83.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.7898, allocations: 34.64 kB / 0.5404 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.7898, allocations: 6.656 kB / 0.5405 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.7898, allocations: 3.75 kB / 0.5405 GB, free: 83.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.7901, allocations: 67.94 kB / 0.5405 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.7901, allocations: 3.906 kB / 0.5405 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.7903, allocations: 24.53 kB / 0.5405 GB, free: 83.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.7903, allocations: 14.72 kB / 0.5406 GB, free: 83.61 MB / 378.7 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 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.7904, allocations: 120.7 kB / 0.5407 GB, free: 83.49 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004396/0.7909, allocations: 319.6 kB / 0.541 GB, free: 83.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.171e-05/0.7909, allocations: 25.91 kB / 0.541 GB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005863/0.7915, allocations: 391.9 kB / 0.5414 GB, free: 83.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.7916, allocations: 3.844 kB / 0.5414 GB, free: 83.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.7916, allocations: 3.688 kB / 0.5414 GB, free: 83.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.7916, allocations: 0 / 0.5414 GB, free: 83.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008224/0.7924, allocations: 0.8024 MB / 0.5422 GB, free: 82.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.7924, allocations: 0 / 0.5422 GB, free: 82.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.7926, allocations: 61.75 kB / 0.5422 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.7926, allocations: 3.625 kB / 0.5422 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.7927, allocations: 7.875 kB / 0.5422 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.7927, allocations: 3.938 kB / 0.5422 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.7927, allocations: 0 / 0.5422 GB, free: 82.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004978/0.7932, allocations: 491.6 kB / 0.5427 GB, free: 82.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.7933, allocations: 152.5 kB / 0.5429 GB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.481e-05/0.7934, allocations: 9.797 kB / 0.5429 GB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.7935, allocations: 7.188 kB / 0.5429 GB, free: 82.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.21e-05/0.7936, allocations: 24.48 kB / 0.5429 GB, free: 82.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.7936, allocations: 16.84 kB / 0.5429 GB, free: 82.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001757/0.7938, allocations: 212.3 kB / 0.5431 GB, free: 82.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7938, allocations: 0 / 0.5431 GB, free: 82.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00048/0.7943, allocations: 95.31 kB / 0.5432 GB, free: 82.12 MB / 378.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001443/0.7958, allocations: 1.465 MB / 0.5446 GB, free: 80.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004825/0.7963, allocations: 363.1 kB / 0.545 GB, free: 80.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.7963, allocations: 0 / 0.545 GB, free: 80.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.7964, allocations: 148.8 kB / 0.5451 GB, free: 80.71 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.7968, allocations: 39.77 kB / 0.5452 GB, free: 80.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.7979, allocations: 0.5687 MB / 0.5457 GB, free: 80.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.7982, allocations: 0.8087 MB / 0.5465 GB, free: 79.67 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001965/0.7984, allocations: 82.7 kB / 0.5466 GB, free: 79.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.7986, allocations: 109.3 kB / 0.5467 GB, free: 79.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.7986, allocations: 0 / 0.5467 GB, free: 79.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02559/0.8242, allocations: 6.33 MB / 0.5529 GB, free: 74.6 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001415/0.8244, allocations: 168.5 kB / 0.553 GB, free: 74.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.083/2.907, allocations: 0 / 0.553 GB, free: 74.4 MB / 378.7 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/linux/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)