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.001089/0.001089, allocations: 110.9 kB / 17.74 MB, free: 5.328 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.001154/0.001154, allocations: 190.6 kB / 18.68 MB, free: 4.398 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.307/1.307, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.175/0.175, allocations: 38.03 MB / 330.6 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 67.89 kB / 458.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.296, allocations: 58.06 MB / 0.5048 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.006262/0.3023, allocations: 5.133 MB / 0.5098 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003276/0.3056, allocations: 2.142 MB / 0.5119 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006837/0.3063, allocations: 19.78 kB / 0.5119 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009281/0.3072, allocations: 261 kB / 0.5121 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008798/0.3081, allocations: 343.1 kB / 0.5125 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009352/0.3091, allocations: 394.6 kB / 0.5128 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009015/0.31, allocations: 0.9143 MB / 0.5137 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006365/0.3106, allocations: 0.5061 MB / 0.5142 GB, free: 1.414 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004418/0.3111, allocations: 366.6 kB / 0.5146 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004039/0.3115, allocations: 348.2 kB / 0.5149 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.3116, allocations: 68.06 kB / 0.515 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005747/0.3122, allocations: 347.5 kB / 0.5153 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.3124, allocations: 194.8 kB / 0.5155 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002657/0.3127, allocations: 327.1 kB / 0.5158 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.3137, allocations: 0.9381 MB / 0.5167 GB, free: 220 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3137, allocations: 1.25 kB / 0.5167 GB, free: 220 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3137, allocations: 0.6094 kB / 0.5167 GB, free: 220 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.3138, allocations: 0 / 0.5167 GB, free: 220 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.001956/0.3157, allocations: 1.046 MB / 0.5177 GB, free: 15.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3158, allocations: 12.33 kB / 0.5178 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009153/0.3167, allocations: 145.2 kB / 0.5179 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009334/0.3176, allocations: 0.5374 MB / 0.5184 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.871e-05/0.3177, allocations: 45.64 kB / 0.5185 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.3178, allocations: 50.78 kB / 0.5185 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.3192, allocations: 0.6753 MB / 0.5192 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.3192, allocations: 0.9688 kB / 0.5192 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.168e-05/0.3193, allocations: 26.47 kB / 0.5192 GB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.247e-05/0.3194, allocations: 32.41 kB / 0.5192 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.3207, allocations: 0.6027 MB / 0.5198 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003616/0.3243, allocations: 2.675 MB / 0.5224 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.3257, allocations: 0.6182 MB / 0.523 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004688/0.3261, allocations: 208.7 kB / 0.5232 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.021e-05/0.3262, allocations: 12.39 kB / 0.5232 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000621/0.3268, allocations: 301.3 kB / 0.5235 GB, free: 11.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.685e-06/0.3268, allocations: 0 / 0.5235 GB, free: 11.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001836/0.3287, allocations: 0.7564 MB / 0.5243 GB, free: 11.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.634e-05/0.3288, allocations: 142.7 kB / 0.5244 GB, free: 11.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006958/0.3295, allocations: 0.4902 MB / 0.5249 GB, free: 11.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.819e-05/0.3295, allocations: 36.45 kB / 0.5249 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.3298, allocations: 308 kB / 0.5252 GB, free: 10.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.3299, allocations: 148 kB / 0.5254 GB, free: 10.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.3301, allocations: 90.61 kB / 0.5254 GB, free: 10.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3302, allocations: 370.2 kB / 0.5258 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004793/0.3307, allocations: 190.8 kB / 0.526 GB, free: 10.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005613/0.3313, allocations: 315.7 kB / 0.5263 GB, free: 10.17 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.3323, allocations: 0.5165 MB / 0.5268 GB, free: 9.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3323, allocations: 4 kB / 0.5268 GB, free: 9.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001746/0.3341, allocations: 0.7717 MB / 0.5275 GB, free: 9.535 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/0.3341, allocations: 35.19 kB / 0.5276 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3341, allocations: 3.688 kB / 0.5276 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004829/0.3346, allocations: 146.2 kB / 0.5277 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.335, allocations: 86.91 kB / 0.5278 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003351/0.3384, allocations: 2.651 MB / 0.5304 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000525/0.3389, allocations: 79.06 kB / 0.5305 GB, free: 7.332 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.643e-05/0.339, allocations: 24.25 kB / 0.5305 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006372/0.3396, allocations: 332.4 kB / 0.5308 GB, free: 7.148 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005029/0.3401, allocations: 302 kB / 0.5311 GB, free: 6.945 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009366/0.3411, allocations: 0.4964 MB / 0.5316 GB, free: 6.633 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.575e-06/0.3411, allocations: 5.344 kB / 0.5316 GB, free: 6.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001437/0.3425, allocations: 0.6883 MB / 0.5323 GB, free: 6.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.3426, allocations: 34.47 kB / 0.5323 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3426, allocations: 7.562 kB / 0.5323 GB, free: 6.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003519/0.343, allocations: 123 kB / 0.5324 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.3433, allocations: 91.72 kB / 0.5325 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002536/0.3459, allocations: 2.466 MB / 0.5349 GB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004959/0.3464, allocations: 61.8 kB / 0.535 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.3464, allocations: 18.59 kB / 0.535 GB, free: 4.141 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.0002043/0.3466, allocations: 209.7 kB / 0.5352 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.866e-05/0.3467, allocations: 61.5 kB / 0.5352 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.3479, allocations: 0.5081 MB / 0.5357 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.348, allocations: 9.016 kB / 0.5357 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.348, allocations: 1.125 kB / 0.5357 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.3482, allocations: 175.2 kB / 0.5359 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3483, allocations: 15.84 kB / 0.5359 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003723/0.3487, allocations: 41.03 kB / 0.536 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.3488, allocations: 35.98 kB / 0.536 GB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001538/0.3503, allocations: 0.7737 MB / 0.5368 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001611/0.352, allocations: 1.069 MB / 0.5378 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00049/0.3525, allocations: 215 kB / 0.538 GB, free: 2.016 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005273/0.353, allocations: 361.3 kB / 0.5383 GB, free: 1.801 MB / 398.1 MB Notification: Performance of Backend: time 3.51e-07/0.353, allocations: 0 / 0.5383 GB, free: 1.801 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.3557, allocations: 1.199 MB / 0.5395 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of SimCode: time 0.002197/0.3579, allocations: 1.665 MB / 0.5411 GB, free: 15.7 MB / 414.1 MB Notification: Performance of Templates: time 0.02021/0.3781, allocations: 11.18 MB / 0.5521 GB, free: 7.137 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)