Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001639/0.001639, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.659/1.659, allocations: 194.3 MB / 203.1 MB, free: 9.254 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001862/0.001862, allocations: 117.5 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1693/0.1693, allocations: 37.92 MB / 330.9 MB, free: 7.309 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.576e-05/1.577e-05, allocations: 5.156 kB / 390.4 MB, free: 78.24 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08984/0.08987, allocations: 53.23 MB / 443.6 MB, free: 25.11 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3623/0.4522, allocations: 97.12 MB / 0.528 GB, free: 9.203 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.4525, allocations: 90.94 kB / 0.5281 GB, free: 9.188 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05744/0.51, allocations: 24.13 MB / 0.5517 GB, free: 7.695 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.51, allocations: 0 / 0.5517 GB, free: 7.695 MB / 363.1 MB Notification: Performance of Transformations before backend: time 7.859e-05/0.5101, allocations: 19.94 kB / 0.5517 GB, free: 7.676 MB / 363.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001922/0.5121, allocations: 0.8898 MB / 0.5526 GB, free: 6.777 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.5121, allocations: 8.031 kB / 0.5526 GB, free: 6.77 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001537/0.5136, allocations: 190.9 kB / 0.5528 GB, free: 6.582 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009458/0.5146, allocations: 0.4991 MB / 0.5533 GB, free: 6.121 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.5147, allocations: 23.94 kB / 0.5533 GB, free: 6.098 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.5148, allocations: 43.75 kB / 0.5533 GB, free: 6.059 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008347/0.5156, allocations: 491.5 kB / 0.5538 GB, free: 5.758 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009694/0.5166, allocations: 0.6192 MB / 0.5544 GB, free: 5.281 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.5166, allocations: 0 / 0.5544 GB, free: 5.281 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.86e-05/0.5167, allocations: 7.984 kB / 0.5544 GB, free: 5.273 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.846e-05/0.5168, allocations: 41.22 kB / 0.5544 GB, free: 5.234 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003713/0.5205, allocations: 2.595 MB / 0.557 GB, free: 3.082 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008181/0.5214, allocations: 471.5 kB / 0.5574 GB, free: 2.766 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003948/0.5218, allocations: 291.7 kB / 0.5577 GB, free: 2.582 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.996e-05/0.5218, allocations: 15.42 kB / 0.5577 GB, free: 2.57 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005192/0.5224, allocations: 359.8 kB / 0.5581 GB, free: 2.293 MB / 363.1 MB Notification: Performance of pre-optimization done (n=55): time 2.595e-06/0.5224, allocations: 0 / 0.5581 GB, free: 2.293 MB / 363.1 MB Notification: Performance of matching and sorting (n=57): time 0.002402/0.5248, allocations: 1.439 MB / 0.5595 GB, free: 1.117 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.79e-05/0.5249, allocations: 118.7 kB / 0.5596 GB, free: 0.9805 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003748/0.5253, allocations: 328.2 kB / 0.5599 GB, free: 0.7188 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 4.679e-05/0.5253, allocations: 25.7 kB / 0.5599 GB, free: 0.6875 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.5255, allocations: 298.4 kB / 0.5602 GB, free: 480 kB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.5257, allocations: 187.3 kB / 0.5604 GB, free: 316 kB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/0.5257, allocations: 0 / 0.5604 GB, free: 316 kB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.5259, allocations: 364.6 kB / 0.5607 GB, free: 15.96 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/0.5262, allocations: 216.8 kB / 0.5609 GB, free: 15.84 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.5266, allocations: 323.2 kB / 0.5612 GB, free: 15.58 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000413/0.5271, allocations: 263.8 kB / 0.5615 GB, free: 15.41 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.5271, allocations: 3.938 kB / 0.5615 GB, free: 15.41 MB / 379.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001632/0.5287, allocations: 0.7835 MB / 0.5623 GB, free: 14.81 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004696/0.5292, allocations: 0.9913 MB / 0.5632 GB, free: 13.76 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.5292, allocations: 0 / 0.5632 GB, free: 13.76 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005684/0.5298, allocations: 179 kB / 0.5634 GB, free: 13.62 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.5303, allocations: 123.6 kB / 0.5635 GB, free: 13.5 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.5323, allocations: 2.073 MB / 0.5655 GB, free: 11.45 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005673/0.5329, allocations: 55.92 kB / 0.5656 GB, free: 11.4 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.268e-05/0.5329, allocations: 19.75 kB / 0.5656 GB, free: 11.38 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.997e-06/0.5329, allocations: 8.125 kB / 0.5656 GB, free: 11.38 MB / 379.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001171/0.5341, allocations: 0.664 MB / 0.5663 GB, free: 10.89 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.5341, allocations: 4 kB / 0.5663 GB, free: 10.89 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004482/0.5346, allocations: 160.7 kB / 0.5664 GB, free: 10.77 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.5351, allocations: 122.9 kB / 0.5665 GB, free: 10.65 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003588/0.5387, allocations: 3.438 MB / 0.5699 GB, free: 7.266 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005875/0.5393, allocations: 55.78 kB / 0.57 GB, free: 7.211 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.329e-05/0.5394, allocations: 27.97 kB / 0.57 GB, free: 7.184 MB / 379.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hydroPlant.primaryControl.gainPID.y:VARIABLE() "Output signal connector" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002579/0.5396, allocations: 129 kB / 0.5701 GB, free: 7.055 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.5397, allocations: 51.39 kB / 0.5702 GB, free: 7.004 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.5411, allocations: 0.662 MB / 0.5708 GB, free: 6.32 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.5411, allocations: 4 kB / 0.5708 GB, free: 6.316 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.5411, allocations: 4 kB / 0.5708 GB, free: 6.312 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.5411, allocations: 7.984 kB / 0.5708 GB, free: 6.305 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002266/0.5434, allocations: 1.422 MB / 0.5722 GB, free: 4.816 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.5434, allocations: 0 / 0.5722 GB, free: 4.816 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006136/0.544, allocations: 135.8 kB / 0.5723 GB, free: 4.684 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002379/0.5443, allocations: 65.67 kB / 0.5724 GB, free: 4.613 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.549e-05/0.5443, allocations: 8.094 kB / 0.5724 GB, free: 4.605 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001854/0.5462, allocations: 2.579 MB / 0.5749 GB, free: 1.797 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.5462, allocations: 7.969 kB / 0.5749 GB, free: 1.789 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.5478, allocations: 1.177 MB / 0.5761 GB, free: 0.5234 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.548, allocations: 184.4 kB / 0.5763 GB, free: 332 kB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.5481, allocations: 4 kB / 0.5763 GB, free: 328 kB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000511/0.5486, allocations: 63.88 kB / 0.5763 GB, free: 264 kB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.5488, allocations: 52.48 kB / 0.5764 GB, free: 212 kB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.812e-05/0.5488, allocations: 16 kB / 0.5764 GB, free: 196 kB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0003033/0.5491, allocations: 262.9 kB / 0.5766 GB, free: 15.94 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.5491, allocations: 0 / 0.5766 GB, free: 15.94 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0009641/0.5501, allocations: 232.1 kB / 0.5769 GB, free: 15.71 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001924/0.5503, allocations: 119.1 kB / 0.577 GB, free: 15.59 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.5527, allocations: 1.409 MB / 0.5784 GB, free: 14.12 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.5527, allocations: 0 / 0.5784 GB, free: 14.12 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008118/0.5535, allocations: 0.5261 MB / 0.5789 GB, free: 13.58 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005734/0.5541, allocations: 93.55 kB / 0.579 GB, free: 13.49 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.5561, allocations: 1.115 MB / 0.58 GB, free: 12.33 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005546/0.5566, allocations: 0.9394 MB / 0.581 GB, free: 11.36 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0005721/0.5572, allocations: 180.2 kB / 0.5811 GB, free: 11.18 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.5574, allocations: 43.42 kB / 0.5812 GB, free: 11.14 MB / 395.1 MB Notification: Performance of SimCode: time 3.6e-07/0.5574, allocations: 0 / 0.5812 GB, free: 11.14 MB / 395.1 MB Notification: Performance of Templates: time 0.01505/0.5724, allocations: 8.423 MB / 0.5894 GB, free: 2.73 MB / 395.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)