Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5") translateModel(BuildingSystems.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7373/0.7373, allocations: 141.8 MB / 149.1 MB, free: 4.578 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 181.3 kB / 181.9 MB, free: 220 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 221.3 MB / 436 MB, free: 9.336 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 91.97 kB / 0.507 GB, free: 24.25 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001869/0.001869, allocations: 276.8 kB / 0.5884 GB, free: 12.37 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.089e-05/1.091e-05, allocations: 3.938 kB / 0.6759 GB, free: 2.73 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4987/0.4987, allocations: 82.75 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7963/1.295, allocations: 422.4 MB / 1.169 GB, free: 9.168 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/1.295, allocations: 98.44 kB / 1.169 GB, free: 9.121 MB / 0.6982 GB Notification: Performance of FrontEnd: time 42.78/44.07, allocations: 10.47 GB / 11.64 GB, free: 67.96 MB / 0.9482 GB Notification: Performance of Transformations before backend: time 0.003319/44.08, allocations: 360.6 kB / 11.64 GB, free: 67.84 MB / 0.9482 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.04725/44.12, allocations: 12.13 MB / 11.65 GB, free: 61.64 MB / 0.9482 GB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/44.12, allocations: 12.84 kB / 11.65 GB, free: 61.64 MB / 0.9482 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01639/44.14, allocations: 2.33 MB / 11.65 GB, free: 60.77 MB / 0.9482 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0707/44.21, allocations: 22.36 MB / 11.68 GB, free: 44.05 MB / 0.9482 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005262/44.21, allocations: 196 kB / 11.68 GB, free: 43.86 MB / 0.9482 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004413/44.22, allocations: 432 kB / 11.68 GB, free: 43.43 MB / 0.9482 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02948/44.25, allocations: 18.12 MB / 11.69 GB, free: 26.38 MB / 0.9482 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03189/44.28, allocations: 12.3 MB / 11.71 GB, free: 13.91 MB / 0.9482 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004315/44.28, allocations: 11.84 kB / 11.71 GB, free: 13.89 MB / 0.9482 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003546/44.28, allocations: 11.94 kB / 11.71 GB, free: 13.88 MB / 0.9482 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/44.28, allocations: 156 kB / 11.71 GB, free: 13.73 MB / 0.9482 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8092/45.09, allocations: 73.69 MB / 11.78 GB, free: 89.86 MB / 0.9482 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01122/45.1, allocations: 8.357 MB / 11.79 GB, free: 89.79 MB / 0.9482 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01119/45.11, allocations: 8.867 MB / 11.79 GB, free: 89.71 MB / 0.9482 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06989/45.18, allocations: 31.87 MB / 11.83 GB, free: 81.91 MB / 0.9482 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01445/45.2, allocations: 8.076 MB / 11.83 GB, free: 81.8 MB / 0.9482 GB Notification: Performance of pre-optimization done (n=393): time 1.169e-05/45.2, allocations: 0 / 11.83 GB, free: 81.8 MB / 0.9482 GB Notification: Performance of matching and sorting (n=395): time 0.1094/45.31, allocations: 38.62 MB / 11.87 GB, free: 79.11 MB / 0.9482 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.122e-05/45.31, allocations: 94.17 kB / 11.87 GB, free: 79.05 MB / 0.9482 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03477/45.34, allocations: 11.52 MB / 11.88 GB, free: 78.39 MB / 0.9482 GB Notification: Performance of collectPreVariables (initialization): time 0.003695/45.35, allocations: 43.78 kB / 11.88 GB, free: 78.36 MB / 0.9482 GB Notification: Performance of collectInitialEqns (initialization): time 0.007002/45.35, allocations: 3.056 MB / 11.89 GB, free: 77.36 MB / 0.9482 GB Notification: Performance of collectInitialBindings (initialization): time 0.006029/45.36, allocations: 1.291 MB / 11.89 GB, free: 76.69 MB / 0.9482 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003323/45.36, allocations: 0 / 11.89 GB, free: 76.69 MB / 0.9482 GB Notification: Performance of setup shared object (initialization): time 0.0007319/45.36, allocations: 0.5398 MB / 11.89 GB, free: 76.37 MB / 0.9482 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01313/45.38, allocations: 7.138 MB / 11.89 GB, free: 76.35 MB / 0.9482 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0156/45.39, allocations: 9.554 MB / 11.9 GB, free: 73.5 MB / 0.9482 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0179/45.41, allocations: 8.236 MB / 11.91 GB, free: 73.38 MB / 0.9482 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001485/45.41, allocations: 16.66 kB / 11.91 GB, free: 73.38 MB / 0.9482 GB Notification: Performance of matching and sorting (n=776) (initialization): time 0.06501/45.48, allocations: 23.93 MB / 11.94 GB, free: 72.5 MB / 0.9482 GB Notification: Performance of prepare postOptimizeDAE: time 0.007394/45.48, allocations: 29.47 MB / 11.96 GB, free: 41.86 MB / 0.9482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002823/45.48, allocations: 44.84 kB / 11.96 GB, free: 41.86 MB / 0.9482 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527/47.01, allocations: 193.3 MB / 12.15 GB, free: 113.8 MB / 0.9482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009384/47.02, allocations: 1.262 MB / 12.15 GB, free: 113.8 MB / 0.9482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05295/47.07, allocations: 27.63 MB / 12.18 GB, free: 109.8 MB / 0.9482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.021/47.09, allocations: 0.758 MB / 12.18 GB, free: 109.8 MB / 0.9482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003996/47.1, allocations: 0.7306 MB / 12.18 GB, free: 109.8 MB / 0.9482 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/47.1, allocations: 4.719 kB / 12.18 GB, free: 109.8 MB / 0.9482 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04707/47.15, allocations: 21.79 MB / 12.2 GB, free: 109.7 MB / 0.9482 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003033/47.15, allocations: 50 kB / 12.2 GB, free: 109.7 MB / 0.9482 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7804/47.93, allocations: 188.6 MB / 12.39 GB, free: 83.91 MB / 0.9482 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00696/47.93, allocations: 1.243 MB / 12.39 GB, free: 82.99 MB / 0.9482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05927/47.99, allocations: 29.5 MB / 12.42 GB, free: 67.16 MB / 0.9482 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0184/48.01, allocations: 0.7342 MB / 12.42 GB, free: 66.69 MB / 0.9482 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003214/48.01, allocations: 0.6904 MB / 12.42 GB, free: 66.3 MB / 0.9482 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.003563/48.02, allocations: 278.2 kB / 12.42 GB, free: 66.14 MB / 0.9482 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005164/48.02, allocations: 1.149 MB / 12.42 GB, free: 65.62 MB / 0.9482 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04601/48.07, allocations: 18.7 MB / 12.44 GB, free: 56.63 MB / 0.9482 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-05/48.07, allocations: 56.94 kB / 12.44 GB, free: 56.58 MB / 0.9482 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.796e-05/48.07, allocations: 0 / 12.44 GB, free: 56.58 MB / 0.9482 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02455/48.09, allocations: 12.9 MB / 12.45 GB, free: 50.26 MB / 0.9482 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7895/48.88, allocations: 42.84 MB / 12.49 GB, free: 110.4 MB / 0.9482 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.952e-05/48.88, allocations: 6.969 kB / 12.49 GB, free: 110.4 MB / 0.9482 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004442/48.89, allocations: 0.6845 MB / 12.49 GB, free: 110.4 MB / 0.9482 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2445/49.13, allocations: 78.66 MB / 12.57 GB, free: 94.98 MB / 0.9482 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001928/49.13, allocations: 73.95 kB / 12.57 GB, free: 94.98 MB / 0.9482 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02511/49.16, allocations: 14.61 MB / 12.59 GB, free: 90.71 MB / 0.9482 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/49.16, allocations: 2.344 kB / 12.59 GB, free: 90.71 MB / 0.9482 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04049/49.2, allocations: 22.09 MB / 12.61 GB, free: 89.81 MB / 0.9482 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01388/49.21, allocations: 2.568 MB / 12.61 GB, free: 89.32 MB / 0.9482 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006364/49.22, allocations: 4.484 kB / 12.61 GB, free: 89.32 MB / 0.9482 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0149/49.24, allocations: 0.5943 MB / 12.61 GB, free: 89.25 MB / 0.9482 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002098/49.24, allocations: 285.9 kB / 12.61 GB, free: 89.24 MB / 0.9482 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001745/49.24, allocations: 198.9 kB / 12.61 GB, free: 89.24 MB / 0.9482 GB Notification: Performance of sort global known variables: time 0.02237/49.26, allocations: 8.635 MB / 12.62 GB, free: 88.88 MB / 0.9482 GB Notification: Performance of remove unused functions: time 0.0439/49.31, allocations: 5.597 MB / 12.62 GB, free: 88.88 MB / 0.9482 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.0107/49.32, allocations: 4.753 MB / 12.63 GB, free: 86.73 MB / 0.9482 GB Notification: Performance of simCode: created initialization part: time 0.07363/49.39, allocations: 29.2 MB / 12.66 GB, free: 85.93 MB / 0.9482 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/49.39, allocations: 0 / 12.66 GB, free: 85.93 MB / 0.9482 GB Notification: Performance of simCode: created simulation system equations: time 0.01854/49.41, allocations: 7.936 MB / 12.67 GB, free: 85.71 MB / 0.9482 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03689/49.45, allocations: 5.781 MB / 12.67 GB, free: 85.4 MB / 0.9482 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0703/49.52, allocations: 19.37 MB / 12.69 GB, free: 81.6 MB / 0.9482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0137/49.53, allocations: 7.803 MB / 12.7 GB, free: 80.49 MB / 0.9482 GB Notification: Performance of SimCode: time 1.382e-06/49.53, allocations: 0 / 12.7 GB, free: 80.49 MB / 0.9482 GB Notification: Performance of Templates: time 1.385/50.92, allocations: 409.8 MB / 13.1 GB, free: 17.89 MB / 0.9482 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.sim & ./BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Examples.FlowSystem.Simplified5.pipe 2>&1)