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.001491/0.001491, allocations: 116.5 kB / 16.63 MB, free: 6.945 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.001691/0.001691, allocations: 197.8 kB / 17.55 MB, free: 6.043 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.322/1.322, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1728/0.1728, allocations: 38.01 MB / 329.4 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 66.69 kB / 398.4 MB, free: 34.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09171/0.09311, allocations: 58.07 MB / 456.4 MB, free: 8.309 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005108/0.09824, allocations: 3.838 MB / 460.3 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.1009, allocations: 1.852 MB / 462.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002154/0.1011, allocations: 11.88 kB / 462.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008141/0.102, allocations: 215.3 kB / 462.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006398/0.1026, allocations: 251.1 kB / 462.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005963/0.1032, allocations: 179.6 kB / 462.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005901/0.1038, allocations: 435 kB / 463.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004565/0.1043, allocations: 206.3 kB / 463.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005799/0.1049, allocations: 199.2 kB / 463.6 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.1052, allocations: 187.3 kB / 463.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.217e-05/0.1053, allocations: 32 kB / 463.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006274/0.1059, allocations: 315.3 kB / 464.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.1061, allocations: 123.7 kB / 464.2 MB, free: 480 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001927/0.1063, allocations: 143.3 kB / 464.4 MB, free: 336 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007126/0.107, allocations: 0.5375 MB / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1071, allocations: 0 / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1071, allocations: 0 / 464.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.1071, allocations: 0 / 464.9 MB, free: 15.79 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.0009675/0.1081, allocations: 0.6237 MB / 465.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.1081, allocations: 11.89 kB / 465.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.925e-05/0.1082, allocations: 58.72 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007981/0.109, allocations: 84.48 kB / 465.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005513/0.1096, allocations: 367.7 kB / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.1096, allocations: 16.73 kB / 466.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.136e-05/0.1096, allocations: 19.94 kB / 466.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006102/0.1103, allocations: 360.6 kB / 466.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.1103, allocations: 4 kB / 466.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.014e-05/0.1103, allocations: 4 kB / 466.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.285e-05/0.1104, allocations: 16.38 kB / 466.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006071/0.111, allocations: 396.7 kB / 466.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.1129, allocations: 1.554 MB / 468.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005732/0.1134, allocations: 317.1 kB / 468.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001736/0.1136, allocations: 105.7 kB / 468.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.1137, allocations: 8 kB / 468.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003228/0.114, allocations: 196.5 kB / 469 MB, free: 11.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.114, allocations: 0 / 469 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00075/0.1148, allocations: 395.2 kB / 469.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.714e-05/0.1149, allocations: 132.5 kB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.1152, allocations: 291 kB / 469.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.1152, allocations: 33.7 kB / 469.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.1154, allocations: 176.2 kB / 470 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.588e-05/0.1154, allocations: 82.97 kB / 470.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.915e-05/0.1155, allocations: 53.98 kB / 470.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.1156, allocations: 343.1 kB / 470.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.1158, allocations: 96.52 kB / 470.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.116, allocations: 183.2 kB / 470.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004073/0.1165, allocations: 303.8 kB / 471.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1165, allocations: 0 / 471.1 MB, free: 9.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000609/0.1171, allocations: 357.2 kB / 471.4 MB, free: 8.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1171, allocations: 15.97 kB / 471.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1171, allocations: 0 / 471.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.1172, allocations: 4 kB / 471.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002436/0.1174, allocations: 67.91 kB / 471.5 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.1174, allocations: 11.92 kB / 471.5 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001489/0.1176, allocations: 27.69 kB / 471.5 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/0.1176, allocations: 8 kB / 471.5 MB, free: 8.73 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.0001906/0.1178, allocations: 188.5 kB / 471.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.01e-05/0.1179, allocations: 23.72 kB / 471.8 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005682/0.1185, allocations: 319.6 kB / 472.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.1185, allocations: 4 kB / 472.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1185, allocations: 3.938 kB / 472.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1185, allocations: 3.984 kB / 472.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009321/0.1194, allocations: 0.7464 MB / 472.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1194, allocations: 0 / 472.8 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.1196, allocations: 47.91 kB / 472.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.1196, allocations: 11.94 kB / 472.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.1197, allocations: 4 kB / 472.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.1197, allocations: 3.938 kB / 472.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1197, allocations: 4 kB / 472.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005188/0.1202, allocations: 409.6 kB / 473.3 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.994e-05/0.1203, allocations: 124.6 kB / 473.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.229e-05/0.1203, allocations: 8 kB / 473.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.1205, allocations: 4 kB / 473.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.1205, allocations: 19.97 kB / 473.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.1206, allocations: 12 kB / 473.5 MB, free: 6.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.1208, allocations: 213.9 kB / 473.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1208, allocations: 0 / 473.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004152/0.1212, allocations: 79.83 kB / 473.7 MB, free: 6.422 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.00164/0.1229, allocations: 1.296 MB / 475 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004932/0.1234, allocations: 278.7 kB / 475.3 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1234, allocations: 0 / 475.3 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001971/0.1236, allocations: 127.7 kB / 475.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004435/0.124, allocations: 53.55 kB / 475.5 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003642/0.1277, allocations: 3.165 MB / 478.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.1281, allocations: 0.7914 MB / 479.4 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002094/0.1283, allocations: 86.88 kB / 479.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001674/0.1285, allocations: 115.3 kB / 479.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1285, allocations: 0 / 479.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0364/0.1649, allocations: 6.704 MB / 486.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003034/0.1652, allocations: 244.9 kB / 486.6 MB, free: 9.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.082, allocations: 0 / 486.6 MB, free: 9.66 MB / 366.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)