Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 106.5 kB / 17.06 MB, free: 6.121 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.001176/0.001176, allocations: 194.9 kB / 18 MB, free: 5.199 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1793/0.1793, allocations: 38.04 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 67.89 kB / 458.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3854/0.3867, allocations: 58.06 MB / 0.5041 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006327/0.3931, allocations: 5.14 MB / 0.5091 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003052/0.3962, allocations: 2.131 MB / 0.5112 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00036/0.3966, allocations: 22.72 kB / 0.5112 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009555/0.3975, allocations: 257.3 kB / 0.5115 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007501/0.3983, allocations: 343.3 kB / 0.5118 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007722/0.3991, allocations: 400.1 kB / 0.5122 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009046/0.4, allocations: 0.9107 MB / 0.5131 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006676/0.4006, allocations: 0.5174 MB / 0.5136 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004693/0.4011, allocations: 357.7 kB / 0.5139 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004659/0.4016, allocations: 354.5 kB / 0.5142 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.4017, allocations: 67.97 kB / 0.5143 GB, free: 0.957 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005541/0.4023, allocations: 347 kB / 0.5146 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.4025, allocations: 186.3 kB / 0.5148 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002745/0.4028, allocations: 331.8 kB / 0.5151 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.4038, allocations: 0.9292 MB / 0.516 GB, free: 132 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.4039, allocations: 0 / 0.516 GB, free: 132 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4039, allocations: 0 / 0.516 GB, free: 132 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.4039, allocations: 5.219 kB / 0.516 GB, free: 128 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002056/0.4059, allocations: 1.031 MB / 0.517 GB, free: 15.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.406, allocations: 12.02 kB / 0.5171 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009027/0.4069, allocations: 144.4 kB / 0.5172 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009601/0.4079, allocations: 0.5231 MB / 0.5177 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/0.4079, allocations: 37.5 kB / 0.5177 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.408, allocations: 54.27 kB / 0.5178 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.4095, allocations: 0.6875 MB / 0.5185 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.4096, allocations: 1.312 kB / 0.5185 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.787e-05/0.4096, allocations: 20.89 kB / 0.5185 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.106e-05/0.4097, allocations: 25.72 kB / 0.5185 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.411, allocations: 0.5975 MB / 0.5191 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003455/0.4145, allocations: 2.687 MB / 0.5217 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.4158, allocations: 0.6174 MB / 0.5223 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004886/0.4163, allocations: 211.9 kB / 0.5225 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.4164, allocations: 8.812 kB / 0.5225 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006303/0.417, allocations: 305.3 kB / 0.5228 GB, free: 11.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 1.814e-06/0.417, allocations: 0 / 0.5228 GB, free: 11.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001799/0.4188, allocations: 0.7526 MB / 0.5236 GB, free: 11.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.429e-05/0.4189, allocations: 138.7 kB / 0.5237 GB, free: 11.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006887/0.4196, allocations: 0.494 MB / 0.5242 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.4197, allocations: 32.45 kB / 0.5242 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.4199, allocations: 304 kB / 0.5245 GB, free: 10.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.4201, allocations: 139.7 kB / 0.5246 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.4203, allocations: 89.8 kB / 0.5247 GB, free: 10.74 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.4205, allocations: 365.6 kB / 0.5251 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005689/0.4211, allocations: 198.7 kB / 0.5253 GB, free: 10.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006486/0.4217, allocations: 308.4 kB / 0.5255 GB, free: 10.13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.4229, allocations: 0.5245 MB / 0.5261 GB, free: 9.812 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.4229, allocations: 0 / 0.5261 GB, free: 9.812 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002103/0.425, allocations: 0.7683 MB / 0.5268 GB, free: 9.496 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.608e-05/0.4251, allocations: 33.91 kB / 0.5268 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.4251, allocations: 3.969 kB / 0.5268 GB, free: 9.465 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005235/0.4256, allocations: 145.9 kB / 0.527 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003782/0.426, allocations: 95.42 kB / 0.5271 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00349/0.4295, allocations: 2.643 MB / 0.5297 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005744/0.4301, allocations: 83.48 kB / 0.5297 GB, free: 7.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.4302, allocations: 20.05 kB / 0.5298 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006903/0.4308, allocations: 331.7 kB / 0.5301 GB, free: 7.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005205/0.4314, allocations: 299 kB / 0.5304 GB, free: 6.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009729/0.4324, allocations: 0.5013 MB / 0.5308 GB, free: 6.594 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.737e-06/0.4324, allocations: 5.188 kB / 0.5309 GB, free: 6.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001473/0.4339, allocations: 0.6787 MB / 0.5315 GB, free: 6.289 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.4339, allocations: 43.7 kB / 0.5316 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.4339, allocations: 3.531 kB / 0.5316 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003867/0.4343, allocations: 125.2 kB / 0.5317 GB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003767/0.4347, allocations: 88 kB / 0.5318 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002592/0.4373, allocations: 2.457 MB / 0.5342 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005255/0.4378, allocations: 60.73 kB / 0.5342 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.161e-05/0.4379, allocations: 19.56 kB / 0.5342 GB, free: 4.137 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.000219/0.4381, allocations: 213.5 kB / 0.5344 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.99e-05/0.4382, allocations: 56.91 kB / 0.5345 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/0.4395, allocations: 0.5134 MB / 0.535 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.4395, allocations: 3.656 kB / 0.535 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4395, allocations: 1.5 kB / 0.535 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4395, allocations: 9.312 kB / 0.535 GB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002165/0.4417, allocations: 1.159 MB / 0.5361 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.4417, allocations: 5.281 kB / 0.5361 GB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000485/0.4422, allocations: 91.55 kB / 0.5362 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.4423, allocations: 34.72 kB / 0.5363 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.587e-05/0.4424, allocations: 7.844 kB / 0.5363 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001082/0.4435, allocations: 1.452 MB / 0.5377 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.4435, allocations: 3.938 kB / 0.5377 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.4452, allocations: 0.8403 MB / 0.5385 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/0.4455, allocations: 179.6 kB / 0.5387 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.531e-05/0.4456, allocations: 15.84 kB / 0.5387 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004123/0.446, allocations: 44.83 kB / 0.5387 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.4461, allocations: 35.23 kB / 0.5388 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.4461, allocations: 9.719 kB / 0.5388 GB, free: 472 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006045/0.4468, allocations: 359.8 kB / 0.5391 GB, free: 252 kB / 398.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4468, allocations: 1.156 kB / 0.5391 GB, free: 252 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.001174/0.448, allocations: 255.5 kB / 0.5394 GB, free: 188 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001763/0.4481, allocations: 104.3 kB / 0.5395 GB, free: 92 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002272/0.4504, allocations: 1.137 MB / 0.5406 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.4504, allocations: 4.375 kB / 0.5406 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006342/0.4511, allocations: 341.6 kB / 0.5409 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007221/0.4518, allocations: 119.2 kB / 0.541 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.4541, allocations: 1.226 MB / 0.5422 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005198/0.4546, allocations: 0.9 MB / 0.5431 GB, free: 13.44 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003632/0.455, allocations: 108.7 kB / 0.5432 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.4551, allocations: 41.45 kB / 0.5433 GB, free: 13.37 MB / 414.1 MB Notification: Performance of SimCode: time 5.62e-07/0.4552, allocations: 0 / 0.5433 GB, free: 13.37 MB / 414.1 MB Notification: Performance of Templates: time 0.01563/0.4708, allocations: 8.33 MB / 0.5514 GB, free: 6.91 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)