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.0007455/0.0007456, allocations: 97.28 kB / 16.65 MB, free: 6.59 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.0008593/0.0008594, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.245/1.245, allocations: 223.3 MB / 241.6 MB, free: 128 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.167/0.167, allocations: 38.09 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002905/0.0002905, allocations: 9.406 kB / 400.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09661, allocations: 59.17 MB / 460 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.00352/0.1002, allocations: 3.483 MB / 463.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.1023, allocations: 1.821 MB / 465.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.1024, allocations: 11.94 kB / 465.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002571/0.1027, allocations: 63.69 kB / 465.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004246/0.1031, allocations: 243.2 kB / 465.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003732/0.1035, allocations: 182.7 kB / 465.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004898/0.104, allocations: 0.5768 MB / 466.3 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005221/0.1045, allocations: 350.6 kB / 466.7 MB, free: 232 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002723/0.1048, allocations: 155.2 kB / 466.8 MB, free: 76 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002115/0.105, allocations: 167.4 kB / 467 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/0.1051, allocations: 12 kB / 467 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004493/0.1055, allocations: 371.2 kB / 467.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.254e-05/0.1056, allocations: 95.7 kB / 467.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.1058, allocations: 152.9 kB / 467.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004952/0.1063, allocations: 0.5139 MB / 468.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.1063, allocations: 0 / 468.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1063, allocations: 0 / 468.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1063, allocations: 0 / 468.1 MB, free: 14.77 MB / 350.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.000694/0.107, allocations: 0.5655 MB / 468.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.107, allocations: 11.97 kB / 468.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.761e-05/0.1071, allocations: 62.66 kB / 468.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006383/0.1077, allocations: 92.47 kB / 468.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.1082, allocations: 367.7 kB / 469.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.1082, allocations: 12.75 kB / 469.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.1082, allocations: 23.94 kB / 469.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004929/0.1087, allocations: 356.6 kB / 469.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1087, allocations: 0 / 469.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.1088, allocations: 12 kB / 469.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.1088, allocations: 16.36 kB / 469.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005318/0.1094, allocations: 392.7 kB / 470 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.111, allocations: 1.55 MB / 471.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000554/0.1115, allocations: 317.2 kB / 471.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.1117, allocations: 109.6 kB / 472 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.981e-05/0.1118, allocations: 4 kB / 472 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002896/0.112, allocations: 199.9 kB / 472.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.1121, allocations: 4 kB / 472.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006606/0.1127, allocations: 383.2 kB / 472.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.1128, allocations: 136.5 kB / 472.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.1131, allocations: 290.9 kB / 473 MB, free: 9.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.1131, allocations: 33.7 kB / 473 MB, free: 9.551 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.1133, allocations: 176.2 kB / 473.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.193e-05/0.1133, allocations: 83.22 kB / 473.3 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.984e-05/0.1134, allocations: 33.7 kB / 473.3 MB, free: 9.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1135, allocations: 338.8 kB / 473.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.1137, allocations: 96.52 kB / 473.7 MB, free: 8.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.1139, allocations: 187.2 kB / 473.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003843/0.1143, allocations: 300.4 kB / 474.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1143, allocations: 0 / 474.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005144/0.1148, allocations: 349.3 kB / 474.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1148, allocations: 8 kB / 474.5 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1148, allocations: 7.938 kB / 474.6 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.1149, allocations: 7.984 kB / 474.6 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.1151, allocations: 63.91 kB / 474.6 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.1151, allocations: 7.938 kB / 474.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.1153, allocations: 27.69 kB / 474.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.1153, allocations: 15.94 kB / 474.7 MB, free: 7.789 MB / 350.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.0001682/0.1155, allocations: 189.8 kB / 474.9 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/0.1155, allocations: 27.62 kB / 474.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005358/0.1161, allocations: 319.6 kB / 475.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1161, allocations: 4 kB / 475.2 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1161, allocations: 3.938 kB / 475.2 MB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1161, allocations: 4 kB / 475.2 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000867/0.117, allocations: 0.7422 MB / 476 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.117, allocations: 4 kB / 476 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.1171, allocations: 51.91 kB / 476 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1171, allocations: 3.938 kB / 476 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.1172, allocations: 4 kB / 476 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1172, allocations: 4 kB / 476 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1172, allocations: 0 / 476 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004808/0.1177, allocations: 421.5 kB / 476.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.968e-05/0.1177, allocations: 116.6 kB / 476.5 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.647e-05/0.1178, allocations: 12 kB / 476.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.1179, allocations: 8 kB / 476.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.865e-05/0.118, allocations: 15.97 kB / 476.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.876e-05/0.118, allocations: 8 kB / 476.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000185/0.1182, allocations: 213.9 kB / 476.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1182, allocations: 0 / 476.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003576/0.1186, allocations: 83.92 kB / 476.9 MB, free: 5.473 MB / 350.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.001562/0.1201, allocations: 1.297 MB / 478.2 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004207/0.1206, allocations: 243.7 kB / 478.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1206, allocations: 0 / 478.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000192/0.1208, allocations: 124.4 kB / 478.5 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004475/0.1213, allocations: 67.23 kB / 478.6 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003456/0.1247, allocations: 3.185 MB / 481.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.1251, allocations: 0.7914 MB / 482.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.1253, allocations: 82.89 kB / 482.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000167/0.1255, allocations: 111.3 kB / 482.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1255, allocations: 0 / 482.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02593/0.1514, allocations: 6.298 MB / 489.1 MB, free: 9.426 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.1516, allocations: 250 kB / 489.3 MB, free: 9.168 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/1.922, allocations: 3.938 kB / 489.3 MB, free: 9.164 MB / 366.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)