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.0012/0.0012, allocations: 105.9 kB / 16.51 MB, free: 6.707 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.001295/0.001295, allocations: 186.6 kB / 17.42 MB, free: 6.07 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.259/1.259, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1609/0.1609, allocations: 38.04 MB / 329.3 MB, free: 9.098 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 63.31 kB / 398.2 MB, free: 34.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08794/0.0891, allocations: 58.08 MB / 456.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.004681/0.09382, allocations: 3.834 MB / 460.1 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.0961, allocations: 1.863 MB / 462 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.09624, allocations: 15.88 kB / 462 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006889/0.09694, allocations: 223.2 kB / 462.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000439/0.09739, allocations: 247.2 kB / 462.4 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004004/0.0978, allocations: 181.7 kB / 462.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004825/0.09829, allocations: 0.5651 MB / 463.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002811/0.09858, allocations: 177.7 kB / 463.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.09887, allocations: 155.3 kB / 463.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.09909, allocations: 183.3 kB / 463.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.341e-05/0.09913, allocations: 16 kB / 463.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004658/0.0996, allocations: 363.2 kB / 464.1 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.926e-05/0.09971, allocations: 107.7 kB / 464.2 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.09984, allocations: 135.2 kB / 464.3 MB, free: 396 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000517/0.1004, allocations: 0.5219 MB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1004, allocations: 0 / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.1004, allocations: 3.938 kB / 464.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.1004, allocations: 0 / 464.8 MB, free: 15.86 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.0007697/0.1012, allocations: 0.6238 MB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1012, allocations: 8.031 kB / 465.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.558e-05/0.1013, allocations: 58.73 kB / 465.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006716/0.102, allocations: 92.47 kB / 465.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004285/0.1024, allocations: 367.7 kB / 466 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.1024, allocations: 16.73 kB / 466 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.1025, allocations: 23.94 kB / 466 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005662/0.103, allocations: 356.6 kB / 466.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1031, allocations: 7.938 kB / 466.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.1031, allocations: 8 kB / 466.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.317e-05/0.1031, allocations: 16.36 kB / 466.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005825/0.1037, allocations: 392.7 kB / 466.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.1055, allocations: 1.539 MB / 468.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005631/0.106, allocations: 317.1 kB / 468.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001665/0.1062, allocations: 105.7 kB / 468.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.429e-05/0.1063, allocations: 12.06 kB / 468.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000283/0.1065, allocations: 200.5 kB / 468.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1066, allocations: 0 / 468.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006949/0.1073, allocations: 387.2 kB / 469.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.1073, allocations: 136.8 kB / 469.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002966/0.1076, allocations: 291 kB / 469.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.1077, allocations: 33.7 kB / 469.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.1078, allocations: 176.2 kB / 469.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.307e-05/0.1079, allocations: 86.86 kB / 470 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.415e-05/0.108, allocations: 57.98 kB / 470.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1081, allocations: 342.8 kB / 470.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.1083, allocations: 96.52 kB / 470.5 MB, free: 9.824 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.1085, allocations: 183.2 kB / 470.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003931/0.1089, allocations: 303.9 kB / 471 MB, free: 9.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1089, allocations: 0 / 471 MB, free: 9.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005225/0.1094, allocations: 356.9 kB / 471.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.1095, allocations: 8 kB / 471.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.1095, allocations: 4 kB / 471.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.1095, allocations: 12.25 kB / 471.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.1098, allocations: 59.91 kB / 471.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.1098, allocations: 7.938 kB / 471.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.1099, allocations: 27.69 kB / 471.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.1e-05/0.1099, allocations: 19.98 kB / 471.4 MB, free: 8.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.0001612/0.1101, allocations: 177.7 kB / 471.6 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.966e-05/0.1102, allocations: 23.72 kB / 471.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005366/0.1107, allocations: 319.6 kB / 472 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.1107, allocations: 4 kB / 472 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1107, allocations: 3.938 kB / 472 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.1107, allocations: 7.984 kB / 472 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009087/0.1117, allocations: 0.7464 MB / 472.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1117, allocations: 0 / 472.7 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.1118, allocations: 43.92 kB / 472.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1118, allocations: 3.938 kB / 472.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.1119, allocations: 12 kB / 472.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.1119, allocations: 7.984 kB / 472.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1119, allocations: 4 kB / 472.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004787/0.1124, allocations: 409.6 kB / 473.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.2e-05/0.1125, allocations: 116.6 kB / 473.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.992e-05/0.1125, allocations: 12 kB / 473.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.1126, allocations: 4 kB / 473.3 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.1127, allocations: 23.97 kB / 473.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.1127, allocations: 11.94 kB / 473.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001919/0.1129, allocations: 213.9 kB / 473.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1129, allocations: 0 / 473.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.1133, allocations: 79.83 kB / 473.6 MB, free: 6.484 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.001636/0.1149, allocations: 1.295 MB / 474.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000414/0.1154, allocations: 255.7 kB / 475.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1154, allocations: 0 / 475.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.1156, allocations: 119.7 kB / 475.3 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000423/0.116, allocations: 60.11 kB / 475.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003325/0.1193, allocations: 3.165 MB / 478.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003038/0.1196, allocations: 0.7875 MB / 479.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001874/0.1198, allocations: 78.91 kB / 479.4 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.12, allocations: 107.4 kB / 479.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.12, allocations: 0 / 479.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.1444, allocations: 6.566 MB / 486.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/0.1446, allocations: 250.8 kB / 486.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.734/1.879, allocations: 0 / 486.3 MB, free: 9.918 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)