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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0008648/0.0008649, allocations: 85.8 kB / 16.31 MB, free: 5.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.001014/0.001014, allocations: 179.8 kB / 17.21 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.595/1.595, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3179/0.3179, allocations: 38.06 MB / 309.7 MB, free: 8.91 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005073/0.0005074, allocations: 20 kB / 376.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1169, allocations: 56.33 MB / 432.9 MB, free: 6.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004563/0.1215, allocations: 3.345 MB / 436.3 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002476/0.124, allocations: 1.65 MB / 437.9 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000267/0.1243, allocations: 15.88 kB / 438 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003961/0.1247, allocations: 63.66 kB / 438 MB, free: 1.496 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006769/0.1254, allocations: 215.1 kB / 438.2 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005152/0.1259, allocations: 143.7 kB / 438.4 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006346/0.1266, allocations: 474.8 kB / 438.8 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007136/0.1273, allocations: 330.5 kB / 439.2 MB, free: 348 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004603/0.1278, allocations: 163.3 kB / 439.3 MB, free: 184 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003362/0.1281, allocations: 159.5 kB / 439.5 MB, free: 24 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.342e-05/0.1282, allocations: 12 kB / 439.5 MB, free: 12 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005107/0.1287, allocations: 175.6 kB / 439.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.1288, allocations: 99.69 kB / 439.8 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.129, allocations: 73.58 kB / 439.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005804/0.1296, allocations: 391 kB / 440.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1296, allocations: 0 / 440.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1296, allocations: 0 / 440.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.1296, allocations: 4 kB / 440.2 MB, free: 15.28 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.001002/0.1306, allocations: 0.5692 MB / 440.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.1307, allocations: 8.031 kB / 440.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.205e-05/0.1308, allocations: 62.52 kB / 440.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007379/0.1315, allocations: 83.55 kB / 440.9 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005168/0.132, allocations: 366.5 kB / 441.3 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.1321, allocations: 8.375 kB / 441.3 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.685e-05/0.1321, allocations: 20 kB / 441.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/0.1327, allocations: 364.3 kB / 441.7 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1327, allocations: 0 / 441.7 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.1328, allocations: 12 kB / 441.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.119e-05/0.1328, allocations: 16.36 kB / 441.7 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000656/0.1335, allocations: 388.8 kB / 442.1 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.1355, allocations: 1.55 MB / 443.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005514/0.136, allocations: 321.6 kB / 443.9 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.1362, allocations: 106 kB / 444 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.825e-05/0.1363, allocations: 12.17 kB / 444.1 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.1366, allocations: 190.2 kB / 444.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=24): time 3.777e-06/0.1366, allocations: 0 / 444.2 MB, free: 10.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007462/0.1374, allocations: 386.1 kB / 444.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.685e-05/0.1374, allocations: 132.5 kB / 444.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.1377, allocations: 287 kB / 445 MB, free: 10.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/0.1378, allocations: 37.94 kB / 445.1 MB, free: 10.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.1379, allocations: 180.1 kB / 445.2 MB, free: 9.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.323e-05/0.138, allocations: 82.97 kB / 445.3 MB, free: 9.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/0.138, allocations: 4 kB / 445.3 MB, free: 9.824 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.1382, allocations: 346.8 kB / 445.7 MB, free: 9.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/0.1384, allocations: 92.52 kB / 445.8 MB, free: 9.387 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002276/0.1387, allocations: 187.3 kB / 445.9 MB, free: 9.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.1389, allocations: 123.9 kB / 446.1 MB, free: 9.047 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1389, allocations: 4 kB / 446.1 MB, free: 9.043 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005104/0.1394, allocations: 345.8 kB / 446.4 MB, free: 8.699 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1394, allocations: 8 kB / 446.4 MB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1395, allocations: 4.312 kB / 446.4 MB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.1395, allocations: 11.94 kB / 446.4 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.1397, allocations: 59.91 kB / 446.5 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.1397, allocations: 7.938 kB / 446.5 MB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.1399, allocations: 27.69 kB / 446.5 MB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/0.1399, allocations: 19.98 kB / 446.5 MB, free: 8.562 MB / 382.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 ($whenCondition1,$PRE.city.data.nextTimeEvent,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001709/0.1401, allocations: 181.7 kB / 446.7 MB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.1401, allocations: 23.72 kB / 446.7 MB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005206/0.1407, allocations: 323.5 kB / 447.1 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.1407, allocations: 4 kB / 447.1 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1407, allocations: 0 / 447.1 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.1407, allocations: 3.984 kB / 447.1 MB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009354/0.1416, allocations: 0.7479 MB / 447.8 MB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.1417, allocations: 8 kB / 447.8 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001469/0.1418, allocations: 39.92 kB / 447.9 MB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.1418, allocations: 4 kB / 447.9 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.1419, allocations: 8 kB / 447.9 MB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.1419, allocations: 7.984 kB / 447.9 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.1419, allocations: 0 / 447.9 MB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004849/0.1424, allocations: 408.7 kB / 448.3 MB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.464e-05/0.1425, allocations: 116.6 kB / 448.4 MB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.013e-05/0.1425, allocations: 8 kB / 448.4 MB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.1426, allocations: 15.98 kB / 448.4 MB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.158e-05/0.1427, allocations: 19.97 kB / 448.4 MB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.1427, allocations: 11.98 kB / 448.4 MB, free: 6.535 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002023/0.1429, allocations: 213.9 kB / 448.7 MB, free: 6.328 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1429, allocations: 0 / 448.7 MB, free: 6.328 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.1433, allocations: 71.84 kB / 448.7 MB, free: 6.258 MB / 382.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 (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.001692/0.145, allocations: 1.297 MB / 450 MB, free: 4.926 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004291/0.1455, allocations: 251.6 kB / 450.3 MB, free: 4.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1455, allocations: 4 kB / 450.3 MB, free: 4.676 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001936/0.1457, allocations: 115.8 kB / 450.4 MB, free: 4.562 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.1461, allocations: 57.3 kB / 450.4 MB, free: 4.508 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.149, allocations: 1.852 MB / 452.3 MB, free: 2.566 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.1494, allocations: 0.7914 MB / 453.1 MB, free: 1.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.1496, allocations: 78.89 kB / 453.2 MB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001686/0.1497, allocations: 111.4 kB / 453.3 MB, free: 1.562 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1497, allocations: 0 / 453.3 MB, free: 1.562 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2172/0.367, allocations: 6.276 MB / 459.5 MB, free: 50.28 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.3672, allocations: 221.4 kB / 459.8 MB, free: 50.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.255, allocations: 3.938 kB / 459.8 MB, free: 50.04 MB / 382.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/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) Environment - environmentSimulation: