Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.195/1.195, allocations: 249.4 MB / 256.7 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009598/0.0009599, allocations: 181.2 kB / 316 MB, free: 3.551 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.048/1.048, allocations: 205.2 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007761/0.0007761, allocations: 82 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.262e-06/6.282e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1424, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9061/1.049, allocations: 458.2 MB / 1.332 GB, free: 288.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001767/1.049, allocations: 95.95 kB / 1.332 GB, free: 288.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 27.75/28.79, allocations: 9.986 GB / 11.32 GB, free: 77.9 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.001918/28.8, allocations: 349.6 kB / 11.32 GB, free: 77.83 MB / 1.135 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.03583/28.83, allocations: 12.12 MB / 11.33 GB, free: 72.78 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/28.83, allocations: 7.531 kB / 11.33 GB, free: 72.78 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01197/28.84, allocations: 2.319 MB / 11.33 GB, free: 71.93 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05269/28.9, allocations: 22.27 MB / 11.35 GB, free: 68.97 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003383/28.9, allocations: 194.5 kB / 11.35 GB, free: 68.97 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002793/28.9, allocations: 435.6 kB / 11.36 GB, free: 68.97 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02304/28.92, allocations: 18.04 MB / 11.37 GB, free: 68.93 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0187/28.94, allocations: 12.26 MB / 11.38 GB, free: 68.32 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/28.94, allocations: 9.438 kB / 11.38 GB, free: 68.31 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009842/28.94, allocations: 3.25 kB / 11.38 GB, free: 68.31 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.903e-05/28.94, allocations: 157.2 kB / 11.39 GB, free: 68.31 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1018/29.04, allocations: 73.5 MB / 11.46 GB, free: 27.87 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008905/29.05, allocations: 8.293 MB / 11.46 GB, free: 20.46 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009362/29.06, allocations: 8.823 MB / 11.47 GB, free: 12.52 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5972/29.66, allocations: 33.32 MB / 11.51 GB, free: 143.3 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008901/29.67, allocations: 8.029 MB / 11.51 GB, free: 143.2 MB / 1.135 GB Notification: Performance of pre-optimization done (n=393): time 6.772e-06/29.67, allocations: 0 / 11.51 GB, free: 143.2 MB / 1.135 GB Notification: Performance of matching and sorting (n=395): time 0.07207/29.74, allocations: 38.45 MB / 11.55 GB, free: 141.6 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/29.74, allocations: 97.89 kB / 11.55 GB, free: 141.6 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02306/29.76, allocations: 11.4 MB / 11.56 GB, free: 140.9 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.002734/29.77, allocations: 36.17 kB / 11.56 GB, free: 140.9 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.004168/29.77, allocations: 3.058 MB / 11.57 GB, free: 139.9 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.004129/29.78, allocations: 1.291 MB / 11.57 GB, free: 139.2 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002097/29.78, allocations: 0 / 11.57 GB, free: 139.2 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0004503/29.78, allocations: 0.5391 MB / 11.57 GB, free: 138.9 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009651/29.79, allocations: 7.107 MB / 11.57 GB, free: 138.9 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0106/29.8, allocations: 9.522 MB / 11.58 GB, free: 136 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01285/29.81, allocations: 8.195 MB / 11.59 GB, free: 135.9 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.055e-05/29.81, allocations: 15.28 kB / 11.59 GB, free: 135.9 MB / 1.135 GB Notification: Performance of matching and sorting (n=776) (initialization): time 0.04226/29.85, allocations: 23.85 MB / 11.62 GB, free: 135 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.004124/29.86, allocations: 29.46 MB / 11.64 GB, free: 104.4 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.599e-05/29.86, allocations: 46.28 kB / 11.64 GB, free: 104.4 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7463/30.6, allocations: 188.5 MB / 11.83 GB, free: 89.36 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007888/30.61, allocations: 1.268 MB / 11.83 GB, free: 89.35 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04376/30.66, allocations: 27.62 MB / 11.86 GB, free: 84.98 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01556/30.67, allocations: 0.752 MB / 11.86 GB, free: 84.88 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002797/30.67, allocations: 0.7299 MB / 11.86 GB, free: 84.88 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/30.67, allocations: 4.281 kB / 11.86 GB, free: 84.88 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03249/30.71, allocations: 21.73 MB / 11.88 GB, free: 74.38 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001379/30.71, allocations: 45.69 kB / 11.88 GB, free: 74.34 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233/31.94, allocations: 188.6 MB / 12.06 GB, free: 134.1 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006174/31.95, allocations: 1.256 MB / 12.06 GB, free: 134.1 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0499/32, allocations: 29.48 MB / 12.09 GB, free: 132 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01459/32.01, allocations: 0.7215 MB / 12.09 GB, free: 131.9 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002526/32.01, allocations: 0.6952 MB / 12.09 GB, free: 131.9 MB / 1.135 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.002657/32.02, allocations: 285.8 kB / 12.09 GB, free: 131.8 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003112/32.02, allocations: 1.142 MB / 12.1 GB, free: 131.8 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03448/32.05, allocations: 18.58 MB / 12.11 GB, free: 130.9 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.894e-05/32.05, allocations: 50.84 kB / 12.11 GB, free: 130.9 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/32.05, allocations: 2.031 kB / 12.11 GB, free: 130.9 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01745/32.07, allocations: 12.81 MB / 12.13 GB, free: 130.5 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09546/32.17, allocations: 42.65 MB / 12.17 GB, free: 124.6 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-05/32.17, allocations: 2.812 kB / 12.17 GB, free: 124.6 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003892/32.17, allocations: 0.6812 MB / 12.17 GB, free: 124.6 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2306/32.4, allocations: 78.66 MB / 12.25 GB, free: 109 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001305/32.4, allocations: 67.83 kB / 12.25 GB, free: 109 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02164/32.42, allocations: 14.61 MB / 12.26 GB, free: 104.7 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.085e-05/32.42, allocations: 6.062 kB / 12.26 GB, free: 104.7 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03099/32.45, allocations: 21.93 MB / 12.28 GB, free: 103.4 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007305/32.46, allocations: 2.519 MB / 12.28 GB, free: 102.6 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00249/32.46, allocations: 10.94 kB / 12.28 GB, free: 102.6 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008141/32.47, allocations: 0.5895 MB / 12.28 GB, free: 102.5 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008135/32.47, allocations: 277.2 kB / 12.28 GB, free: 102.5 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006242/32.47, allocations: 204.2 kB / 12.28 GB, free: 102.5 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.01176/32.49, allocations: 8.535 MB / 12.29 GB, free: 102.2 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.02853/32.51, allocations: 5.51 MB / 12.3 GB, free: 102.2 MB / 1.135 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.006172/32.52, allocations: 4.723 MB / 12.3 GB, free: 98.14 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.05385/32.57, allocations: 29.1 MB / 12.33 GB, free: 82.61 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/32.57, allocations: 4 kB / 12.33 GB, free: 82.6 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.01406/32.59, allocations: 7.904 MB / 12.34 GB, free: 78.29 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02808/32.62, allocations: 5.838 MB / 12.35 GB, free: 74.98 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04011/32.66, allocations: 19.22 MB / 12.36 GB, free: 60.43 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00949/32.67, allocations: 7.754 MB / 12.37 GB, free: 55.49 MB / 1.135 GB Notification: Performance of SimCode: time 1.172e-06/32.67, allocations: 0 / 12.37 GB, free: 55.49 MB / 1.135 GB Notification: Performance of Templates: time 1.38/34.05, allocations: 409.1 MB / 12.77 GB, free: 64.16 MB / 1.136 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified5.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches