Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.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.Basic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic") translateModel(Buildings.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic") [: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.084/2.084, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001157/0.001157, allocations: 181.3 kB / 487 MB, free: 5.375 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.414/1.414, allocations: 221.3 MB / 0.7819 GB, free: 1.363 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.001006/0.001006, allocations: 105.1 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.883e-06/6.913e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2965, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.001/1.298, allocations: 461.4 MB / 1.656 GB, free: 10.62 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/1.298, allocations: 91.06 kB / 1.656 GB, free: 10.57 MB / 1.089 GB Notification: Performance of FrontEnd: time 22.51/23.81, allocations: 6.486 GB / 8.142 GB, free: 96.23 MB / 1.401 GB Notification: Performance of Transformations before backend: time 0.003457/23.81, allocations: 451.4 kB / 8.142 GB, free: 96.13 MB / 1.401 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.05341/23.87, allocations: 14.4 MB / 8.156 GB, free: 90.04 MB / 1.401 GB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/23.87, allocations: 11.25 kB / 8.156 GB, free: 90.04 MB / 1.401 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01806/23.89, allocations: 2.625 MB / 8.159 GB, free: 89.02 MB / 1.401 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07446/23.96, allocations: 25.39 MB / 8.184 GB, free: 85.66 MB / 1.401 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006298/23.96, allocations: 257.7 kB / 8.184 GB, free: 85.66 MB / 1.401 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005241/23.97, allocations: 0.5896 MB / 8.184 GB, free: 85.65 MB / 1.401 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03904/24.01, allocations: 20.2 MB / 8.204 GB, free: 85.61 MB / 1.401 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04528/24.05, allocations: 14.79 MB / 8.219 GB, free: 84.8 MB / 1.401 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006054/24.05, allocations: 9.906 kB / 8.219 GB, free: 84.79 MB / 1.401 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00485/24.06, allocations: 12.08 kB / 8.219 GB, free: 84.79 MB / 1.401 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000873/24.06, allocations: 388.4 kB / 8.219 GB, free: 84.76 MB / 1.401 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1732/24.23, allocations: 83.01 MB / 8.3 GB, free: 37.26 MB / 1.401 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01708/24.25, allocations: 11.12 MB / 8.311 GB, free: 27.47 MB / 1.401 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01482/24.26, allocations: 10.13 MB / 8.321 GB, free: 18.36 MB / 1.401 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09854/24.36, allocations: 36.88 MB / 8.357 GB, free: 4.148 MB / 1.417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.9137/25.28, allocations: 9.764 MB / 8.366 GB, free: 201.9 MB / 1.417 GB Notification: Performance of pre-optimization done (n=640): time 1.104e-05/25.28, allocations: 0 / 8.366 GB, free: 201.9 MB / 1.417 GB Notification: Performance of matching and sorting (n=642): time 0.6798/25.96, allocations: 152 MB / 8.515 GB, free: 194.7 MB / 1.417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/25.96, allocations: 124.5 kB / 8.515 GB, free: 194.6 MB / 1.417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02837/25.98, allocations: 13.66 MB / 8.528 GB, free: 193.9 MB / 1.417 GB Notification: Performance of collectPreVariables (initialization): time 0.00413/25.99, allocations: 38.36 kB / 8.528 GB, free: 193.9 MB / 1.417 GB Notification: Performance of collectInitialEqns (initialization): time 0.006701/25.99, allocations: 3.648 MB / 8.532 GB, free: 192.7 MB / 1.417 GB Notification: Performance of collectInitialBindings (initialization): time 0.01149/26.01, allocations: 2.19 MB / 8.534 GB, free: 191.6 MB / 1.417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004037/26.01, allocations: 0 / 8.534 GB, free: 191.6 MB / 1.417 GB Notification: Performance of setup shared object (initialization): time 0.0009122/26.01, allocations: 0.6456 MB / 8.535 GB, free: 191.2 MB / 1.417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0143/26.03, allocations: 8.477 MB / 8.543 GB, free: 191.2 MB / 1.417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01726/26.04, allocations: 11.28 MB / 8.554 GB, free: 188 MB / 1.417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01931/26.06, allocations: 9.869 MB / 8.563 GB, free: 187.8 MB / 1.417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000118/26.06, allocations: 10.5 kB / 8.563 GB, free: 187.8 MB / 1.417 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.6242/26.69, allocations: 134.8 MB / 8.695 GB, free: 177.6 MB / 1.417 GB Notification: Performance of prepare postOptimizeDAE: time 0.005997/26.69, allocations: 31.85 MB / 8.726 GB, free: 144.1 MB / 1.417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000226/26.69, allocations: 45.66 kB / 8.726 GB, free: 144.1 MB / 1.417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6646/27.36, allocations: 162.4 MB / 8.885 GB, free: 74.95 MB / 1.417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01486/27.37, allocations: 2.453 MB / 8.887 GB, free: 72.65 MB / 1.417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1314/27.5, allocations: 69.04 MB / 8.955 GB, free: 18.48 MB / 1.417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02509/27.53, allocations: 0.9433 MB / 8.956 GB, free: 17.57 MB / 1.417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005322/27.53, allocations: 0.7934 MB / 8.956 GB, free: 16.84 MB / 1.417 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/27.53, allocations: 4 kB / 8.956 GB, free: 16.84 MB / 1.417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.537/29.07, allocations: 131.7 MB / 9.085 GB, free: 180.1 MB / 1.417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002294/29.07, allocations: 46.69 kB / 9.085 GB, free: 180.1 MB / 1.417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6653/29.74, allocations: 162.2 MB / 9.243 GB, free: 164.6 MB / 1.417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01414/29.75, allocations: 2.413 MB / 9.246 GB, free: 164.6 MB / 1.417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1507/29.9, allocations: 72.48 MB / 9.317 GB, free: 160.7 MB / 1.417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02456/29.93, allocations: 0.9309 MB / 9.317 GB, free: 160.7 MB / 1.417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006189/29.93, allocations: 0.7462 MB / 9.318 GB, free: 160.7 MB / 1.417 GB 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 (859): * Single equations (assignments): 845 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * 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 {33 119} Notification: Performance of prepare postOptimizeDAE: time 0.007458/29.94, allocations: 310.2 kB / 9.318 GB, free: 160.6 MB / 1.417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007503/29.95, allocations: 1.407 MB / 9.32 GB, free: 160.6 MB / 1.417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2075/30.15, allocations: 59.04 MB / 9.377 GB, free: 153 MB / 1.417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002918/30.16, allocations: 76.86 kB / 9.378 GB, free: 153 MB / 1.417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001489/30.16, allocations: 32.09 kB / 9.378 GB, free: 153 MB / 1.417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1852/30.34, allocations: 52.82 MB / 9.429 GB, free: 119.4 MB / 1.417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2349/30.58, allocations: 73.18 MB / 9.501 GB, free: 69.93 MB / 1.417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.678e-05/30.58, allocations: 0 / 9.501 GB, free: 69.93 MB / 1.417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007649/30.58, allocations: 1.144 MB / 9.502 GB, free: 68.88 MB / 1.417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.029/31.61, allocations: 67.91 MB / 9.568 GB, free: 174.5 MB / 1.417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003025/31.62, allocations: 167.2 kB / 9.568 GB, free: 174.5 MB / 1.417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05815/31.67, allocations: 27.76 MB / 9.595 GB, free: 167.9 MB / 1.417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.618e-06/31.67, allocations: 5.203 kB / 9.595 GB, free: 167.9 MB / 1.417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2163/31.89, allocations: 63.93 MB / 9.658 GB, free: 160.3 MB / 1.417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01545/31.91, allocations: 3.329 MB / 9.661 GB, free: 159.9 MB / 1.417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008691/31.91, allocations: 76.5 kB / 9.661 GB, free: 159.9 MB / 1.417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02103/31.94, allocations: 0.8193 MB / 9.662 GB, free: 159.8 MB / 1.417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003564/31.94, allocations: 395.5 kB / 9.662 GB, free: 159.8 MB / 1.417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002435/31.94, allocations: 276.9 kB / 9.663 GB, free: 159.8 MB / 1.417 GB Notification: Performance of sort global known variables: time 0.03141/31.97, allocations: 10.28 MB / 9.673 GB, free: 159.3 MB / 1.417 GB Notification: Performance of remove unused functions: time 0.05381/32.03, allocations: 7.694 MB / 9.68 GB, free: 159.3 MB / 1.417 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 (538): * Single equations (assignments): 516 * 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 {33 119} Notification: Performance of Backend phase and start with SimCode phase: time 0.01045/32.04, allocations: 5.227 MB / 9.685 GB, free: 157.1 MB / 1.417 GB Notification: Performance of simCode: created initialization part: time 0.0773/32.11, allocations: 33.95 MB / 9.718 GB, free: 156 MB / 1.417 GB Notification: Performance of simCode: created event and clocks part: time 1.565e-05/32.11, allocations: 3.219 kB / 9.718 GB, free: 156 MB / 1.417 GB Notification: Performance of simCode: created simulation system equations: time 0.02129/32.14, allocations: 9.355 MB / 9.727 GB, free: 155.7 MB / 1.417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04356/32.18, allocations: 6.865 MB / 9.734 GB, free: 155.4 MB / 1.417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1001/32.28, allocations: 27.7 MB / 9.761 GB, free: 150 MB / 1.417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02635/32.31, allocations: 9.638 MB / 9.771 GB, free: 148.8 MB / 1.417 GB Notification: Performance of SimCode: time 2.304e-06/32.31, allocations: 0 / 9.771 GB, free: 148.8 MB / 1.417 GB Notification: Performance of Templates: time 2.333/34.64, allocations: 468.3 MB / 10.23 GB, free: 166.8 MB / 1.417 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Basic.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Basic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches