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.002231/0.002231, allocations: 112.2 kB / 17.29 MB, free: 6.207 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.003399/0.003399, allocations: 197.3 kB / 18.21 MB, free: 5.281 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.79/2.79, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.7058/0.7058, allocations: 38.02 MB / 330.1 MB, free: 8.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002714/0.002715, allocations: 62.73 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3873, allocations: 58.06 MB / 457 MB, free: 8.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.03133/0.4187, allocations: 5.551 MB / 462.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007148/0.4259, allocations: 2.237 MB / 464.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.4276, allocations: 39.75 kB / 464.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0188/0.4464, allocations: 222.9 kB / 465 MB, free: 348 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001917/0.4484, allocations: 302.7 kB / 465.3 MB, free: 44 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001665/0.4501, allocations: 366.8 kB / 465.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001833/0.4519, allocations: 0.9086 MB / 466.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001427/0.4533, allocations: 0.5278 MB / 467.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008502/0.4542, allocations: 346.6 kB / 467.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007317/0.455, allocations: 366.4 kB / 467.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.4551, allocations: 68 kB / 467.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009489/0.4561, allocations: 351.2 kB / 468.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002864/0.4564, allocations: 179.5 kB / 468.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005101/0.4569, allocations: 334.2 kB / 468.7 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00152/0.4585, allocations: 0.725 MB / 469.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.4585, allocations: 0 / 469.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.348e-06/0.4585, allocations: 0 / 469.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.4585, allocations: 0 / 469.5 MB, free: 11.89 MB / 350.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.003648/0.4622, allocations: 1.034 MB / 470.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.675e-05/0.4623, allocations: 11.89 kB / 470.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001374/0.4637, allocations: 144 kB / 470.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.4652, allocations: 0.5092 MB / 471.2 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.333e-05/0.4653, allocations: 41.36 kB / 471.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001784/0.4655, allocations: 52.31 kB / 471.2 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002508/0.468, allocations: 0.671 MB / 471.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.178e-05/0.4681, allocations: 8 kB / 471.9 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/0.4682, allocations: 19.98 kB / 471.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.625e-05/0.4683, allocations: 28.98 kB / 472 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002248/0.4706, allocations: 0.6049 MB / 472.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00786/0.4785, allocations: 2.688 MB / 475.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002155/0.4807, allocations: 0.6063 MB / 475.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009266/0.4816, allocations: 218.3 kB / 476.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.533e-05/0.4817, allocations: 4.328 kB / 476.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00119/0.4829, allocations: 305.7 kB / 476.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 7.404e-06/0.483, allocations: 0 / 476.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.003176/0.4862, allocations: 0.7447 MB / 477.1 MB, free: 3.859 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.4863, allocations: 140.5 kB / 477.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/0.4876, allocations: 0.4942 MB / 477.8 MB, free: 3.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.4878, allocations: 33.7 kB / 477.8 MB, free: 3.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005366/0.4883, allocations: 300 kB / 478.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002609/0.4886, allocations: 142 kB / 478.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004238/0.489, allocations: 90.16 kB / 478.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002776/0.4893, allocations: 366.8 kB / 478.7 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008661/0.4902, allocations: 195 kB / 478.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000793/0.491, allocations: 311.2 kB / 479.2 MB, free: 1.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/0.4925, allocations: 0.5294 MB / 479.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.4925, allocations: 0 / 479.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.003624/0.4962, allocations: 0.7724 MB / 480.5 MB, free: 336 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.836e-05/0.4963, allocations: 33.7 kB / 480.5 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.202e-05/0.4963, allocations: 0 / 480.5 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007066/0.5034, allocations: 140.8 kB / 480.6 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009261/0.5044, allocations: 91.91 kB / 480.7 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006521/0.5109, allocations: 2.65 MB / 483.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.512, allocations: 83.44 kB / 483.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000149/0.5122, allocations: 20 kB / 483.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001217/0.5134, allocations: 337.1 kB / 483.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001024/0.5145, allocations: 295.2 kB / 484.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001467/0.516, allocations: 0.4986 MB / 484.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.029e-05/0.516, allocations: 4 kB / 484.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002488/0.5185, allocations: 0.6903 MB / 485.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.334e-05/0.5186, allocations: 33.7 kB / 485.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.5186, allocations: 4 kB / 485.3 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006068/0.5193, allocations: 128.9 kB / 485.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006212/0.5199, allocations: 92.06 kB / 485.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004789/0.5247, allocations: 2.446 MB / 488 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.5257, allocations: 67.64 kB / 488.1 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.5259, allocations: 23.98 kB / 488.1 MB, free: 8.305 MB / 366.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.0004686/0.5264, allocations: 208.1 kB / 488.3 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002559/0.5266, allocations: 55.34 kB / 488.3 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002387/0.529, allocations: 0.5197 MB / 488.9 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.5291, allocations: 4 kB / 488.9 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.5291, allocations: 0 / 488.9 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.712e-05/0.5291, allocations: 3.984 kB / 488.9 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004181/0.5333, allocations: 1.178 MB / 490 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/0.5333, allocations: 3.938 kB / 490 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009685/0.5343, allocations: 95.81 kB / 490.1 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002275/0.5346, allocations: 32.77 kB / 490.2 MB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.999e-05/0.5347, allocations: 12 kB / 490.2 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002211/0.5369, allocations: 1.446 MB / 491.6 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.5369, allocations: 3.938 kB / 491.6 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003345/0.5403, allocations: 0.841 MB / 492.5 MB, free: 3.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005091/0.5408, allocations: 172.3 kB / 492.6 MB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002038/0.5411, allocations: 11.94 kB / 492.7 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007813/0.5419, allocations: 43.89 kB / 492.7 MB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.5421, allocations: 31.95 kB / 492.7 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-05/0.5421, allocations: 15.98 kB / 492.7 MB, free: 3.371 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00102/0.5432, allocations: 362.8 kB / 493.1 MB, free: 3.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5432, allocations: 0 / 493.1 MB, free: 3.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0019/0.5451, allocations: 247.3 kB / 493.3 MB, free: 2.777 MB / 366.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.0002739/0.5454, allocations: 113.4 kB / 493.5 MB, free: 2.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.009776/0.5552, allocations: 1.173 MB / 494.6 MB, free: 1.438 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.299e-05/0.5553, allocations: 0 / 494.6 MB, free: 1.438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.5564, allocations: 346.4 kB / 495 MB, free: 1.086 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/0.5582, allocations: 132.4 kB / 495.1 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005445/0.5637, allocations: 1.484 MB / 496.6 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.5649, allocations: 0.8981 MB / 497.5 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003357/0.5652, allocations: 39.44 kB / 497.5 MB, free: 14.47 MB / 382.1 MB Notification: Performance of SimCode: time 1.964e-06/0.5653, allocations: 0 / 497.5 MB, free: 14.47 MB / 382.1 MB Notification: Performance of Templates: time 0.03578/0.601, allocations: 9.567 MB / 0.4952 GB, free: 4.914 MB / 382.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)