Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.103/2.103, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001474/0.001474, allocations: 180.5 kB / 487 MB, free: 5.387 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 221.3 MB / 0.7819 GB, free: 1.457 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.0011, allocations: 96.06 kB / 0.9213 GB, free: 2.711 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.095e-06/8.436e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2973, allocations: 142.3 MB / 1.205 GB, free: 26.31 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.099/1.397, allocations: 461.8 MB / 1.656 GB, free: 9.949 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/1.397, allocations: 90.73 kB / 1.656 GB, free: 9.906 MB / 1.089 GB Notification: Performance of FrontEnd: time 35.23/36.63, allocations: 9.579 GB / 11.24 GB, free: 87.98 MB / 1.448 GB Notification: Performance of Transformations before backend: time 0.004992/36.63, allocations: 428.5 kB / 11.24 GB, free: 87.91 MB / 1.448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2029 * Number of variables: 2029 Notification: Performance of Generate backend data structure: time 0.0609/36.69, allocations: 14.39 MB / 11.25 GB, free: 82.27 MB / 1.448 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/36.69, allocations: 10.53 kB / 11.25 GB, free: 82.27 MB / 1.448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02013/36.71, allocations: 2.615 MB / 11.25 GB, free: 81.3 MB / 1.448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08229/36.8, allocations: 25.31 MB / 11.28 GB, free: 78.86 MB / 1.448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006476/36.8, allocations: 251.9 kB / 11.28 GB, free: 78.86 MB / 1.448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005758/36.8, allocations: 0.5807 MB / 11.28 GB, free: 78.85 MB / 1.448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0375/36.84, allocations: 19.92 MB / 11.3 GB, free: 78.81 MB / 1.448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0399/36.88, allocations: 14.61 MB / 11.31 GB, free: 78.05 MB / 1.448 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006627/36.88, allocations: 11.97 kB / 11.31 GB, free: 78.05 MB / 1.448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004574/36.89, allocations: 7.812 kB / 11.31 GB, free: 78.05 MB / 1.448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004339/36.89, allocations: 383.5 kB / 11.31 GB, free: 78.03 MB / 1.448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1799/37.07, allocations: 84.19 MB / 11.39 GB, free: 42.71 MB / 1.448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02062/37.09, allocations: 10.42 MB / 11.4 GB, free: 42.56 MB / 1.448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02033/37.11, allocations: 9.9 MB / 11.41 GB, free: 42.43 MB / 1.448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1007/37.21, allocations: 36.07 MB / 11.45 GB, free: 33.17 MB / 1.448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02198/37.23, allocations: 9.2 MB / 11.46 GB, free: 33.02 MB / 1.448 GB Notification: Performance of pre-optimization done (n=595): time 1.778e-05/37.23, allocations: 0 / 11.46 GB, free: 33.02 MB / 1.448 GB Notification: Performance of matching and sorting (n=597): time 1.77/39, allocations: 151.5 MB / 11.61 GB, free: 194.6 MB / 1.464 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/39, allocations: 120.9 kB / 11.61 GB, free: 194.5 MB / 1.464 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03576/39.04, allocations: 13.7 MB / 11.62 GB, free: 193.8 MB / 1.464 GB Notification: Performance of collectPreVariables (initialization): time 0.004695/39.04, allocations: 38.95 kB / 11.62 GB, free: 193.8 MB / 1.464 GB Notification: Performance of collectInitialEqns (initialization): time 0.008438/39.05, allocations: 3.706 MB / 11.62 GB, free: 193.6 MB / 1.464 GB Notification: Performance of collectInitialBindings (initialization): time 0.01217/39.06, allocations: 2.042 MB / 11.63 GB, free: 193.6 MB / 1.464 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004182/39.06, allocations: 0 / 11.63 GB, free: 193.6 MB / 1.464 GB Notification: Performance of setup shared object (initialization): time 0.001135/39.07, allocations: 0.6473 MB / 11.63 GB, free: 193.2 MB / 1.464 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01566/39.08, allocations: 8.254 MB / 11.63 GB, free: 193.2 MB / 1.464 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01915/39.1, allocations: 11 MB / 11.64 GB, free: 190.1 MB / 1.464 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02144/39.12, allocations: 9.634 MB / 11.65 GB, free: 190 MB / 1.464 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001793/39.12, allocations: 15.34 kB / 11.65 GB, free: 190 MB / 1.464 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.6305/39.75, allocations: 133.5 MB / 11.78 GB, free: 184.2 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 0.006811/39.76, allocations: 36.74 MB / 11.82 GB, free: 145.5 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002546/39.76, allocations: 53.16 kB / 11.82 GB, free: 145.5 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6637/40.42, allocations: 160.9 MB / 11.98 GB, free: 130 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01481/40.44, allocations: 2.537 MB / 11.98 GB, free: 130 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1324/40.57, allocations: 65.67 MB / 12.04 GB, free: 123.9 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02083/40.59, allocations: 0.9611 MB / 12.05 GB, free: 123.8 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003982/40.6, allocations: 0.8001 MB / 12.05 GB, free: 123.8 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/40.6, allocations: 10.09 kB / 12.05 GB, free: 123.8 MB / 1.464 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6098/41.21, allocations: 130.9 MB / 12.17 GB, free: 51.69 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002477/41.21, allocations: 52 kB / 12.17 GB, free: 51.64 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636/42.84, allocations: 161 MB / 12.33 GB, free: 173.9 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01464/42.86, allocations: 2.522 MB / 12.33 GB, free: 173.9 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1534/43.01, allocations: 67.31 MB / 12.4 GB, free: 170.1 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02082/43.03, allocations: 0.9336 MB / 12.4 GB, free: 170.1 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004066/43.03, allocations: 0.7626 MB / 12.4 GB, free: 170.1 MB / 1.464 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 (915): * Single equations (assignments): 903 * 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: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {5 80} Notification: Performance of prepare postOptimizeDAE: time 0.006064/43.04, allocations: 312 kB / 12.4 GB, free: 170 MB / 1.464 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006418/43.05, allocations: 1.396 MB / 12.4 GB, free: 170 MB / 1.464 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2051/43.25, allocations: 57.77 MB / 12.46 GB, free: 162.5 MB / 1.464 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001996/43.25, allocations: 75.33 kB / 12.46 GB, free: 162.5 MB / 1.464 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001725/43.25, allocations: 28.88 kB / 12.46 GB, free: 162.5 MB / 1.464 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1893/43.44, allocations: 51.7 MB / 12.51 GB, free: 155.3 MB / 1.464 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2629/43.71, allocations: 70.72 MB / 12.58 GB, free: 145.3 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.417e-05/43.71, allocations: 0 / 12.58 GB, free: 145.3 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009242/43.71, allocations: 1.168 MB / 12.58 GB, free: 145.3 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.216/43.93, allocations: 66.51 MB / 12.64 GB, free: 132 MB / 1.464 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002948/43.93, allocations: 162.1 kB / 12.64 GB, free: 132 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0674/44, allocations: 24.68 MB / 12.67 GB, free: 126.6 MB / 1.464 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-05/44, allocations: 4.781 kB / 12.67 GB, free: 126.6 MB / 1.464 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2229/44.22, allocations: 62.41 MB / 12.73 GB, free: 85.21 MB / 1.464 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01673/44.24, allocations: 3.248 MB / 12.73 GB, free: 83.27 MB / 1.464 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01017/44.25, allocations: 78.42 kB / 12.73 GB, free: 83.23 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02232/44.27, allocations: 0.7534 MB / 12.73 GB, free: 82.73 MB / 1.464 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003503/44.28, allocations: 377.3 kB / 12.73 GB, free: 82.55 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003105/44.28, allocations: 264.2 kB / 12.73 GB, free: 82.38 MB / 1.464 GB Notification: Performance of sort global known variables: time 0.03204/44.31, allocations: 10.3 MB / 12.74 GB, free: 76.77 MB / 1.464 GB Notification: Performance of remove unused functions: time 0.05792/44.37, allocations: 7.673 MB / 12.75 GB, free: 69.64 MB / 1.464 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.s[1],pmpSouth.filter.s[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.s[1],pmpNorth.filter.s[2],valSouth1[1].filter.s[1],valSouth1[1].filter.s[2],valSouth1[2].filter.s[1],valSouth1[2].filter.s[2],valSouth1[3].filter.s[1],valSouth1[3].filter.s[2],valSouth1[4].filter.s[1],valSouth1[4].filter.s[2],valSouth2[1].filter.s[1],valSouth2[1].filter.s[2],valSouth2[2].filter.s[1],valSouth2[2].filter.s[2],valSouth2[3].filter.s[1],valSouth2[3].filter.s[2],valSouth2[4].filter.s[1],valSouth2[4].filter.s[2],valSouth2[5].filter.s[1],valSouth2[5].filter.s[2],valSouth2[6].filter.s[1],valSouth2[6].filter.s[2],valSouth2[7].filter.s[1],valSouth2[7].filter.s[2],valSouth2[8].filter.s[1],valSouth2[8].filter.s[2],valNorth1[1].filter.s[1],valNorth1[1].filter.s[2],valNorth1[2].filter.s[1],valNorth1[2].filter.s[2],valNorth1[3].filter.s[1],valNorth1[3].filter.s[2],valNorth1[4].filter.s[1],valNorth1[4].filter.s[2],valNorth2[1].filter.s[1],valNorth2[1].filter.s[2],valNorth2[2].filter.s[1],valNorth2[2].filter.s[2],valNorth2[3].filter.s[1],valNorth2[3].filter.s[2],valNorth2[4].filter.s[1],valNorth2[4].filter.s[2],valNorth2[5].filter.s[1],valNorth2[5].filter.s[2],valNorth2[6].filter.s[1],valNorth2[6].filter.s[2],valNorth2[7].filter.s[1],valNorth2[7].filter.s[2],valNorth2[8].filter.s[1],valNorth2[8].filter.s[2],valSouth.vol.dynBal.U,valSouth.filter.s[1],valSouth.filter.s[2],valNorth.vol.dynBal.U,valNorth.filter.s[1],valNorth.filter.s[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.s[1],pumpHea.filter.s[2],valHea.filter.s[1],valHea.filter.s[2],valCoo.filter.s[1],valCoo.filter.s[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.s[1],pumpCoo.filter.s[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 (554): * Single equations (assignments): 534 * 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.01123/44.38, allocations: 5.228 MB / 12.76 GB, free: 65.17 MB / 1.464 GB Notification: Performance of simCode: created initialization part: time 0.0717/44.45, allocations: 32.55 MB / 12.79 GB, free: 47.78 MB / 1.464 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-05/44.45, allocations: 0 / 12.79 GB, free: 47.78 MB / 1.464 GB Notification: Performance of simCode: created simulation system equations: time 0.01884/44.47, allocations: 8.693 MB / 12.8 GB, free: 43.15 MB / 1.464 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03996/44.51, allocations: 6.707 MB / 12.8 GB, free: 39.38 MB / 1.464 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.882/46.39, allocations: 29.23 MB / 12.83 GB, free: 174.9 MB / 1.464 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03203/46.43, allocations: 9.63 MB / 12.84 GB, free: 173.9 MB / 1.464 GB Notification: Performance of SimCode: time 1.082e-06/46.43, allocations: 0 / 12.84 GB, free: 173.9 MB / 1.464 GB Notification: Performance of Templates: time 0.659/47.09, allocations: 456.8 MB / 13.29 GB, free: 101.1 MB / 1.464 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified3.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches