Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 108.7 kB / 17.75 MB, free: 5.223 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.001743/0.001743, allocations: 190.4 kB / 18.67 MB, free: 4.305 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.337/1.337, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.182/0.182, allocations: 38.04 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 59.91 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3133, allocations: 58.06 MB / 0.5048 GB, free: 7.652 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005701/0.319, allocations: 5.616 MB / 0.5103 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003176/0.3222, allocations: 2.607 MB / 0.5128 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003717/0.3226, allocations: 20.06 kB / 0.5128 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00105/0.3236, allocations: 367.1 kB / 0.5132 GB, free: 1.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009266/0.3246, allocations: 473.9 kB / 0.5136 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009731/0.3256, allocations: 455.8 kB / 0.5141 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.3266, allocations: 1.068 MB / 0.5151 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006864/0.3273, allocations: 0.5685 MB / 0.5157 GB, free: 324 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004895/0.3278, allocations: 418.5 kB / 0.5161 GB, free: 120 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005191/0.3284, allocations: 420.8 kB / 0.5165 GB, free: 15.92 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001005/0.3285, allocations: 74.03 kB / 0.5165 GB, free: 15.92 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008568/0.3293, allocations: 0.5061 MB / 0.517 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.3296, allocations: 235.9 kB / 0.5172 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000357/0.3299, allocations: 377.3 kB / 0.5176 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001451/0.3314, allocations: 1.079 MB / 0.5187 GB, free: 14.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3314, allocations: 0.6875 kB / 0.5187 GB, free: 14.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.3314, allocations: 0 / 0.5187 GB, free: 14.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.3314, allocations: 4.594 kB / 0.5187 GB, free: 14.93 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002251/0.3337, allocations: 1.102 MB / 0.5197 GB, free: 14.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3337, allocations: 13.83 kB / 0.5198 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001211/0.335, allocations: 190 kB / 0.5199 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009112/0.3359, allocations: 0.557 MB / 0.5205 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.3359, allocations: 44.42 kB / 0.5205 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.3361, allocations: 66.67 kB / 0.5206 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.3375, allocations: 0.785 MB / 0.5214 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.3375, allocations: 3.047 kB / 0.5214 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.426e-05/0.3376, allocations: 25.52 kB / 0.5214 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-05/0.3376, allocations: 32.47 kB / 0.5214 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.3392, allocations: 0.7343 MB / 0.5221 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004124/0.3433, allocations: 2.888 MB / 0.5249 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.3447, allocations: 0.5813 MB / 0.5255 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000703/0.3454, allocations: 358.2 kB / 0.5259 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.152e-05/0.3455, allocations: 15.55 kB / 0.5259 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008184/0.3463, allocations: 421.3 kB / 0.5263 GB, free: 10.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.335e-06/0.3463, allocations: 0 / 0.5263 GB, free: 10.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.004397/0.3507, allocations: 2.118 MB / 0.5283 GB, free: 9.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.3508, allocations: 116.3 kB / 0.5285 GB, free: 9.371 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007022/0.3515, allocations: 481.1 kB / 0.5289 GB, free: 9.152 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.39e-05/0.3515, allocations: 41.45 kB / 0.529 GB, free: 9.109 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.3518, allocations: 309.5 kB / 0.5292 GB, free: 8.859 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.3519, allocations: 198 kB / 0.5294 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.3521, allocations: 109.4 kB / 0.5295 GB, free: 8.648 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3523, allocations: 371.5 kB / 0.5299 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006319/0.3529, allocations: 288.4 kB / 0.5302 GB, free: 8.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006891/0.3536, allocations: 400.3 kB / 0.5306 GB, free: 7.984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.3549, allocations: 0.7283 MB / 0.5313 GB, free: 7.594 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3549, allocations: 0 / 0.5313 GB, free: 7.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002202/0.3572, allocations: 1.013 MB / 0.5323 GB, free: 7.074 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.3572, allocations: 36.64 kB / 0.5323 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3572, allocations: 3.781 kB / 0.5323 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006287/0.3579, allocations: 190.9 kB / 0.5325 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000498/0.3584, allocations: 114.1 kB / 0.5326 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004456/0.3628, allocations: 4.134 MB / 0.5366 GB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005959/0.3634, allocations: 64.41 kB / 0.5367 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.588e-05/0.3635, allocations: 21.69 kB / 0.5367 GB, free: 3.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008348/0.3644, allocations: 443.9 kB / 0.5371 GB, free: 2.867 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000653/0.365, allocations: 394.8 kB / 0.5375 GB, free: 2.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001209/0.3662, allocations: 0.6984 MB / 0.5382 GB, free: 2.141 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.266e-06/0.3663, allocations: 1.125 kB / 0.5382 GB, free: 2.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001878/0.3681, allocations: 0.9293 MB / 0.5391 GB, free: 1.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.2e-05/0.3682, allocations: 36.09 kB / 0.5391 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3682, allocations: 3.75 kB / 0.5391 GB, free: 1.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005015/0.3687, allocations: 173.2 kB / 0.5393 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004971/0.3692, allocations: 121.9 kB / 0.5394 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/0.373, allocations: 3.938 MB / 0.5433 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006344/0.3736, allocations: 55.16 kB / 0.5433 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.977e-05/0.3737, allocations: 21.34 kB / 0.5433 GB, free: 13.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.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 (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003376/0.374, allocations: 224.6 kB / 0.5435 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.3742, allocations: 59.41 kB / 0.5436 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002062/0.3762, allocations: 0.8186 MB / 0.5444 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.3763, allocations: 3.984 kB / 0.5444 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3763, allocations: 1.219 kB / 0.5444 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000352/0.3766, allocations: 188.5 kB / 0.5446 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.161e-05/0.3767, allocations: 20.55 kB / 0.5446 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004768/0.3772, allocations: 51.03 kB / 0.5447 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.3774, allocations: 54.48 kB / 0.5447 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002063/0.3795, allocations: 0.985 MB / 0.5457 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00233/0.3818, allocations: 1.342 MB / 0.547 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000617/0.3824, allocations: 338.9 kB / 0.5473 GB, free: 11.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006672/0.3831, allocations: 342.9 kB / 0.5476 GB, free: 11.03 MB / 414.1 MB Notification: Performance of Backend: time 2.7e-07/0.3831, allocations: 0 / 0.5476 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004154/0.3873, allocations: 1.76 MB / 0.5493 GB, free: 9.637 MB / 414.1 MB Notification: Performance of SimCode: time 0.002714/0.39, allocations: 1.807 MB / 0.5511 GB, free: 7.777 MB / 414.1 MB Notification: Performance of Templates: time 0.02215/0.4122, allocations: 14.41 MB / 0.5652 GB, free: 9.422 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)