Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002127/0.002127, allocations: 182.1 kB / 8.008 MB, free: 1.059 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.149/2.149, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001131/0.00113, allocations: 94.44 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2579/0.2579, allocations: 38 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.172e-05/2.204e-05, allocations: 4 kB / 409.9 MB, free: 35.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 56.33 MB / 466.2 MB, free: 10.83 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5117/0.6168, allocations: 103.2 MB / 0.556 GB, free: 8.676 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.6172, allocations: 84.78 kB / 0.5561 GB, free: 8.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09889/0.7161, allocations: 24.95 MB / 0.5805 GB, free: 4.453 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.7161, allocations: 0 / 0.5805 GB, free: 4.453 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.458e-05/0.7162, allocations: 20 kB / 0.5805 GB, free: 4.434 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002701/0.7189, allocations: 0.9167 MB / 0.5814 GB, free: 3.512 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.719, allocations: 8.031 kB / 0.5814 GB, free: 3.504 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002174/0.7212, allocations: 194.9 kB / 0.5816 GB, free: 3.312 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001619/0.7228, allocations: 0.5346 MB / 0.5821 GB, free: 2.832 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.366e-05/0.7229, allocations: 20 kB / 0.5821 GB, free: 2.812 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.7231, allocations: 35.44 kB / 0.5822 GB, free: 2.781 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001489/0.7246, allocations: 0.5029 MB / 0.5826 GB, free: 2.461 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.7262, allocations: 0.6543 MB / 0.5833 GB, free: 1.945 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.793e-05/0.7263, allocations: 7.906 kB / 0.5833 GB, free: 1.938 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.196e-05/0.7264, allocations: 0 / 0.5833 GB, free: 1.938 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001736/0.7266, allocations: 44.34 kB / 0.5833 GB, free: 1.898 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006825/0.7334, allocations: 2.823 MB / 0.5861 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.735, allocations: 486.8 kB / 0.5866 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000731/0.7357, allocations: 298.6 kB / 0.5868 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.012e-05/0.7358, allocations: 8.422 kB / 0.5868 GB, free: 15.01 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008026/0.7366, allocations: 360.2 kB / 0.5872 GB, free: 14.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 3.386e-06/0.7366, allocations: 0 / 0.5872 GB, free: 14.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.004095/0.7407, allocations: 1.483 MB / 0.5886 GB, free: 13.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.829e-05/0.7409, allocations: 118.7 kB / 0.5888 GB, free: 13.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006376/0.7415, allocations: 342.8 kB / 0.5891 GB, free: 13.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001034/0.7417, allocations: 29.64 kB / 0.5891 GB, free: 13.08 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.742, allocations: 355.4 kB / 0.5894 GB, free: 12.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002771/0.7423, allocations: 185.7 kB / 0.5896 GB, free: 12.65 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.718e-05/0.7423, allocations: 0 / 0.5896 GB, free: 12.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.7425, allocations: 340.9 kB / 0.5899 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005951/0.7431, allocations: 226.4 kB / 0.5902 GB, free: 12.18 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006697/0.7438, allocations: 338 kB / 0.5905 GB, free: 11.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006799/0.7445, allocations: 268.4 kB / 0.5907 GB, free: 11.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.7445, allocations: 4.031 kB / 0.5907 GB, free: 11.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002593/0.7471, allocations: 0.7878 MB / 0.5915 GB, free: 11.14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005741/0.7477, allocations: 1.166 MB / 0.5927 GB, free: 9.902 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.7478, allocations: 4 kB / 0.5927 GB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.7488, allocations: 182.1 kB / 0.5928 GB, free: 9.758 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.7499, allocations: 127.2 kB / 0.593 GB, free: 9.637 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003249/0.7531, allocations: 2.161 MB / 0.5951 GB, free: 7.516 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.7543, allocations: 56 kB / 0.5951 GB, free: 7.461 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.628e-05/0.7544, allocations: 24.55 kB / 0.5951 GB, free: 7.441 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.7544, allocations: 4 kB / 0.5951 GB, free: 7.438 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002204/0.7566, allocations: 0.6975 MB / 0.5958 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.7566, allocations: 7.938 kB / 0.5958 GB, free: 6.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007313/0.7574, allocations: 153.4 kB / 0.596 GB, free: 6.812 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009937/0.7584, allocations: 119.8 kB / 0.5961 GB, free: 6.699 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003634/0.7621, allocations: 2.16 MB / 0.5982 GB, free: 4.672 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00082/0.7629, allocations: 35.95 kB / 0.5982 GB, free: 4.637 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.755e-05/0.763, allocations: 27.94 kB / 0.5983 GB, free: 4.609 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hydroPlant.primaryControl.addFF.y:VARIABLE() "Connector of Real output signal" type: Real hydroPlant.add.y:VARIABLE() "Connector of Real output signal" type: Real 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,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete 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 (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 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003091/0.7633, allocations: 128.9 kB / 0.5984 GB, free: 4.477 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.7635, allocations: 51.39 kB / 0.5984 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002095/0.7657, allocations: 0.6861 MB / 0.5991 GB, free: 3.723 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.802e-05/0.7657, allocations: 8 kB / 0.5991 GB, free: 3.715 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.7657, allocations: 7.938 kB / 0.5991 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.7658, allocations: 3.984 kB / 0.5991 GB, free: 3.703 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003896/0.7697, allocations: 1.449 MB / 0.6005 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/0.7697, allocations: 0 / 0.6005 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.771, allocations: 139.8 kB / 0.6007 GB, free: 2.051 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004016/0.7714, allocations: 65.83 kB / 0.6007 GB, free: 1.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/0.7715, allocations: 4 kB / 0.6007 GB, free: 1.977 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002813/0.7743, allocations: 2.583 MB / 0.6033 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.599e-05/0.7744, allocations: 11.92 kB / 0.6033 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002926/0.7773, allocations: 1.204 MB / 0.6044 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005017/0.7779, allocations: 176.4 kB / 0.6046 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.778, allocations: 8 kB / 0.6046 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.7791, allocations: 59.92 kB / 0.6047 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.7793, allocations: 48.48 kB / 0.6047 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-05/0.7794, allocations: 23.95 kB / 0.6048 GB, free: 13.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005242/0.7799, allocations: 271 kB / 0.605 GB, free: 13.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.78, allocations: 0 / 0.605 GB, free: 13.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001527/0.7815, allocations: 232.1 kB / 0.6052 GB, free: 13.04 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * 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.0003068/0.7818, allocations: 121.9 kB / 0.6053 GB, free: 12.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004269/0.7861, allocations: 1.441 MB / 0.6068 GB, free: 11.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.7862, allocations: 4 kB / 0.6068 GB, free: 11.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.7876, allocations: 0.526 MB / 0.6073 GB, free: 10.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.7887, allocations: 97.95 kB / 0.6074 GB, free: 10.76 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.7924, allocations: 1.174 MB / 0.6085 GB, free: 9.539 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008491/0.7933, allocations: 0.9583 MB / 0.6094 GB, free: 8.551 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003893/0.7937, allocations: 47.44 kB / 0.6095 GB, free: 8.504 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/0.7938, allocations: 4 kB / 0.6095 GB, free: 8.5 MB / 410.7 MB Notification: Performance of Templates: time 0.03041/0.8242, allocations: 13.12 MB / 0.6223 GB, free: 11.36 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)