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.001535/0.001535, allocations: 111.7 kB / 17.06 MB, free: 5.973 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.001303/0.001303, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.134/2.134, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3759/0.3759, allocations: 38.02 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 59.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6883/0.6902, allocations: 58.07 MB / 0.5036 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.008541/0.6988, allocations: 3.6 MB / 0.5071 GB, free: 4.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004354/0.7032, allocations: 1.807 MB / 0.5089 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003488/0.7036, allocations: 9.156 kB / 0.5089 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.7052, allocations: 229.8 kB / 0.5091 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001447/0.7066, allocations: 265.6 kB / 0.5094 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.7082, allocations: 216.8 kB / 0.5096 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001345/0.7095, allocations: 434.9 kB / 0.51 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008456/0.7104, allocations: 186.6 kB / 0.5102 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001276/0.7117, allocations: 198 kB / 0.5104 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000531/0.7122, allocations: 176.4 kB / 0.5105 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.718e-05/0.7123, allocations: 26.56 kB / 0.5106 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001377/0.7137, allocations: 320.5 kB / 0.5109 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003037/0.7141, allocations: 117.3 kB / 0.511 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003249/0.7144, allocations: 158.4 kB / 0.5111 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001768/0.7162, allocations: 0.5121 MB / 0.5116 GB, free: 2.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.495e-05/0.7162, allocations: 1.094 kB / 0.5116 GB, free: 2.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.7162, allocations: 0 / 0.5116 GB, free: 2.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.7162, allocations: 0.5156 kB / 0.5116 GB, free: 2.41 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.001594/0.7178, allocations: 0.6356 MB / 0.5122 GB, free: 1.863 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.944e-05/0.7179, allocations: 12.89 kB / 0.5123 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001116/0.7181, allocations: 59.94 kB / 0.5123 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001332/0.7194, allocations: 91.27 kB / 0.5124 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007809/0.7202, allocations: 377.7 kB / 0.5128 GB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.7202, allocations: 16.94 kB / 0.5128 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.627e-05/0.7203, allocations: 20.66 kB / 0.5128 GB, free: 1.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009058/0.7212, allocations: 360.2 kB / 0.5131 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.7213, allocations: 5.812 kB / 0.5131 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.977e-05/0.7213, allocations: 6.219 kB / 0.5132 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.108e-05/0.7214, allocations: 15.12 kB / 0.5132 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.7224, allocations: 387.9 kB / 0.5135 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002964/0.7254, allocations: 1.549 MB / 0.5151 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.7265, allocations: 315.5 kB / 0.5154 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003497/0.7269, allocations: 105.1 kB / 0.5155 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.369e-05/0.727, allocations: 9.75 kB / 0.5155 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006661/0.7277, allocations: 200.5 kB / 0.5157 GB, free: 15.63 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 3.537e-06/0.7277, allocations: 0 / 0.5157 GB, free: 15.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001359/0.7291, allocations: 385.9 kB / 0.516 GB, free: 15.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.7292, allocations: 135.5 kB / 0.5162 GB, free: 15.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006648/0.7299, allocations: 299.2 kB / 0.5164 GB, free: 15.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.925e-05/0.73, allocations: 33.59 kB / 0.5165 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/0.7302, allocations: 178.4 kB / 0.5166 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.7304, allocations: 89.02 kB / 0.5167 GB, free: 14.9 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/0.7306, allocations: 61.34 kB / 0.5168 GB, free: 14.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002322/0.7309, allocations: 341.4 kB / 0.5171 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.7312, allocations: 92.11 kB / 0.5172 GB, free: 14.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004484/0.7317, allocations: 190.4 kB / 0.5174 GB, free: 14.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000874/0.7326, allocations: 299.2 kB / 0.5177 GB, free: 14.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.7326, allocations: 4.5 kB / 0.5177 GB, free: 14.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001118/0.7337, allocations: 353.7 kB / 0.518 GB, free: 14.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.996e-05/0.7338, allocations: 5.656 kB / 0.518 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.7338, allocations: 3.422 kB / 0.518 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.7338, allocations: 4.219 kB / 0.518 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004218/0.7343, allocations: 65.55 kB / 0.5181 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/0.7343, allocations: 12.8 kB / 0.5181 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002628/0.7346, allocations: 28.95 kB / 0.5181 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.285e-05/0.7346, allocations: 14.56 kB / 0.5181 GB, free: 13.97 MB / 398.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.0003383/0.735, allocations: 176.7 kB / 0.5183 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.222e-05/0.7351, allocations: 31.42 kB / 0.5183 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.7361, allocations: 321.7 kB / 0.5186 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.7361, allocations: 3.312 kB / 0.5186 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.806e-05/0.7361, allocations: 5.125 kB / 0.5186 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.7362, allocations: 10.25 kB / 0.5187 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.7382, allocations: 0.7447 MB / 0.5194 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.7382, allocations: 5 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.7385, allocations: 43.11 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.51e-05/0.7385, allocations: 6.031 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-05/0.7385, allocations: 10.47 kB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/0.7386, allocations: 1.5 kB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.7386, allocations: 1.281 kB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.7397, allocations: 417.5 kB / 0.5198 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.7398, allocations: 110.2 kB / 0.5199 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.487e-05/0.7399, allocations: 17.17 kB / 0.52 GB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.7402, allocations: 8.906 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.7403, allocations: 15.09 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-05/0.7403, allocations: 13.22 kB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004732/0.7408, allocations: 214.1 kB / 0.5202 GB, free: 12.67 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7408, allocations: 0 / 0.5202 GB, free: 12.67 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008153/0.7417, allocations: 79.91 kB / 0.5203 GB, free: 12.65 MB / 398.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.003593/0.7453, allocations: 1.294 MB / 0.5215 GB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.7464, allocations: 256.5 kB / 0.5218 GB, free: 11.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.7464, allocations: 0 / 0.5218 GB, free: 11.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004063/0.7468, allocations: 123 kB / 0.5219 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009198/0.7477, allocations: 55.27 kB / 0.522 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007545/0.7553, allocations: 3.069 MB / 0.525 GB, free: 9.562 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006829/0.756, allocations: 0.7905 MB / 0.5257 GB, free: 8.852 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004256/0.7565, allocations: 84.11 kB / 0.5258 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002894/0.7568, allocations: 108.1 kB / 0.5259 GB, free: 8.773 MB / 398.1 MB Notification: Performance of SimCode: time 2.415e-06/0.7568, allocations: 4 kB / 0.5259 GB, free: 8.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04986/0.8067, allocations: 6.915 MB / 0.5327 GB, free: 6.523 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.91/14.71, allocations: 11.95 kB / 0.5327 GB, free: 6.516 MB / 398.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)