Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.WaterComponents.WaterPumps,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps") translateModel(ThermoPower.Test.WaterComponents.WaterPumps,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001261/0.001261, allocations: 191.8 kB / 8.135 MB, free: 2.078 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.2/1.2, allocations: 205.2 MB / 213.7 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000853/0.000853, allocations: 99.33 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3882/0.3882, allocations: 48.75 MB / 358.4 MB, free: 53.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.316e-06/8.346e-06, allocations: 0 / 424.7 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1257, allocations: 60.26 MB / 485 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.074/5.2, allocations: 2.888 GB / 3.362 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/5.2, allocations: 78.19 kB / 3.362 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.309/6.509, allocations: 494.6 MB / 3.845 GB, free: 43.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.892e-05/6.51, allocations: 28.98 kB / 3.845 GB, free: 43.3 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.005818/6.515, allocations: 1.475 MB / 3.846 GB, free: 42.46 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/6.515, allocations: 8.938 kB / 3.846 GB, free: 42.46 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004665/6.516, allocations: 139.4 kB / 3.846 GB, free: 42.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001957/6.518, allocations: 0.7548 MB / 3.847 GB, free: 41.99 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/6.518, allocations: 119.8 kB / 3.847 GB, free: 41.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001041/6.518, allocations: 42.81 kB / 3.847 GB, free: 41.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008438/6.519, allocations: 476.4 kB / 3.848 GB, free: 41.72 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009953/6.52, allocations: 0.7409 MB / 3.848 GB, free: 41.28 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/6.52, allocations: 3.906 kB / 3.848 GB, free: 41.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-05/6.52, allocations: 2.281 kB / 3.848 GB, free: 41.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.215e-05/6.52, allocations: 20.5 kB / 3.848 GB, free: 41.27 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003237/6.523, allocations: 3.401 MB / 3.852 GB, free: 38.49 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009137/6.524, allocations: 430.6 kB / 3.852 GB, free: 38.34 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/6.525, allocations: 174.6 kB / 3.852 GB, free: 38.27 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05507/6.58, allocations: 32.13 MB / 3.884 GB, free: 18.09 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/6.58, allocations: 38.19 kB / 3.884 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=53): time 2.074e-06/6.58, allocations: 2.781 kB / 3.884 GB, free: 18.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=53): time 0.002491/6.582, allocations: 0.6987 MB / 3.884 GB, free: 17.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/6.582, allocations: 57.28 kB / 3.884 GB, free: 17.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/6.583, allocations: 370 kB / 3.885 GB, free: 17.55 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/6.583, allocations: 25.7 kB / 3.885 GB, free: 17.52 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/6.583, allocations: 285.5 kB / 3.885 GB, free: 17.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/6.583, allocations: 179.9 kB / 3.885 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/6.583, allocations: 2.656 kB / 3.885 GB, free: 17.16 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.561e-05/6.583, allocations: 373 kB / 3.886 GB, free: 16.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002048/6.583, allocations: 133 kB / 3.886 GB, free: 16.77 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/6.583, allocations: 247.5 kB / 3.886 GB, free: 16.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005536/6.584, allocations: 174.1 kB / 3.886 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/6.584, allocations: 3.906 kB / 3.886 GB, free: 16.53 MB / 0.5105 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002159/6.586, allocations: 0.7594 MB / 3.887 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001859/6.586, allocations: 1.136 MB / 3.888 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/6.586, allocations: 3 kB / 3.888 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/6.588, allocations: 323.3 kB / 3.888 GB, free: 15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004175/6.588, allocations: 103.2 kB / 3.888 GB, free: 14.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/6.59, allocations: 2.082 MB / 3.89 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007151/6.591, allocations: 87.11 kB / 3.89 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.829e-05/6.591, allocations: 43.52 kB / 3.89 GB, free: 13.24 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.324e-06/6.591, allocations: 3.562 kB / 3.89 GB, free: 13.24 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001546/6.592, allocations: 0.5543 MB / 3.891 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/6.592, allocations: 3.094 kB / 3.891 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006233/6.593, allocations: 217.6 kB / 3.891 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/6.593, allocations: 122.3 kB / 3.891 GB, free: 13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/6.594, allocations: 1.833 MB / 3.893 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006296/6.595, allocations: 88.84 kB / 3.893 GB, free: 11.33 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.474e-05/6.595, allocations: 29.73 kB / 3.893 GB, free: 11.33 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump2.dp:VARIABLE(unit = "Pa" ) "Outlet pressure minus inlet pressure" type: Real Pump2.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump3.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump1.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" 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: 6 (Pump3.int_Np,Pump2.int_Np,Pump1.int_Np,Pump3.inletFluidState.phase,Pump2.inletFluidState.phase,Pump1.inletFluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 6,3 6,3 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002261/6.595, allocations: 124.8 kB / 3.893 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002825/6.596, allocations: 136.2 kB / 3.893 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002283/6.598, allocations: 1.678 MB / 3.895 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/6.598, allocations: 16.08 kB / 3.895 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/6.598, allocations: 0 / 3.895 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/6.598, allocations: 3.891 kB / 3.895 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008807/6.599, allocations: 0.7101 MB / 3.896 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/6.599, allocations: 4 kB / 3.896 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004021/6.599, allocations: 79.31 kB / 3.896 GB, free: 10.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001384/6.601, allocations: 1.085 MB / 3.897 GB, free: 9.836 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/6.601, allocations: 10.97 kB / 3.897 GB, free: 9.828 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001686/6.602, allocations: 2.55 MB / 3.899 GB, free: 7.879 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/6.602, allocations: 0 / 3.899 GB, free: 7.879 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002304/6.605, allocations: 1.616 MB / 3.901 GB, free: 7.109 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/6.605, allocations: 196.6 kB / 3.901 GB, free: 6.949 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.1e-05/6.605, allocations: 4.438 kB / 3.901 GB, free: 6.949 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004729/6.606, allocations: 54.73 kB / 3.901 GB, free: 6.945 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/6.606, allocations: 45.77 kB / 3.901 GB, free: 6.934 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/6.606, allocations: 21.08 kB / 3.901 GB, free: 6.93 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0002832/6.606, allocations: 272.2 kB / 3.902 GB, free: 6.789 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0049/6.611, allocations: 1.169 MB / 3.903 GB, free: 6.539 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Pump1.h,Pump2.h,Pump3.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 8,2 8,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.007404/6.618, allocations: 1.923 MB / 3.905 GB, free: 6.176 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002274/6.621, allocations: 1.02 MB / 3.906 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/6.621, allocations: 5.188 kB / 3.906 GB, free: 5.824 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008806/6.622, allocations: 0.599 MB / 3.906 GB, free: 5.367 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/6.623, allocations: 249.2 kB / 3.906 GB, free: 5.191 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/6.626, allocations: 1.385 MB / 3.908 GB, free: 3.934 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004617/6.626, allocations: 1.057 MB / 3.909 GB, free: 2.973 MB / 0.5105 GB Notification: Performance of SimCode: time 7.22e-07/6.626, allocations: 0 / 3.909 GB, free: 2.973 MB / 0.5105 GB Notification: Performance of Templates: time 0.2292/6.855, allocations: 40.1 MB / 3.948 GB, free: 109.6 MB / 0.5261 GB make -j1 -f ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.makefile (rm -f ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.sim & ./ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe 2>&1)