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.6 kB / 16.38 MB, free: 5.762 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.15/1.15, allocations: 194.5 MB / 211.6 MB, free: 3.035 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.001598/0.001598, allocations: 120.5 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.168/0.168, allocations: 38 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.0003798, allocations: 15.98 kB / 403.8 MB, free: 68.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06798/0.06838, allocations: 53.23 MB / 457 MB, free: 15.56 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.3272, allocations: 97.89 MB / 0.5419 GB, free: 13.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/0.3275, allocations: 86.27 kB / 0.542 GB, free: 13.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05871/0.3862, allocations: 24.37 MB / 0.5658 GB, free: 9.711 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3862, allocations: 0 / 0.5658 GB, free: 9.711 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.116e-05/0.3863, allocations: 20 kB / 0.5658 GB, free: 9.691 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.001791/0.3881, allocations: 0.9839 MB / 0.5668 GB, free: 8.699 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.3881, allocations: 16.02 kB / 0.5668 GB, free: 8.684 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001194/0.3893, allocations: 186.9 kB / 0.5669 GB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009302/0.3903, allocations: 0.5317 MB / 0.5675 GB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.3903, allocations: 40.88 kB / 0.5675 GB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.3904, allocations: 60.31 kB / 0.5676 GB, free: 7.941 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.3917, allocations: 0.7517 MB / 0.5683 GB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.3917, allocations: 7.156 kB / 0.5683 GB, free: 7.367 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.503e-05/0.3918, allocations: 16.62 kB / 0.5683 GB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.166e-05/0.3919, allocations: 48.28 kB / 0.5684 GB, free: 7.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.3932, allocations: 0.7249 MB / 0.5691 GB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003614/0.3968, allocations: 2.699 MB / 0.5717 GB, free: 4.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.398, allocations: 0.592 MB / 0.5723 GB, free: 4.125 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.016e-05/0.3981, allocations: 11.8 kB / 0.5723 GB, free: 4.117 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007091/0.3988, allocations: 436.2 kB / 0.5727 GB, free: 3.773 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 2.154e-06/0.3988, allocations: 4 kB / 0.5727 GB, free: 3.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.003917/0.4027, allocations: 2.149 MB / 0.5748 GB, free: 2.043 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.734e-05/0.4028, allocations: 119.2 kB / 0.5749 GB, free: 1.902 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000547/0.4034, allocations: 404.1 kB / 0.5753 GB, free: 1.582 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.4034, allocations: 32.52 kB / 0.5753 GB, free: 1.551 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.4036, allocations: 294.4 kB / 0.5756 GB, free: 1.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.4038, allocations: 192.4 kB / 0.5758 GB, free: 1.176 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.4038, allocations: 10.19 kB / 0.5758 GB, free: 1.176 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.404, allocations: 371.7 kB / 0.5762 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005341/0.4045, allocations: 286.7 kB / 0.5765 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005975/0.4051, allocations: 394.2 kB / 0.5768 GB, free: 320 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006197/0.4057, allocations: 360.2 kB / 0.5772 GB, free: 68 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4057, allocations: 0 / 0.5772 GB, free: 68 kB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001906/0.4077, allocations: 0.9881 MB / 0.5781 GB, free: 15.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003376/0.408, allocations: 0.9083 MB / 0.579 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.408, allocations: 4 kB / 0.579 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006553/0.4087, allocations: 202.6 kB / 0.5792 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005026/0.4092, allocations: 115.4 kB / 0.5793 GB, free: 14.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.411, allocations: 2.163 MB / 0.5814 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005555/0.4116, allocations: 73.55 kB / 0.5815 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.643e-05/0.4117, allocations: 22.56 kB / 0.5815 GB, free: 11.83 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.654e-06/0.4117, allocations: 4 kB / 0.5815 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001607/0.4133, allocations: 0.8478 MB / 0.5824 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.4133, allocations: 4 kB / 0.5824 GB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004922/0.4138, allocations: 165.5 kB / 0.5825 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004716/0.4143, allocations: 116 kB / 0.5826 GB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003175/0.4175, allocations: 3.572 MB / 0.5861 GB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005548/0.4181, allocations: 67.89 kB / 0.5862 GB, free: 6.961 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.4181, allocations: 28.06 kB / 0.5862 GB, free: 6.934 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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.0003959/0.4185, allocations: 297.6 kB / 0.5865 GB, free: 6.633 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.219e-05/0.4186, allocations: 59.23 kB / 0.5866 GB, free: 6.574 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.4202, allocations: 0.8304 MB / 0.5874 GB, free: 5.734 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.4203, allocations: 8 kB / 0.5874 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.4203, allocations: 0 / 0.5874 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.4203, allocations: 7.938 kB / 0.5874 GB, free: 5.719 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002667/0.423, allocations: 1.671 MB / 0.589 GB, free: 3.965 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.471e-06/0.423, allocations: 4 kB / 0.589 GB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005988/0.4236, allocations: 135.8 kB / 0.5891 GB, free: 3.828 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000217/0.4238, allocations: 65.86 kB / 0.5892 GB, free: 3.758 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.435e-05/0.4239, allocations: 19.98 kB / 0.5892 GB, free: 3.738 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001755/0.4256, allocations: 2.701 MB / 0.5919 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.4256, allocations: 7.984 kB / 0.5919 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002159/0.4278, allocations: 1.403 MB / 0.5932 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/0.4281, allocations: 188.4 kB / 0.5934 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.967e-05/0.4282, allocations: 12 kB / 0.5934 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004867/0.4287, allocations: 63.92 kB / 0.5935 GB, free: 14.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.4288, allocations: 56.48 kB / 0.5936 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.93e-05/0.4288, allocations: 16 kB / 0.5936 GB, free: 14.91 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004646/0.4293, allocations: 323 kB / 0.5939 GB, free: 14.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4293, allocations: 0 / 0.5939 GB, free: 14.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008867/0.4302, allocations: 256.1 kB / 0.5941 GB, free: 14.36 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.0001713/0.4304, allocations: 147 kB / 0.5943 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002647/0.433, allocations: 1.585 MB / 0.5958 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4331, allocations: 4.062 kB / 0.5958 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009502/0.434, allocations: 0.6178 MB / 0.5964 GB, free: 11.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005293/0.4346, allocations: 94.41 kB / 0.5965 GB, free: 11.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.437, allocations: 1.773 MB / 0.5982 GB, free: 9.996 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005489/0.4376, allocations: 0.9427 MB / 0.5992 GB, free: 9.023 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004762/0.4381, allocations: 148.4 kB / 0.5993 GB, free: 8.875 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.4382, allocations: 47.42 kB / 0.5993 GB, free: 8.828 MB / 410.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4382, allocations: 0 / 0.5993 GB, free: 8.828 MB / 410.7 MB Notification: Performance of Templates: time 0.0135/0.4517, allocations: 8.291 MB / 0.6074 GB, free: 0.5391 MB / 410.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)