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.001017/0.001017, allocations: 179.8 kB / 17.4 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.456/1.456, allocations: 194.5 MB / 212.6 MB, free: 2.961 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001593/0.001593, allocations: 115.9 kB / 257.9 MB, free: 4.277 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1799/0.1799, allocations: 38.01 MB / 341.1 MB, free: 1.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003656/0.0003656, allocations: 12 kB / 405 MB, free: 68.52 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1004, allocations: 53.24 MB / 458.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3289/0.4293, allocations: 97.93 MB / 0.5432 GB, free: 13.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003124/0.4297, allocations: 92.58 kB / 0.5432 GB, free: 13.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06486/0.4946, allocations: 24.42 MB / 0.5671 GB, free: 9.262 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.4947, allocations: 3.938 kB / 0.5671 GB, free: 9.258 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.111e-05/0.4948, allocations: 16 kB / 0.5671 GB, free: 9.242 MB / 378.7 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.002799/0.4976, allocations: 0.9818 MB / 0.5681 GB, free: 8.246 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.4976, allocations: 8.031 kB / 0.5681 GB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001554/0.4992, allocations: 187.8 kB / 0.5683 GB, free: 8.055 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.5007, allocations: 0.5493 MB / 0.5688 GB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.034e-05/0.5008, allocations: 41.05 kB / 0.5688 GB, free: 7.527 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/0.5011, allocations: 51.75 kB / 0.5689 GB, free: 7.492 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.5028, allocations: 0.7577 MB / 0.5696 GB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.956e-05/0.5029, allocations: 12.02 kB / 0.5696 GB, free: 6.902 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.079e-05/0.5029, allocations: 30.81 kB / 0.5697 GB, free: 6.887 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.955e-05/0.503, allocations: 40.34 kB / 0.5697 GB, free: 6.852 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.5046, allocations: 0.7153 MB / 0.5704 GB, free: 6.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004593/0.5092, allocations: 2.705 MB / 0.573 GB, free: 4.098 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.5105, allocations: 0.597 MB / 0.5736 GB, free: 3.652 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006533/0.5112, allocations: 370.1 kB / 0.574 GB, free: 3.398 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.444e-05/0.5113, allocations: 8.438 kB / 0.574 GB, free: 3.387 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007933/0.5121, allocations: 428.2 kB / 0.5744 GB, free: 3.055 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 3.457e-06/0.5121, allocations: 0 / 0.5744 GB, free: 3.055 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.004718/0.5168, allocations: 2.144 MB / 0.5765 GB, free: 1.324 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.5169, allocations: 111.4 kB / 0.5766 GB, free: 1.191 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008078/0.5178, allocations: 459.5 kB / 0.577 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.438e-05/0.5178, allocations: 36.94 kB / 0.5771 GB, free: 0.7891 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002663/0.5181, allocations: 286 kB / 0.5773 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.5184, allocations: 199.2 kB / 0.5775 GB, free: 428 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.5184, allocations: 13.94 kB / 0.5775 GB, free: 424 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.5186, allocations: 362.2 kB / 0.5779 GB, free: 76 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006479/0.5193, allocations: 294.6 kB / 0.5782 GB, free: 15.87 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006992/0.52, allocations: 391.9 kB / 0.5785 GB, free: 15.55 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/0.5213, allocations: 0.7185 MB / 0.5792 GB, free: 15.02 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.5214, allocations: 3.938 kB / 0.5793 GB, free: 15.01 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002257/0.5236, allocations: 1.024 MB / 0.5803 GB, free: 14.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001663/0.5238, allocations: 192.5 kB / 0.5804 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.5238, allocations: 4 kB / 0.5804 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007315/0.5246, allocations: 193.5 kB / 0.5806 GB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005178/0.5251, allocations: 122.5 kB / 0.5807 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004814/0.5299, allocations: 3.771 MB / 0.5844 GB, free: 9.844 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007253/0.5307, allocations: 67.98 kB / 0.5845 GB, free: 9.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.431e-05/0.5308, allocations: 23.98 kB / 0.5845 GB, free: 9.754 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.5308, allocations: 4 kB / 0.5845 GB, free: 9.75 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001895/0.5327, allocations: 0.8595 MB / 0.5854 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.5327, allocations: 0 / 0.5854 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004884/0.5332, allocations: 164.8 kB / 0.5855 GB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005187/0.5338, allocations: 123.9 kB / 0.5856 GB, free: 8.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003768/0.5376, allocations: 3.541 MB / 0.5891 GB, free: 4.781 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000663/0.5382, allocations: 55.94 kB / 0.5891 GB, free: 4.727 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.907e-05/0.5383, allocations: 28.05 kB / 0.5892 GB, free: 4.699 MB / 394.7 MB 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 () * Number of clocked 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.000593/0.5389, allocations: 296.9 kB / 0.5894 GB, free: 4.398 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.5391, allocations: 59.34 kB / 0.5895 GB, free: 4.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.5409, allocations: 0.8264 MB / 0.5903 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/0.5409, allocations: 8 kB / 0.5903 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.541, allocations: 3.984 kB / 0.5903 GB, free: 3.484 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.541, allocations: 0 / 0.5903 GB, free: 3.484 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003099/0.5441, allocations: 1.675 MB / 0.592 GB, free: 1.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.5441, allocations: 4 kB / 0.592 GB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006324/0.5447, allocations: 135.8 kB / 0.5921 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002481/0.545, allocations: 73.81 kB / 0.5922 GB, free: 1.512 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.658e-05/0.5451, allocations: 19.94 kB / 0.5922 GB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002232/0.5473, allocations: 2.678 MB / 0.5948 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.912e-06/0.5473, allocations: 4.125 kB / 0.5948 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002432/0.5498, allocations: 1.328 MB / 0.5961 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000353/0.5501, allocations: 180.4 kB / 0.5963 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.5503, allocations: 19.94 kB / 0.5963 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005323/0.5508, allocations: 67.92 kB / 0.5964 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.551, allocations: 56.42 kB / 0.5964 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-05/0.551, allocations: 20 kB / 0.5964 GB, free: 12.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005824/0.5516, allocations: 319.1 kB / 0.5967 GB, free: 12.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5516, allocations: 0 / 0.5967 GB, free: 12.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001188/0.5528, allocations: 264.1 kB / 0.597 GB, free: 12.25 MB / 410.7 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) * Number of clocked states: 0 () * 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.0002274/0.553, allocations: 142.2 kB / 0.5971 GB, free: 12.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003215/0.5563, allocations: 1.743 MB / 0.5988 GB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.5563, allocations: 3.938 kB / 0.5988 GB, free: 10.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.5574, allocations: 0.6104 MB / 0.5994 GB, free: 9.648 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000912/0.5583, allocations: 113.9 kB / 0.5995 GB, free: 9.535 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/0.5615, allocations: 1.766 MB / 0.6013 GB, free: 7.723 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007033/0.5622, allocations: 0.9311 MB / 0.6022 GB, free: 6.762 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000595/0.5628, allocations: 156.4 kB / 0.6023 GB, free: 6.605 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001817/0.563, allocations: 43.44 kB / 0.6024 GB, free: 6.566 MB / 410.7 MB Notification: Performance of SimCode: time 8.62e-07/0.563, allocations: 0 / 0.6024 GB, free: 6.566 MB / 410.7 MB Notification: Performance of Templates: time 0.01851/0.5815, allocations: 8.696 MB / 0.6108 GB, free: 13.87 MB / 426.7 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)