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") [: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.001803/0.001803, allocations: 195.4 kB / 7.809 MB, free: 2.488 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 1.744/1.744, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001343/0.001343, allocations: 97.8 kB / 261.4 MB, free: 13.62 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.2729/0.2729, allocations: 37.97 MB / 347.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.076e-05/1.09e-05, allocations: 4 kB / 409.3 MB, free: 47.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09934/0.09937, allocations: 56.32 MB / 465.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3706/0.4701, allocations: 103.2 MB / 0.5555 GB, free: 7.695 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/0.4705, allocations: 87.94 kB / 0.5555 GB, free: 7.609 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.107/0.5774, allocations: 24.64 MB / 0.5796 GB, free: 14.76 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.554e-05/0.5776, allocations: 16 kB / 0.5796 GB, free: 14.74 MB / 426.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.002863/0.5804, allocations: 0.9325 MB / 0.5805 GB, free: 13.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.5805, allocations: 8.031 kB / 0.5805 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002368/0.5829, allocations: 190.9 kB / 0.5807 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00169/0.5846, allocations: 0.5445 MB / 0.5813 GB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.737e-05/0.5847, allocations: 16 kB / 0.5813 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001717/0.5849, allocations: 36 kB / 0.5813 GB, free: 12.92 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001747/0.5866, allocations: 0.5141 MB / 0.5818 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.5886, allocations: 0.659 MB / 0.5825 GB, free: 11.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.054e-05/0.5886, allocations: 7.906 kB / 0.5825 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.601e-05/0.5887, allocations: 0 / 0.5825 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000175/0.5889, allocations: 41.3 kB / 0.5825 GB, free: 11.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00751/0.5964, allocations: 2.839 MB / 0.5853 GB, free: 8.715 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.5979, allocations: 401 kB / 0.5857 GB, free: 8.305 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008545/0.5988, allocations: 303 kB / 0.5859 GB, free: 8.004 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.736e-05/0.5989, allocations: 12.42 kB / 0.586 GB, free: 7.992 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009042/0.5998, allocations: 364.3 kB / 0.5863 GB, free: 7.621 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 3.016e-06/0.5998, allocations: 0 / 0.5863 GB, free: 7.621 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.004506/0.6043, allocations: 1.485 MB / 0.5878 GB, free: 6.074 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.03e-05/0.6044, allocations: 111.3 kB / 0.5879 GB, free: 5.941 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007068/0.6052, allocations: 341.2 kB / 0.5882 GB, free: 5.602 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.6053, allocations: 29.7 kB / 0.5882 GB, free: 5.566 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002502/0.6056, allocations: 290.8 kB / 0.5885 GB, free: 5.281 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002967/0.6059, allocations: 193.1 kB / 0.5887 GB, free: 5.09 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.062e-05/0.6059, allocations: 0 / 0.5887 GB, free: 5.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.6061, allocations: 330.8 kB / 0.589 GB, free: 4.758 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006868/0.6068, allocations: 229.2 kB / 0.5892 GB, free: 4.535 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008249/0.6077, allocations: 345.7 kB / 0.5895 GB, free: 4.156 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008094/0.6085, allocations: 273.3 kB / 0.5898 GB, free: 3.891 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.186e-06/0.6085, allocations: 4 kB / 0.5898 GB, free: 3.887 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002938/0.6115, allocations: 0.8023 MB / 0.5906 GB, free: 3.074 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005646/0.6121, allocations: 1.136 MB / 0.5917 GB, free: 1.852 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/0.6121, allocations: 12 kB / 0.5917 GB, free: 1.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009918/0.6131, allocations: 161.6 kB / 0.5919 GB, free: 1.676 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.6143, allocations: 127.8 kB / 0.592 GB, free: 1.551 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.6156, allocations: 0.7902 MB / 0.5928 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008991/0.6165, allocations: 44.02 kB / 0.5928 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.45e-05/0.6166, allocations: 20 kB / 0.5928 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.6166, allocations: 7.938 kB / 0.5928 GB, free: 0.668 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002425/0.6191, allocations: 0.6953 MB / 0.5935 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.6191, allocations: 4 kB / 0.5935 GB, free: 15.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008358/0.62, allocations: 161.9 kB / 0.5937 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.621, allocations: 119.8 kB / 0.5938 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003982/0.625, allocations: 2.127 MB / 0.5959 GB, free: 13.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008432/0.6259, allocations: 36.03 kB / 0.5959 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.927e-05/0.626, allocations: 27.98 kB / 0.5959 GB, free: 13.37 MB / 442.7 MB 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): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 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.0002374/0.6263, allocations: 53.38 kB / 0.596 GB, free: 13.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000181/0.6265, allocations: 55.34 kB / 0.596 GB, free: 13.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/0.6288, allocations: 0.6947 MB / 0.5967 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.6288, allocations: 4 kB / 0.5967 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.6288, allocations: 4 kB / 0.5967 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.6289, allocations: 3.984 kB / 0.5967 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004756/0.6336, allocations: 1.915 MB / 0.5986 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.6337, allocations: 4 kB / 0.5986 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/0.635, allocations: 144.3 kB / 0.5987 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004663/0.6355, allocations: 57.69 kB / 0.5988 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.6357, allocations: 23.89 kB / 0.5988 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002935/0.6386, allocations: 2.567 MB / 0.6013 GB, free: 7.418 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.309e-05/0.6387, allocations: 12.09 kB / 0.6013 GB, free: 7.406 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003246/0.6419, allocations: 1.403 MB / 0.6027 GB, free: 5.824 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005114/0.6425, allocations: 196.4 kB / 0.6029 GB, free: 5.613 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.6426, allocations: 8 kB / 0.6029 GB, free: 5.605 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.6437, allocations: 55.94 kB / 0.6029 GB, free: 5.551 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/0.644, allocations: 48.28 kB / 0.603 GB, free: 5.504 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.271e-05/0.644, allocations: 27.94 kB / 0.603 GB, free: 5.477 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0005276/0.6446, allocations: 271.2 kB / 0.6033 GB, free: 5.211 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001423/0.646, allocations: 228.2 kB / 0.6035 GB, free: 4.988 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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.0002857/0.6463, allocations: 129.8 kB / 0.6036 GB, free: 4.855 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003355/0.6497, allocations: 1.255 MB / 0.6048 GB, free: 3.535 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.6498, allocations: 0 / 0.6048 GB, free: 3.535 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.6512, allocations: 0.5362 MB / 0.6054 GB, free: 2.977 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.6525, allocations: 105.6 kB / 0.6055 GB, free: 2.879 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/0.6568, allocations: 1.273 MB / 0.6067 GB, free: 1.516 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001136/0.658, allocations: 1.008 MB / 0.6077 GB, free: 496 kB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/0.658, allocations: 0 / 0.6077 GB, free: 496 kB / 442.7 MB Notification: Performance of Templates: time 0.02706/0.6851, allocations: 13.33 MB / 0.6207 GB, free: 3.145 MB / 458.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)