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.001138/0.001138, allocations: 107.7 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.001027/0.001026, 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.322/1.322, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.173/0.173, allocations: 38.03 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 61.72 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.102, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004945/0.107, allocations: 3.599 MB / 460.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.1096, allocations: 1.816 MB / 462.4 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.1098, allocations: 8 kB / 462.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008611/0.1107, allocations: 238.9 kB / 462.6 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006212/0.1113, allocations: 255 kB / 462.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000559/0.1119, allocations: 215.3 kB / 463.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004659/0.1124, allocations: 438.9 kB / 463.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003311/0.1127, allocations: 181.6 kB / 463.7 MB, free: 1.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.113, allocations: 195.2 kB / 463.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.1133, allocations: 175.4 kB / 464.1 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.339e-05/0.1133, allocations: 28 kB / 464.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004782/0.1138, allocations: 319.3 kB / 464.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.114, allocations: 115.7 kB / 464.5 MB, free: 392 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.1141, allocations: 155.2 kB / 464.7 MB, free: 236 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000575/0.1147, allocations: 0.5141 MB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1147, allocations: 0 / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1147, allocations: 0 / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.1148, allocations: 0 / 465.2 MB, free: 15.71 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.0011/0.1159, allocations: 0.6122 MB / 465.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.1159, allocations: 15.88 kB / 465.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.736e-05/0.116, allocations: 62.61 kB / 465.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008385/0.1168, allocations: 88.48 kB / 465.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005277/0.1174, allocations: 371.7 kB / 466.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.1174, allocations: 8.75 kB / 466.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.45e-05/0.1175, allocations: 23.92 kB / 466.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005916/0.1181, allocations: 360.6 kB / 466.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1181, allocations: 0 / 466.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.1181, allocations: 8 kB / 466.7 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.383e-05/0.1182, allocations: 16.38 kB / 466.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006195/0.1188, allocations: 388.8 kB / 467.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.1207, allocations: 1.554 MB / 468.7 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005821/0.1213, allocations: 313.2 kB / 469 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.1215, allocations: 105.7 kB / 469.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.873e-05/0.1215, allocations: 11.94 kB / 469.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003124/0.1218, allocations: 200.5 kB / 469.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.1219, allocations: 0 / 469.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007564/0.1226, allocations: 386.9 kB / 469.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.1227, allocations: 136.7 kB / 469.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000339/0.1231, allocations: 295 kB / 470.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.1231, allocations: 33.7 kB / 470.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001354/0.1233, allocations: 184.2 kB / 470.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.994e-05/0.1234, allocations: 78.91 kB / 470.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.1235, allocations: 53.98 kB / 470.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.1236, allocations: 338.8 kB / 470.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.1238, allocations: 96.52 kB / 470.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002465/0.1241, allocations: 187.2 kB / 471 MB, free: 9.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004323/0.1245, allocations: 300.2 kB / 471.3 MB, free: 9.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1246, allocations: 4 kB / 471.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006079/0.1252, allocations: 357 kB / 471.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1252, allocations: 4 kB / 471.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.1252, allocations: 4 kB / 471.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.1252, allocations: 4 kB / 471.7 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.1255, allocations: 68.16 kB / 471.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.1255, allocations: 11.94 kB / 471.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001451/0.1257, allocations: 27.69 kB / 471.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.1257, allocations: 12 kB / 471.8 MB, free: 8.66 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.0001942/0.1259, allocations: 177.7 kB / 472 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.836e-05/0.126, allocations: 27.72 kB / 472 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005868/0.1266, allocations: 319.6 kB / 472.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.1266, allocations: 4 kB / 472.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.1266, allocations: 11.88 kB / 472.3 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.1266, allocations: 7.984 kB / 472.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.1277, allocations: 0.744 MB / 473.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1277, allocations: 0 / 473.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.1279, allocations: 51.91 kB / 473.1 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.753e-06/0.1279, allocations: 3.938 kB / 473.1 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.1279, allocations: 4 kB / 473.1 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-05/0.1279, allocations: 4 kB / 473.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1279, allocations: 0 / 473.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006241/0.1286, allocations: 420 kB / 473.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.063e-05/0.1287, allocations: 112.6 kB / 473.7 MB, free: 6.684 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.499e-05/0.1287, allocations: 11.98 kB / 473.7 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.1289, allocations: 8 kB / 473.7 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.062e-05/0.1289, allocations: 15.98 kB / 473.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.129, allocations: 15.98 kB / 473.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002242/0.1292, allocations: 213.9 kB / 473.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1292, allocations: 0 / 473.9 MB, free: 6.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004124/0.1296, allocations: 75.84 kB / 474 MB, free: 6.355 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.001961/0.1316, allocations: 1.298 MB / 475.3 MB, free: 5.207 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005715/0.1322, allocations: 287 kB / 475.6 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1322, allocations: 0 / 475.6 MB, free: 4.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000234/0.1324, allocations: 127.7 kB / 475.7 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004861/0.1329, allocations: 48.86 kB / 475.7 MB, free: 4.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003888/0.1368, allocations: 3.083 MB / 478.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.1372, allocations: 0.7875 MB / 479.6 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002213/0.1375, allocations: 86.89 kB / 479.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001663/0.1376, allocations: 107.4 kB / 479.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1376, allocations: 0 / 479.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02766/0.1653, allocations: 6.788 MB / 486.6 MB, free: 9.824 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.311/7.477, allocations: 3.953 kB / 486.6 MB, free: 9.82 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1)