Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001457/0.001457, allocations: 185.7 kB / 8.01 MB, free: 1.062 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.009/2.009, allocations: 205.3 MB / 213.7 MB, free: 1.73 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.00108/0.00108, allocations: 90.45 kB / 261.8 MB, free: 1.672 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.2484/0.2484, allocations: 37.99 MB / 347.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.239e-05/2.206e-05, allocations: 4 kB / 409.9 MB, free: 35.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 56.32 MB / 466.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5091/0.6188, allocations: 101.2 MB / 0.5541 GB, free: 9.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.6192, allocations: 86.42 kB / 0.5542 GB, free: 9.168 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07372/0.6929, allocations: 19.16 MB / 0.5729 GB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.693, allocations: 0 / 0.5729 GB, free: 10.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.031e-05/0.6931, allocations: 19.98 kB / 0.5729 GB, free: 10.87 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002335/0.6954, allocations: 0.8635 MB / 0.5738 GB, free: 9.996 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.6955, allocations: 12.03 kB / 0.5738 GB, free: 9.984 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.697, allocations: 155 kB / 0.5739 GB, free: 9.832 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.6984, allocations: 0.5067 MB / 0.5744 GB, free: 9.371 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.6985, allocations: 19.94 kB / 0.5744 GB, free: 9.352 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.6986, allocations: 35.84 kB / 0.5745 GB, free: 9.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001247/0.6999, allocations: 409 kB / 0.5749 GB, free: 9.074 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001345/0.7012, allocations: 0.5417 MB / 0.5754 GB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.697e-05/0.7013, allocations: 15.92 kB / 0.5754 GB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.474e-05/0.7014, allocations: 3.953 kB / 0.5754 GB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.862e-05/0.7015, allocations: 29.12 kB / 0.5754 GB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006218/0.7077, allocations: 2.681 MB / 0.5781 GB, free: 6.289 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.7092, allocations: 0.5193 MB / 0.5786 GB, free: 5.887 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000393/0.7097, allocations: 160.3 kB / 0.5787 GB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.189e-05/0.7097, allocations: 4.328 kB / 0.5787 GB, free: 5.781 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005676/0.7103, allocations: 245 kB / 0.579 GB, free: 5.582 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.916e-06/0.7103, allocations: 3.938 kB / 0.579 GB, free: 5.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001217/0.7115, allocations: 378.1 kB / 0.5793 GB, free: 5.297 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.025e-05/0.7117, allocations: 140.5 kB / 0.5794 GB, free: 5.129 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006314/0.7123, allocations: 353.4 kB / 0.5798 GB, free: 4.855 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.516e-05/0.7124, allocations: 25.7 kB / 0.5798 GB, free: 4.824 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003202/0.7127, allocations: 348.7 kB / 0.5801 GB, free: 4.547 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.7129, allocations: 139.7 kB / 0.5803 GB, free: 4.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/0.713, allocations: 0 / 0.5803 GB, free: 4.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.7131, allocations: 329.6 kB / 0.5806 GB, free: 4.105 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.7135, allocations: 132.3 kB / 0.5807 GB, free: 4.031 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004822/0.714, allocations: 260.6 kB / 0.581 GB, free: 3.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000448/0.7145, allocations: 164.1 kB / 0.5811 GB, free: 3.688 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.7145, allocations: 448 / 0.5811 GB, free: 3.688 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001848/0.7163, allocations: 0.5528 MB / 0.5817 GB, free: 3.262 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006174/0.717, allocations: 1.346 MB / 0.583 GB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.717, allocations: 4 kB / 0.583 GB, free: 1.828 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007047/0.7177, allocations: 132.7 kB / 0.5831 GB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007387/0.7185, allocations: 107.2 kB / 0.5832 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.7196, allocations: 0.7725 MB / 0.584 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008636/0.7204, allocations: 63.64 kB / 0.584 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-05/0.7205, allocations: 19.56 kB / 0.584 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.7205, allocations: 4 kB / 0.584 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001482/0.722, allocations: 483.3 kB / 0.5845 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.7221, allocations: 4 kB / 0.5845 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000499/0.7226, allocations: 109.9 kB / 0.5846 GB, free: 448 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007228/0.7233, allocations: 102.7 kB / 0.5847 GB, free: 352 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003402/0.7267, allocations: 2.129 MB / 0.5868 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006477/0.7274, allocations: 47.66 kB / 0.5868 GB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.266e-05/0.7275, allocations: 23.25 kB / 0.5869 GB, free: 14.45 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 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,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002624/0.7278, allocations: 123 kB / 0.587 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.7279, allocations: 55.33 kB / 0.587 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.7291, allocations: 406.5 kB / 0.5874 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.7291, allocations: 4 kB / 0.5874 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.7291, allocations: 0 / 0.5874 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.7292, allocations: 7.984 kB / 0.5874 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002151/0.7313, allocations: 0.9654 MB / 0.5884 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.7314, allocations: 0 / 0.5884 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009091/0.7323, allocations: 95.88 kB / 0.5885 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001594/0.7325, allocations: 31.09 kB / 0.5885 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.464e-05/0.7325, allocations: 6.562 kB / 0.5885 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.7339, allocations: 1.313 MB / 0.5898 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.7339, allocations: 0 / 0.5898 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.7356, allocations: 0.7126 MB / 0.5905 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003102/0.7359, allocations: 164.2 kB / 0.5906 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.198e-05/0.736, allocations: 4 kB / 0.5906 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007222/0.7368, allocations: 43.95 kB / 0.5907 GB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.7369, allocations: 42.22 kB / 0.5907 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.28e-05/0.737, allocations: 10.69 kB / 0.5907 GB, free: 10.94 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000468/0.7375, allocations: 268.7 kB / 0.591 GB, free: 10.74 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7375, allocations: 0 / 0.591 GB, free: 10.74 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001293/0.7388, allocations: 235.2 kB / 0.5912 GB, free: 10.51 MB / 394.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002593/0.739, allocations: 122.4 kB / 0.5913 GB, free: 10.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.7413, allocations: 0.8188 MB / 0.5921 GB, free: 9.727 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.7413, allocations: 1.75 kB / 0.5921 GB, free: 9.727 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000603/0.7419, allocations: 290 kB / 0.5924 GB, free: 9.492 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009324/0.7429, allocations: 97.84 kB / 0.5925 GB, free: 9.418 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.7455, allocations: 0.9358 MB / 0.5934 GB, free: 8.555 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006562/0.7462, allocations: 0.901 MB / 0.5943 GB, free: 7.633 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002738/0.7465, allocations: 42.86 kB / 0.5943 GB, free: 7.594 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7465, allocations: 0 / 0.5943 GB, free: 7.594 MB / 394.7 MB Notification: Performance of Templates: time 0.02013/0.7666, allocations: 8.924 MB / 0.603 GB, free: 14.79 MB / 410.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)