Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5") translateModel(IDEAS.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5") [: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 4.0.0+maint.om/package.mo): time 0.003763/0.003763, allocations: 178.5 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6565/0.6565, allocations: 130.6 MB / 138.5 MB, free: 2.32 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 221.3 MB / 391.4 MB, free: 13.08 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000992/0.000992, allocations: 97.64 kB / 473.5 MB, free: 14.39 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 6.913e-06/6.933e-06, allocations: 2.625 kB / 0.5479 GB, free: 89.02 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1585, allocations: 81.58 MB / 0.6276 GB, free: 18.21 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.028/1.186, allocations: 424.4 MB / 1.042 GB, free: 186.9 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/1.187, allocations: 95.94 kB / 1.042 GB, free: 186.8 MB / 0.6667 GB Notification: Performance of FrontEnd: time 42.8/43.99, allocations: 10.47 GB / 11.52 GB, free: 56.64 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.004555/43.99, allocations: 351.8 kB / 11.52 GB, free: 56.3 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1521 * Number of variables: 1521 Notification: Performance of Generate backend data structure: time 0.05463/44.05, allocations: 12.16 MB / 11.53 GB, free: 44.04 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/44.05, allocations: 8.031 kB / 11.53 GB, free: 44.03 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01623/44.06, allocations: 2.332 MB / 11.53 GB, free: 41.68 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07105/44.14, allocations: 22.43 MB / 11.55 GB, free: 19.19 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005728/44.14, allocations: 196 kB / 11.55 GB, free: 19 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004576/44.14, allocations: 432 kB / 11.55 GB, free: 18.58 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03201/44.17, allocations: 18.11 MB / 11.57 GB, free: 472 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7364/44.91, allocations: 12.31 MB / 11.58 GB, free: 109.2 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001889/44.91, allocations: 7.688 kB / 11.58 GB, free: 109.2 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001843/44.91, allocations: 10.72 kB / 11.58 GB, free: 109.2 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001545/44.91, allocations: 151.9 kB / 11.58 GB, free: 109.2 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1202/45.03, allocations: 73.7 MB / 11.65 GB, free: 78.43 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01191/45.04, allocations: 8.362 MB / 11.66 GB, free: 78.36 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01234/45.06, allocations: 8.868 MB / 11.67 GB, free: 78.28 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06595/45.12, allocations: 31.86 MB / 11.7 GB, free: 70.47 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01297/45.14, allocations: 8.08 MB / 11.71 GB, free: 70.36 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=393): time 8.185e-06/45.14, allocations: 2.969 kB / 11.71 GB, free: 70.36 MB / 0.9323 GB Notification: Performance of matching and sorting (n=395): time 0.09709/45.23, allocations: 38.62 MB / 11.75 GB, free: 67.66 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/45.23, allocations: 93.86 kB / 11.75 GB, free: 67.6 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03297/45.27, allocations: 11.55 MB / 11.76 GB, free: 66.94 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.003435/45.27, allocations: 35.77 kB / 11.76 GB, free: 66.91 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.007168/45.28, allocations: 3.068 MB / 11.76 GB, free: 65.91 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.005868/45.28, allocations: 1.292 MB / 11.76 GB, free: 65.24 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002946/45.29, allocations: 0.5312 kB / 11.76 GB, free: 65.24 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0006703/45.29, allocations: 0.5395 MB / 11.76 GB, free: 64.92 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01303/45.3, allocations: 7.135 MB / 11.77 GB, free: 64.9 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01605/45.31, allocations: 9.551 MB / 11.78 GB, free: 62.05 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01791/45.33, allocations: 8.234 MB / 11.79 GB, free: 61.93 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/45.33, allocations: 11.16 kB / 11.79 GB, free: 61.93 MB / 0.9323 GB Notification: Performance of matching and sorting (n=776) (initialization): time 0.06149/45.39, allocations: 23.93 MB / 11.81 GB, free: 58.67 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.008849/45.4, allocations: 29.53 MB / 11.84 GB, free: 43.69 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003061/45.4, allocations: 44.56 kB / 11.84 GB, free: 43.69 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592/47, allocations: 192.8 MB / 12.03 GB, free: 121.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00886/47, allocations: 1.263 MB / 12.03 GB, free: 121.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04598/47.05, allocations: 27.62 MB / 12.06 GB, free: 117.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02033/47.07, allocations: 0.7628 MB / 12.06 GB, free: 117.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00466/47.08, allocations: 0.7281 MB / 12.06 GB, free: 117.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/47.08, allocations: 6.219 kB / 12.06 GB, free: 117.6 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05075/47.13, allocations: 21.8 MB / 12.08 GB, free: 117.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002654/47.13, allocations: 44.44 kB / 12.08 GB, free: 117.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7794/47.91, allocations: 188.6 MB / 12.26 GB, free: 85.82 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006917/47.91, allocations: 1.245 MB / 12.27 GB, free: 84.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05613/47.97, allocations: 29.5 MB / 12.29 GB, free: 69.07 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01845/47.99, allocations: 0.7346 MB / 12.29 GB, free: 68.61 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003969/47.99, allocations: 0.6889 MB / 12.3 GB, free: 68.22 MB / 0.948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumpHea.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real spl2.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumpCoo.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (556): * Single equations (assignments): 544 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {39 61,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.004978/48, allocations: 275.4 kB / 12.3 GB, free: 68.06 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005437/48, allocations: 1.154 MB / 12.3 GB, free: 67.54 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04651/48.05, allocations: 18.68 MB / 12.32 GB, free: 58.54 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.018e-05/48.05, allocations: 56.06 kB / 12.32 GB, free: 58.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/48.05, allocations: 0 / 12.32 GB, free: 58.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02071/48.07, allocations: 12.86 MB / 12.33 GB, free: 52.18 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.8052/48.88, allocations: 42.85 MB / 12.37 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.562e-05/48.88, allocations: 3.281 kB / 12.37 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00446/48.88, allocations: 0.6857 MB / 12.37 GB, free: 120.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2431/49.12, allocations: 78.66 MB / 12.45 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001729/49.12, allocations: 75.33 kB / 12.45 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02435/49.15, allocations: 14.61 MB / 12.46 GB, free: 100.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/49.15, allocations: 3.719 kB / 12.46 GB, free: 100.6 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03855/49.19, allocations: 22.08 MB / 12.48 GB, free: 99.77 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01139/49.2, allocations: 2.572 MB / 12.49 GB, free: 99.47 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005613/49.2, allocations: 5.031 kB / 12.49 GB, free: 99.47 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01358/49.22, allocations: 0.5988 MB / 12.49 GB, free: 99.39 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001864/49.22, allocations: 277.7 kB / 12.49 GB, free: 99.39 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009596/49.22, allocations: 198.2 kB / 12.49 GB, free: 99.39 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.01954/49.24, allocations: 8.655 MB / 12.5 GB, free: 99.03 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.04135/49.28, allocations: 5.595 MB / 12.5 GB, free: 99.03 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,heater.outCon.T) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (319): * Single equations (assignments): 299 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {40 60,6 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.00901/49.29, allocations: 4.748 MB / 12.51 GB, free: 96.88 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.06515/49.36, allocations: 29.2 MB / 12.53 GB, free: 96.09 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.927e-05/49.36, allocations: 1.719 kB / 12.53 GB, free: 96.09 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.01838/49.37, allocations: 7.933 MB / 12.54 GB, free: 95.86 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03356/49.41, allocations: 5.781 MB / 12.55 GB, free: 95.54 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05657/49.47, allocations: 19.41 MB / 12.57 GB, free: 91.73 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01927/49.48, allocations: 7.82 MB / 12.57 GB, free: 90.62 MB / 0.948 GB Notification: Performance of SimCode: time 1.472e-06/49.48, allocations: 0 / 12.57 GB, free: 90.62 MB / 0.948 GB Notification: Performance of Templates: time 1.736/51.22, allocations: 409.8 MB / 12.97 GB, free: 39.77 MB / 0.948 GB make -j1 -f IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5.makefile (rm -f IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5.sim & ./IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified5.pipe 2>&1)