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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001663/0.001663, allocations: 182 kB / 7.8 MB, free: 144 kB / 6.207 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.813/1.813, allocations: 205.2 MB / 213.4 MB, free: 2.145 MB / 174.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001241/0.00124, allocations: 102.5 kB / 261.4 MB, free: 1.461 MB / 206.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2741/0.2741, allocations: 37.98 MB / 347.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 1.269e-05/1.28e-05, allocations: 4 kB / 409.3 MB, free: 69.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 56.31 MB / 465.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4573, allocations: 101.2 MB / 0.5535 GB, free: 2.254 MB / 366.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.4576, allocations: 86.58 kB / 0.5536 GB, free: 2.211 MB / 366.1 MB Notification: Performance of FrontEnd: time 0.07833/0.5359, allocations: 18.85 MB / 0.572 GB, free: 2.773 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.746e-05/0.5361, allocations: 27.88 kB / 0.5721 GB, free: 2.746 MB / 382.1 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.002394/0.5385, allocations: 0.8656 MB / 0.5729 GB, free: 1.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.5385, allocations: 12.03 kB / 0.5729 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001702/0.5402, allocations: 158.9 kB / 0.5731 GB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.5416, allocations: 0.5034 MB / 0.5736 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/0.5417, allocations: 19.91 kB / 0.5736 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.5418, allocations: 35.98 kB / 0.5736 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001335/0.5432, allocations: 413.9 kB / 0.574 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.5446, allocations: 0.5619 MB / 0.5746 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.5447, allocations: 0 / 0.5746 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.34e-05/0.5448, allocations: 0 / 0.5746 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.213e-05/0.5449, allocations: 36.89 kB / 0.5746 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006295/0.5512, allocations: 2.689 MB / 0.5772 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.5528, allocations: 0.5083 MB / 0.5777 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004277/0.5532, allocations: 155.7 kB / 0.5779 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.264e-05/0.5533, allocations: 4.328 kB / 0.5779 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005464/0.5538, allocations: 252.5 kB / 0.5781 GB, free: 13.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.485e-06/0.5539, allocations: 0 / 0.5781 GB, free: 13.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.001222/0.5551, allocations: 379.2 kB / 0.5785 GB, free: 13.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.004e-05/0.5552, allocations: 132.5 kB / 0.5786 GB, free: 12.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006553/0.5559, allocations: 349.2 kB / 0.5789 GB, free: 12.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.438e-05/0.5559, allocations: 29.7 kB / 0.579 GB, free: 12.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.5562, allocations: 279.3 kB / 0.5792 GB, free: 12.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.5564, allocations: 142.2 kB / 0.5794 GB, free: 12.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-05/0.5564, allocations: 0 / 0.5794 GB, free: 12.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.5566, allocations: 328.1 kB / 0.5797 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004131/0.557, allocations: 140.4 kB / 0.5798 GB, free: 11.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005415/0.5575, allocations: 258.8 kB / 0.5801 GB, free: 11.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004787/0.558, allocations: 171.5 kB / 0.5802 GB, free: 11.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.558, allocations: 4 kB / 0.5802 GB, free: 11.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001973/0.56, allocations: 0.5572 MB / 0.5808 GB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005341/0.5606, allocations: 1.307 MB / 0.582 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.5606, allocations: 448 / 0.5821 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006643/0.5613, allocations: 133.2 kB / 0.5822 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000806/0.5621, allocations: 99.62 kB / 0.5823 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.5632, allocations: 0.7652 MB / 0.583 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007126/0.5639, allocations: 63.56 kB / 0.5831 GB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.787e-05/0.564, allocations: 23.61 kB / 0.5831 GB, free: 8.777 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.5641, allocations: 4 kB / 0.5831 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001591/0.5657, allocations: 460.5 kB / 0.5835 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.5657, allocations: 4 kB / 0.5835 GB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005612/0.5663, allocations: 117.3 kB / 0.5837 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008183/0.5671, allocations: 103.6 kB / 0.5838 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003711/0.5708, allocations: 2.078 MB / 0.5858 GB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006598/0.5715, allocations: 55.62 kB / 0.5858 GB, free: 6.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-05/0.5716, allocations: 22.69 kB / 0.5859 GB, free: 6.379 MB / 398.1 MB 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.0001935/0.5718, allocations: 43.62 kB / 0.5859 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.572, allocations: 55.34 kB / 0.586 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001234/0.5732, allocations: 401.3 kB / 0.5863 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/0.5733, allocations: 4 kB / 0.5863 GB, free: 5.984 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.5733, allocations: 7.938 kB / 0.5864 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.096e-06/0.5733, allocations: 0 / 0.5864 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002259/0.5756, allocations: 0.9799 MB / 0.5873 GB, free: 5.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.5756, allocations: 4 kB / 0.5873 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009614/0.5766, allocations: 103.4 kB / 0.5874 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/0.5768, allocations: 32.09 kB / 0.5874 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.045e-05/0.5768, allocations: 4 kB / 0.5874 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.5782, allocations: 1.29 MB / 0.5887 GB, free: 3.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.5782, allocations: 4.062 kB / 0.5887 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001751/0.58, allocations: 0.7072 MB / 0.5894 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003163/0.5803, allocations: 170.5 kB / 0.5896 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.5805, allocations: 4 kB / 0.5896 GB, free: 3.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008042/0.5813, allocations: 51.33 kB / 0.5896 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.5814, allocations: 30.83 kB / 0.5896 GB, free: 2.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.323e-05/0.5815, allocations: 11.19 kB / 0.5897 GB, free: 2.926 MB / 398.1 MB Notification: Performance of sort global known variables: time 0.0004889/0.582, allocations: 267.3 kB / 0.5899 GB, free: 2.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001183/0.5832, allocations: 235.4 kB / 0.5901 GB, free: 2.5 MB / 398.1 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.0002293/0.5834, allocations: 119.1 kB / 0.5902 GB, free: 2.375 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001997/0.5854, allocations: 0.7318 MB / 0.591 GB, free: 1.805 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.5855, allocations: 1.75 kB / 0.591 GB, free: 1.805 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006639/0.5861, allocations: 289.4 kB / 0.5912 GB, free: 1.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.5872, allocations: 98.98 kB / 0.5913 GB, free: 1.496 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003033/0.5902, allocations: 0.9389 MB / 0.5923 GB, free: 0.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/0.5913, allocations: 0.9498 MB / 0.5932 GB, free: 15.66 MB / 414.1 MB Notification: Performance of SimCode: time 5.14e-06/0.5914, allocations: 0 / 0.5932 GB, free: 15.66 MB / 414.1 MB Notification: Performance of Templates: time 0.0191/0.6105, allocations: 9.07 MB / 0.602 GB, free: 6.699 MB / 414.1 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)