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.001266/0.001266, allocations: 110.5 kB / 17.75 MB, free: 5.301 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.00123/0.00123, allocations: 187 kB / 18.68 MB, free: 4.375 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.298/1.298, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1757/0.1757, allocations: 38.03 MB / 330.6 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 55.91 kB / 458.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2792, allocations: 58.06 MB / 0.5048 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005746/0.2849, allocations: 5.617 MB / 0.5103 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003135/0.2881, allocations: 2.606 MB / 0.5128 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003486/0.2885, allocations: 27.72 kB / 0.5128 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009716/0.2894, allocations: 363.6 kB / 0.5132 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008582/0.2903, allocations: 477.8 kB / 0.5136 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008603/0.2912, allocations: 451.4 kB / 0.5141 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009684/0.2922, allocations: 1.077 MB / 0.5151 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006626/0.2928, allocations: 0.5619 MB / 0.5157 GB, free: 368 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004617/0.2933, allocations: 417 kB / 0.5161 GB, free: 164 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005015/0.2938, allocations: 422.6 kB / 0.5165 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.2939, allocations: 77.22 kB / 0.5165 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008344/0.2948, allocations: 0.5052 MB / 0.517 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002477/0.295, allocations: 236.3 kB / 0.5173 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003631/0.2954, allocations: 369.3 kB / 0.5176 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001454/0.2969, allocations: 1.086 MB / 0.5187 GB, free: 14.97 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2969, allocations: 0 / 0.5187 GB, free: 14.97 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2969, allocations: 1.156 kB / 0.5187 GB, free: 14.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.2969, allocations: 0.625 kB / 0.5187 GB, free: 14.97 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.002112/0.299, allocations: 1.132 MB / 0.5198 GB, free: 14.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.2991, allocations: 13.7 kB / 0.5198 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.3003, allocations: 186.7 kB / 0.52 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008963/0.3012, allocations: 0.5592 MB / 0.5205 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.3012, allocations: 40.75 kB / 0.5206 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.3013, allocations: 63.62 kB / 0.5206 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.3027, allocations: 0.7864 MB / 0.5214 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.3027, allocations: 9.453 kB / 0.5214 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.187e-05/0.3028, allocations: 22.5 kB / 0.5214 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.361e-05/0.3028, allocations: 40.69 kB / 0.5215 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.3043, allocations: 0.7306 MB / 0.5222 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004087/0.3084, allocations: 2.894 MB / 0.525 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001339/0.3098, allocations: 0.5829 MB / 0.5256 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006792/0.3105, allocations: 354.4 kB / 0.5259 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.395e-05/0.3106, allocations: 11.12 kB / 0.5259 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007906/0.3114, allocations: 423.8 kB / 0.5263 GB, free: 10.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=56): time 2.806e-06/0.3114, allocations: 1.312 kB / 0.5263 GB, free: 10.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=58): time 0.00432/0.3157, allocations: 2.139 MB / 0.5284 GB, free: 9.488 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.3158, allocations: 110.8 kB / 0.5285 GB, free: 9.363 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007122/0.3165, allocations: 482.5 kB / 0.529 GB, free: 9.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.569e-05/0.3166, allocations: 41.14 kB / 0.529 GB, free: 9.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.3168, allocations: 318.9 kB / 0.5293 GB, free: 8.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.317, allocations: 208.1 kB / 0.5295 GB, free: 8.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.3172, allocations: 107.9 kB / 0.5296 GB, free: 8.625 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3174, allocations: 368.5 kB / 0.53 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006395/0.3181, allocations: 290.8 kB / 0.5302 GB, free: 8.184 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000655/0.3187, allocations: 401.9 kB / 0.5306 GB, free: 7.961 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.3201, allocations: 0.7335 MB / 0.5313 GB, free: 7.562 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3201, allocations: 1.781 kB / 0.5313 GB, free: 7.562 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00224/0.3223, allocations: 1.015 MB / 0.5323 GB, free: 7.035 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.042e-05/0.3224, allocations: 36.83 kB / 0.5324 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.3224, allocations: 7.844 kB / 0.5324 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006436/0.3231, allocations: 183.3 kB / 0.5326 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/0.3236, allocations: 113.6 kB / 0.5327 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004417/0.328, allocations: 4.134 MB / 0.5367 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005463/0.3286, allocations: 57 kB / 0.5368 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.237e-05/0.3286, allocations: 25.33 kB / 0.5368 GB, free: 3.102 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007699/0.3294, allocations: 447.9 kB / 0.5372 GB, free: 2.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006182/0.33, allocations: 391.4 kB / 0.5376 GB, free: 2.559 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001187/0.3312, allocations: 0.6979 MB / 0.5383 GB, free: 2.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.486e-06/0.3313, allocations: 1.094 kB / 0.5383 GB, free: 2.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001861/0.3331, allocations: 0.9326 MB / 0.5392 GB, free: 1.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.3332, allocations: 33.08 kB / 0.5392 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3332, allocations: 3.344 kB / 0.5392 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005094/0.3337, allocations: 170 kB / 0.5394 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000487/0.3342, allocations: 118 kB / 0.5395 GB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003606/0.3378, allocations: 3.951 MB / 0.5433 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005353/0.3384, allocations: 54.84 kB / 0.5434 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-05/0.3384, allocations: 28.95 kB / 0.5434 GB, free: 13.74 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.0002099/0.3386, allocations: 219.6 kB / 0.5436 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.659e-05/0.3387, allocations: 63.44 kB / 0.5437 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001732/0.3405, allocations: 0.8188 MB / 0.5445 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.3405, allocations: 0 / 0.5445 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3405, allocations: 4.812 kB / 0.5445 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002565/0.3408, allocations: 194.6 kB / 0.5447 GB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.172e-05/0.3409, allocations: 19.34 kB / 0.5447 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004531/0.3413, allocations: 54.33 kB / 0.5447 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.3415, allocations: 47.47 kB / 0.5448 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002095/0.3436, allocations: 0.9928 MB / 0.5458 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00211/0.3457, allocations: 1.341 MB / 0.5471 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000614/0.3463, allocations: 340.7 kB / 0.5474 GB, free: 11.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005172/0.3469, allocations: 340.8 kB / 0.5477 GB, free: 10.98 MB / 414.1 MB Notification: Performance of Backend: time 5.21e-07/0.3469, allocations: 5.125 kB / 0.5477 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003581/0.3505, allocations: 1.777 MB / 0.5495 GB, free: 9.488 MB / 414.1 MB Notification: Performance of SimCode: time 0.002447/0.3529, allocations: 1.818 MB / 0.5512 GB, free: 7.617 MB / 414.1 MB Notification: Performance of Templates: time 0.02222/0.3752, allocations: 14.4 MB / 0.5653 GB, free: 9.266 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)