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.001155/0.00116, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001305/0.001305, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.297/1.297, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1794/0.1794, allocations: 38.03 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 66.28 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09638/0.09774, allocations: 58.07 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.005224/0.103, allocations: 3.602 MB / 460.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002552/0.1056, allocations: 1.805 MB / 462.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002094/0.1058, allocations: 11.88 kB / 462.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008587/0.1067, allocations: 235 kB / 462.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006639/0.1074, allocations: 259 kB / 462.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000562/0.1079, allocations: 215.2 kB / 463.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004698/0.1084, allocations: 442.9 kB / 463.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003145/0.1087, allocations: 185.6 kB / 463.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003869/0.1091, allocations: 187.2 kB / 463.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.1094, allocations: 171.4 kB / 464 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.911e-05/0.1095, allocations: 31.94 kB / 464.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004974/0.11, allocations: 335.3 kB / 464.4 MB, free: 492 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.1101, allocations: 107.7 kB / 464.5 MB, free: 384 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.1103, allocations: 151.2 kB / 464.7 MB, free: 232 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006616/0.1109, allocations: 0.5063 MB / 465.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.111, allocations: 0 / 465.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.111, allocations: 0 / 465.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.111, allocations: 0 / 465.2 MB, free: 15.72 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.0009269/0.1119, allocations: 0.6238 MB / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.112, allocations: 19.89 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.054e-05/0.112, allocations: 58.72 kB / 465.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007382/0.1128, allocations: 84.48 kB / 465.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/0.1133, allocations: 367.7 kB / 466.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.1133, allocations: 16.75 kB / 466.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.1133, allocations: 23.92 kB / 466.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005301/0.1139, allocations: 356.6 kB / 466.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1139, allocations: 0 / 466.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.1139, allocations: 11.98 kB / 466.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.995e-05/0.114, allocations: 16.36 kB / 466.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005816/0.1145, allocations: 388.7 kB / 467.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.1163, allocations: 1.546 MB / 468.6 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005578/0.1169, allocations: 321.1 kB / 469 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.1171, allocations: 109.6 kB / 469.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.363e-05/0.1171, allocations: 12.05 kB / 469.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/0.1174, allocations: 200.5 kB / 469.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.984e-06/0.1174, allocations: 0 / 469.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007011/0.1181, allocations: 391.5 kB / 469.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.1182, allocations: 128.5 kB / 469.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002895/0.1185, allocations: 291 kB / 470.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.1185, allocations: 33.69 kB / 470.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.1186, allocations: 172.2 kB / 470.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.268e-05/0.1187, allocations: 82.91 kB / 470.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.479e-05/0.1188, allocations: 57.97 kB / 470.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.1189, allocations: 338.8 kB / 470.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001716/0.1191, allocations: 100.5 kB / 470.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002143/0.1193, allocations: 183.2 kB / 471 MB, free: 9.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004218/0.1198, allocations: 308.2 kB / 471.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1198, allocations: 3.938 kB / 471.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005517/0.1203, allocations: 356.9 kB / 471.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1204, allocations: 4.312 kB / 471.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.1204, allocations: 8 kB / 471.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.1204, allocations: 4 kB / 471.7 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.1207, allocations: 59.91 kB / 471.7 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.1207, allocations: 11.92 kB / 471.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.1208, allocations: 27.69 kB / 471.8 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.1208, allocations: 16 kB / 471.8 MB, free: 8.652 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.0001662/0.121, allocations: 173.8 kB / 472 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.605e-05/0.1211, allocations: 27.72 kB / 472 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005375/0.1216, allocations: 327.6 kB / 472.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.1216, allocations: 4 kB / 472.3 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.1217, allocations: 3.938 kB / 472.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.1217, allocations: 3.938 kB / 472.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009527/0.1226, allocations: 0.7503 MB / 473.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1226, allocations: 4 kB / 473.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.1228, allocations: 39.92 kB / 473.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.782e-06/0.1228, allocations: 7.938 kB / 473.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.1228, allocations: 15.98 kB / 473.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1229, allocations: 0 / 473.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1229, allocations: 0 / 473.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005194/0.1234, allocations: 413.6 kB / 473.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.781e-05/0.1235, allocations: 108.6 kB / 473.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.979e-05/0.1235, allocations: 16 kB / 473.7 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.1237, allocations: 7.984 kB / 473.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.15e-05/0.1237, allocations: 15.98 kB / 473.7 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-05/0.1238, allocations: 11.98 kB / 473.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001958/0.124, allocations: 213.9 kB / 473.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.124, allocations: 0 / 473.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003786/0.1243, allocations: 83.84 kB / 474 MB, free: 6.348 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.00162/0.126, allocations: 1.292 MB / 475.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005003/0.1265, allocations: 283.7 kB / 475.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1265, allocations: 0 / 475.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00019/0.1267, allocations: 119.7 kB / 475.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004642/0.1272, allocations: 64.53 kB / 475.7 MB, free: 4.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.1308, allocations: 3.083 MB / 478.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.1311, allocations: 0.7914 MB / 479.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000205/0.1313, allocations: 82.88 kB / 479.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/0.1315, allocations: 103.4 kB / 479.8 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1315, allocations: 4 kB / 479.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.1567, allocations: 6.787 MB / 486.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.207/7.363, allocations: 12.02 kB / 486.6 MB, free: 9.805 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)