Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3.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.Simplified3,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.Simplified3") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified3,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.Simplified3") [: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.188/1.188, 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.0009656/0.0009656, allocations: 189.2 kB / 316 MB, free: 3.531 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.039/1.039, allocations: 205.2 MB / 0.5667 GB, free: 15.62 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.0008647/0.0008647, allocations: 94.19 kB / 0.671 GB, free: 4.738 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.661e-06/5.691e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1371, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9055/1.043, allocations: 456.9 MB / 1.331 GB, free: 289.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/1.043, allocations: 94.02 kB / 1.331 GB, free: 289.8 MB / 0.8698 GB Notification: Performance of FrontEnd: time 26/27.04, allocations: 9.229 GB / 10.56 GB, free: 61.62 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.003117/27.05, allocations: 0.5132 MB / 10.56 GB, free: 61.5 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.04189/27.09, allocations: 15.03 MB / 10.58 GB, free: 55.08 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/27.09, allocations: 7.781 kB / 10.58 GB, free: 55.08 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01215/27.1, allocations: 2.35 MB / 10.58 GB, free: 54.04 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06224/27.16, allocations: 26.89 MB / 10.6 GB, free: 50.5 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004063/27.16, allocations: 265.5 kB / 10.6 GB, free: 50.5 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003761/27.17, allocations: 0.5797 MB / 10.6 GB, free: 50.5 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0268/27.2, allocations: 19.9 MB / 10.62 GB, free: 50.45 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02739/27.22, allocations: 15.51 MB / 10.64 GB, free: 48.5 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001831/27.22, allocations: 10.97 kB / 10.64 GB, free: 48.5 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001322/27.22, allocations: 20.19 kB / 10.64 GB, free: 48.49 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002171/27.22, allocations: 224.7 kB / 10.64 GB, free: 48.48 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1227/27.35, allocations: 83.43 MB / 10.72 GB, free: 1.871 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5253/27.87, allocations: 10.43 MB / 10.73 GB, free: 145.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01071/27.88, allocations: 9.674 MB / 10.74 GB, free: 145.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05885/27.94, allocations: 35.13 MB / 10.78 GB, free: 137.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01064/27.95, allocations: 8.966 MB / 10.78 GB, free: 137 MB / 1.151 GB Notification: Performance of pre-optimization done (n=563): time 6.883e-06/27.95, allocations: 0 / 10.78 GB, free: 137 MB / 1.151 GB Notification: Performance of matching and sorting (n=565): time 0.6239/28.58, allocations: 149.3 MB / 10.93 GB, free: 128.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004762/28.58, allocations: 2.507 MB / 10.93 GB, free: 125.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02852/28.61, allocations: 14.19 MB / 10.95 GB, free: 124.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.003213/28.61, allocations: 42.55 kB / 10.95 GB, free: 124.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.006479/28.62, allocations: 4.087 MB / 10.95 GB, free: 123.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.00548/28.62, allocations: 1.934 MB / 10.95 GB, free: 122.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001684/28.62, allocations: 4 kB / 10.95 GB, free: 122.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0006053/28.62, allocations: 0.6801 MB / 10.95 GB, free: 121.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01158/28.64, allocations: 8.611 MB / 10.96 GB, free: 121.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01498/28.65, allocations: 12.07 MB / 10.97 GB, free: 117.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01772/28.67, allocations: 10.12 MB / 10.98 GB, free: 117.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/28.67, allocations: 18.22 kB / 10.98 GB, free: 117.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=1187) (initialization): time 0.5998/29.27, allocations: 134.5 MB / 11.11 GB, free: 93.23 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.005499/29.27, allocations: 38.06 MB / 11.15 GB, free: 54.14 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003995/29.27, allocations: 115.6 kB / 11.15 GB, free: 54.05 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166/30.44, allocations: 160.9 MB / 11.31 GB, free: 130 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01189/30.45, allocations: 2.083 MB / 11.31 GB, free: 130 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1305/30.58, allocations: 65.63 MB / 11.37 GB, free: 124.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01854/30.6, allocations: 0.8768 MB / 11.38 GB, free: 124.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004023/30.61, allocations: 0.8376 MB / 11.38 GB, free: 124.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/30.61, allocations: 4.25 kB / 11.38 GB, free: 124.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5911/31.2, allocations: 131.9 MB / 11.51 GB, free: 114.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004484/31.2, allocations: 120.9 kB / 11.51 GB, free: 114.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176/32.37, allocations: 161 MB / 11.66 GB, free: 133.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01018/32.38, allocations: 2.062 MB / 11.66 GB, free: 133.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1289/32.51, allocations: 67.29 MB / 11.73 GB, free: 131.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0175/32.53, allocations: 0.8434 MB / 11.73 GB, free: 131.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003366/32.53, allocations: 0.7988 MB / 11.73 GB, free: 131.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * 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 (947): * Single equations (assignments): 871 * Array equations: 36 * Algorithm blocks: 1 * Record equations: 32 * 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: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {5 80} Notification: Performance of prepare postOptimizeDAE: time 0.003295/32.54, allocations: 350.7 kB / 11.73 GB, free: 131.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003912/32.54, allocations: 1.467 MB / 11.73 GB, free: 131.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1867/32.73, allocations: 57.36 MB / 11.79 GB, free: 124.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001319/32.73, allocations: 68.53 kB / 11.79 GB, free: 124.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.386e-05/32.73, allocations: 30.03 kB / 11.79 GB, free: 124.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.171/32.9, allocations: 51.29 MB / 11.84 GB, free: 117 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2116/33.11, allocations: 69.79 MB / 11.91 GB, free: 107 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.629e-05/33.11, allocations: 3.719 kB / 11.91 GB, free: 107 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006796/33.12, allocations: 1.084 MB / 11.91 GB, free: 107 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1963/33.31, allocations: 66.52 MB / 11.97 GB, free: 80.08 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001975/33.32, allocations: 158.9 kB / 11.97 GB, free: 80 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05246/33.37, allocations: 24.66 MB / 12 GB, free: 64.19 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.822e-06/33.37, allocations: 8 kB / 12 GB, free: 64.18 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.7318/34.1, allocations: 62.07 MB / 12.06 GB, free: 128.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009623/34.11, allocations: 3.127 MB / 12.06 GB, free: 128 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004755/34.11, allocations: 83.59 kB / 12.06 GB, free: 128 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0118/34.13, allocations: 0.6928 MB / 12.06 GB, free: 128 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001008/34.13, allocations: 358.2 kB / 12.06 GB, free: 128 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007537/34.13, allocations: 243.8 kB / 12.06 GB, free: 128 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.01602/34.14, allocations: 10.65 MB / 12.07 GB, free: 127.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.04324/34.19, allocations: 7.641 MB / 12.08 GB, free: 127.6 MB / 1.151 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 (522): * Single equations (assignments): 502 * 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: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.00901/34.2, allocations: 5.295 MB / 12.09 GB, free: 125.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.05893/34.25, allocations: 35.14 MB / 12.12 GB, free: 123 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.54e-05/34.25, allocations: 8.469 kB / 12.12 GB, free: 123 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0138/34.27, allocations: 8.488 MB / 12.13 GB, free: 122.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03231/34.3, allocations: 7.122 MB / 12.14 GB, free: 122.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05972/34.36, allocations: 27.23 MB / 12.16 GB, free: 117.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01438/34.38, allocations: 10.08 MB / 12.17 GB, free: 116.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.012e-06/34.38, allocations: 0.5625 kB / 12.17 GB, free: 116.6 MB / 1.151 GB Notification: Performance of Templates: time 1.489/35.86, allocations: 468.8 MB / 12.63 GB, free: 120.8 MB / 1.151 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified3.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches