Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2.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.Simplified2,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.Simplified2") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified2,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.Simplified2") [: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.18/1.18, allocations: 249.4 MB / 256.7 MB, free: 7 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.0009778/0.0009777, allocations: 180.5 kB / 316 MB, free: 3.582 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.032/1.032, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0008124/0.0008124, allocations: 81.72 kB / 0.671 GB, free: 4.738 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.563e-06/6.583e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1387, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9152/1.054, allocations: 456.8 MB / 1.331 GB, free: 290 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/1.054, allocations: 97.89 kB / 1.331 GB, free: 290 MB / 0.8698 GB Notification: Performance of FrontEnd: time 23.97/25.03, allocations: 8.464 GB / 9.794 GB, free: 78.07 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.003255/25.03, allocations: 0.5132 MB / 9.795 GB, free: 77.91 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: 2061 * Number of variables: 2061 Notification: Performance of Generate backend data structure: time 0.04836/25.08, allocations: 15.04 MB / 9.81 GB, free: 71.47 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/25.08, allocations: 9.031 kB / 9.81 GB, free: 71.47 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01459/25.09, allocations: 2.355 MB / 9.812 GB, free: 70.43 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07137/25.16, allocations: 26.9 MB / 9.838 GB, free: 66.88 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005223/25.16, allocations: 267.3 kB / 9.838 GB, free: 66.87 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004604/25.17, allocations: 0.5776 MB / 9.839 GB, free: 66.87 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03917/25.21, allocations: 19.97 MB / 9.859 GB, free: 65.81 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03567/25.24, allocations: 15.56 MB / 9.874 GB, free: 53.85 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004843/25.24, allocations: 11.84 kB / 9.874 GB, free: 53.84 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0036/25.25, allocations: 23.66 kB / 9.874 GB, free: 53.82 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001682/25.25, allocations: 218.8 kB / 9.874 GB, free: 53.61 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.668/25.92, allocations: 83.09 MB / 9.955 GB, free: 130.9 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0131/25.93, allocations: 10.24 MB / 9.965 GB, free: 130.8 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01034/25.94, allocations: 9.377 MB / 9.974 GB, free: 130.7 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06686/26.01, allocations: 35.33 MB / 10.01 GB, free: 122.6 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01293/26.02, allocations: 9.058 MB / 10.02 GB, free: 122.4 MB / 1.135 GB Notification: Performance of pre-optimization done (n=584): time 1.072e-05/26.02, allocations: 0 / 10.02 GB, free: 122.4 MB / 1.135 GB Notification: Performance of matching and sorting (n=586): time 0.6441/26.66, allocations: 149.8 MB / 10.16 GB, free: 113.5 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005006/26.66, allocations: 2.507 MB / 10.17 GB, free: 110.5 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02753/26.69, allocations: 14.17 MB / 10.18 GB, free: 109.8 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.003351/26.69, allocations: 44.77 kB / 10.18 GB, free: 109.7 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.006459/26.7, allocations: 4.075 MB / 10.18 GB, free: 108.3 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.005574/26.71, allocations: 1.999 MB / 10.19 GB, free: 107.3 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001589/26.71, allocations: 0 / 10.19 GB, free: 107.3 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0005448/26.71, allocations: 0.6778 MB / 10.19 GB, free: 107 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01096/26.72, allocations: 8.67 MB / 10.2 GB, free: 106.9 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01386/26.73, allocations: 12.15 MB / 10.21 GB, free: 103 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01715/26.75, allocations: 10.18 MB / 10.22 GB, free: 102.8 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001005/26.75, allocations: 13.72 kB / 10.22 GB, free: 102.8 MB / 1.135 GB Notification: Performance of matching and sorting (n=1198) (initialization): time 0.5954/27.35, allocations: 134.8 MB / 10.35 GB, free: 67.67 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.004885/27.35, allocations: 36.48 MB / 10.38 GB, free: 30.2 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004188/27.35, allocations: 119.8 kB / 10.38 GB, free: 30.11 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158/28.51, allocations: 161.2 MB / 10.54 GB, free: 123 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01219/28.52, allocations: 2.079 MB / 10.54 GB, free: 123 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1261/28.65, allocations: 67.36 MB / 10.61 GB, free: 116 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01906/28.67, allocations: 0.8759 MB / 10.61 GB, free: 115.9 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004108/28.67, allocations: 0.8362 MB / 10.61 GB, free: 115.9 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/28.67, allocations: 5 kB / 10.61 GB, free: 115.9 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5895/29.26, allocations: 132.1 MB / 10.74 GB, free: 106.7 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005171/29.26, allocations: 117.7 kB / 10.74 GB, free: 106.7 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172/30.43, allocations: 161.2 MB / 10.9 GB, free: 126.4 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01017/30.44, allocations: 2.056 MB / 10.9 GB, free: 126.4 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1329/30.58, allocations: 68.38 MB / 10.97 GB, free: 122.6 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01868/30.6, allocations: 0.8412 MB / 10.97 GB, free: 122.5 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003445/30.6, allocations: 0.7934 MB / 10.97 GB, free: 122.5 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 231 * 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 (939): * Single equations (assignments): 861 * Array equations: 36 * Algorithm blocks: 1 * Record equations: 32 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {14 90} Notification: Performance of prepare postOptimizeDAE: time 0.003103/30.6, allocations: 352.3 kB / 10.97 GB, free: 122.4 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004067/30.61, allocations: 1.476 MB / 10.97 GB, free: 122.4 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1876/30.79, allocations: 57.71 MB / 11.03 GB, free: 114.9 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001364/30.79, allocations: 68.62 kB / 11.03 GB, free: 114.9 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.489e-05/30.79, allocations: 28.38 kB / 11.03 GB, free: 114.9 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1723/30.97, allocations: 51.62 MB / 11.08 GB, free: 107.8 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2098/31.18, allocations: 71 MB / 11.15 GB, free: 97.47 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.321e-05/31.18, allocations: 2.578 kB / 11.15 GB, free: 97.47 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006828/31.18, allocations: 1.105 MB / 11.15 GB, free: 96.63 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.748/31.93, allocations: 66.87 MB / 11.21 GB, free: 130.2 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002174/31.93, allocations: 165.6 kB / 11.21 GB, free: 130.2 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05025/31.98, allocations: 26.33 MB / 11.24 GB, free: 124.4 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.713e-06/31.98, allocations: 2.25 kB / 11.24 GB, free: 124.4 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1879/32.17, allocations: 62.38 MB / 11.3 GB, free: 120.5 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01045/32.18, allocations: 3.158 MB / 11.3 GB, free: 120.3 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005658/32.19, allocations: 83.06 kB / 11.3 GB, free: 120.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01409/32.2, allocations: 0.7429 MB / 11.3 GB, free: 120.3 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001941/32.2, allocations: 373.4 kB / 11.3 GB, free: 120.2 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001648/32.21, allocations: 254.9 kB / 11.3 GB, free: 120.2 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.02001/32.23, allocations: 10.65 MB / 11.31 GB, free: 119.8 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.04143/32.27, allocations: 7.661 MB / 11.32 GB, free: 119.8 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 74 (pmpSouth.vol.dynBal.U,pmpSouth.filter.x[1],pmpSouth.filter.x[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.x[1],pmpNorth.filter.x[2],valSouth1[1].filter.x[1],valSouth1[1].filter.x[2],valSouth1[2].filter.x[1],valSouth1[2].filter.x[2],valSouth1[3].filter.x[1],valSouth1[3].filter.x[2],valSouth1[4].filter.x[1],valSouth1[4].filter.x[2],valSouth2[1].filter.x[1],valSouth2[1].filter.x[2],valSouth2[2].filter.x[1],valSouth2[2].filter.x[2],valSouth2[3].filter.x[1],valSouth2[3].filter.x[2],valSouth2[4].filter.x[1],valSouth2[4].filter.x[2],valSouth2[5].filter.x[1],valSouth2[5].filter.x[2],valSouth2[6].filter.x[1],valSouth2[6].filter.x[2],valSouth2[7].filter.x[1],valSouth2[7].filter.x[2],valSouth2[8].filter.x[1],valSouth2[8].filter.x[2],valNorth1[1].filter.x[1],valNorth1[1].filter.x[2],valNorth1[2].filter.x[1],valNorth1[2].filter.x[2],valNorth1[3].filter.x[1],valNorth1[3].filter.x[2],valNorth1[4].filter.x[1],valNorth1[4].filter.x[2],valNorth2[1].filter.x[1],valNorth2[1].filter.x[2],valNorth2[2].filter.x[1],valNorth2[2].filter.x[2],valNorth2[3].filter.x[1],valNorth2[3].filter.x[2],valNorth2[4].filter.x[1],valNorth2[4].filter.x[2],valNorth2[5].filter.x[1],valNorth2[5].filter.x[2],valNorth2[6].filter.x[1],valNorth2[6].filter.x[2],valNorth2[7].filter.x[1],valNorth2[7].filter.x[2],valNorth2[8].filter.x[1],valNorth2[8].filter.x[2],valSouth.vol.dynBal.U,valSouth.filter.x[1],valSouth.filter.x[2],valNorth.vol.dynBal.U,valNorth.filter.x[1],valNorth.filter.x[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.x[1],pumpHea.filter.x[2],valHea.filter.x[1],valHea.filter.x[2],valCoo.filter.x[1],valCoo.filter.x[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.x[1],pumpCoo.filter.x[2]) * 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 (530): * Single equations (assignments): 508 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * 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: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {14 90} Notification: Performance of Backend phase and start with SimCode phase: time 0.008704/32.28, allocations: 5.295 MB / 11.33 GB, free: 117.6 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.06584/32.34, allocations: 35.53 MB / 11.36 GB, free: 114.6 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/32.34, allocations: 10.28 kB / 11.36 GB, free: 114.6 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.016/32.36, allocations: 8.65 MB / 11.37 GB, free: 114.3 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03675/32.39, allocations: 7.261 MB / 11.38 GB, free: 113.9 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05822/32.45, allocations: 27.34 MB / 11.4 GB, free: 108.4 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01411/32.47, allocations: 10.1 MB / 11.41 GB, free: 107.1 MB / 1.135 GB Notification: Performance of SimCode: time 8.72e-07/32.47, allocations: 0 / 11.41 GB, free: 107.1 MB / 1.135 GB Notification: Performance of Templates: time 1.545/34.01, allocations: 473.7 MB / 11.88 GB, free: 121.9 MB / 1.136 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified2.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches