Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1.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.Simplified1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1") [: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.189/2.189, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.001426/0.001426, allocations: 177.3 kB / 487 MB, free: 5.363 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.484/1.484, allocations: 221.3 MB / 0.7819 GB, free: 1.426 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.001018/0.001018, allocations: 93.94 kB / 0.9213 GB, free: 2.688 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.975e-06/8.015e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.273, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.1/1.373, allocations: 461.5 MB / 1.656 GB, free: 10.53 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/1.374, allocations: 91.56 kB / 1.656 GB, free: 10.49 MB / 1.089 GB Notification: Performance of FrontEnd: time 31.7/33.07, allocations: 8.771 GB / 10.43 GB, free: 100.6 MB / 1.432 GB Notification: Performance of Transformations before backend: time 0.004951/33.08, allocations: 430.7 kB / 10.43 GB, free: 100.5 MB / 1.432 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.06232/33.14, allocations: 14.4 MB / 10.44 GB, free: 91.46 MB / 1.432 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/33.14, allocations: 8.031 kB / 10.44 GB, free: 91.45 MB / 1.432 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01832/33.16, allocations: 2.62 MB / 10.44 GB, free: 89 MB / 1.432 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07294/33.23, allocations: 25.32 MB / 10.47 GB, free: 63.6 MB / 1.432 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005646/33.23, allocations: 257.3 kB / 10.47 GB, free: 63.35 MB / 1.432 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005489/33.24, allocations: 0.5889 MB / 10.47 GB, free: 62.77 MB / 1.432 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03324/33.27, allocations: 19.97 MB / 10.49 GB, free: 42.79 MB / 1.432 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03795/33.31, allocations: 14.65 MB / 10.5 GB, free: 27.92 MB / 1.432 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002797/33.31, allocations: 11.94 kB / 10.5 GB, free: 27.91 MB / 1.432 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002738/33.31, allocations: 8 kB / 10.5 GB, free: 27.9 MB / 1.432 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002772/33.31, allocations: 383.2 kB / 10.5 GB, free: 27.52 MB / 1.432 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9734/34.29, allocations: 83.85 MB / 10.59 GB, free: 205.8 MB / 1.448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01808/34.3, allocations: 10.58 MB / 10.6 GB, free: 205.6 MB / 1.448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01441/34.32, allocations: 9.599 MB / 10.61 GB, free: 205.6 MB / 1.448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09379/34.41, allocations: 36.27 MB / 10.64 GB, free: 197.4 MB / 1.448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01926/34.43, allocations: 9.296 MB / 10.65 GB, free: 197.2 MB / 1.448 GB Notification: Performance of pre-optimization done (n=616): time 1.361e-05/34.43, allocations: 0 / 10.65 GB, free: 197.2 MB / 1.448 GB Notification: Performance of matching and sorting (n=618): time 0.6913/35.12, allocations: 150.4 MB / 10.8 GB, free: 188.2 MB / 1.448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.18e-05/35.12, allocations: 118.1 kB / 10.8 GB, free: 188.1 MB / 1.448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03491/35.16, allocations: 13.69 MB / 10.81 GB, free: 187.4 MB / 1.448 GB Notification: Performance of collectPreVariables (initialization): time 0.00464/35.16, allocations: 40.8 kB / 10.81 GB, free: 187.3 MB / 1.448 GB Notification: Performance of collectInitialEqns (initialization): time 0.008693/35.17, allocations: 3.684 MB / 10.81 GB, free: 186.1 MB / 1.448 GB Notification: Performance of collectInitialBindings (initialization): time 0.01268/35.18, allocations: 2.108 MB / 10.82 GB, free: 185 MB / 1.448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003811/35.19, allocations: 0 / 10.82 GB, free: 185 MB / 1.448 GB Notification: Performance of setup shared object (initialization): time 0.0009433/35.19, allocations: 0.6431 MB / 10.82 GB, free: 184.7 MB / 1.448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01489/35.2, allocations: 8.31 MB / 10.82 GB, free: 184.7 MB / 1.448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01922/35.22, allocations: 11.07 MB / 10.84 GB, free: 181.5 MB / 1.448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02094/35.24, allocations: 9.706 MB / 10.85 GB, free: 181.3 MB / 1.448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001801/35.24, allocations: 19.06 kB / 10.85 GB, free: 181.3 MB / 1.448 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.6689/35.91, allocations: 133.8 MB / 10.98 GB, free: 171.1 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 0.008129/35.92, allocations: 35.21 MB / 11.01 GB, free: 134 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003486/35.92, allocations: 51.34 kB / 11.01 GB, free: 134 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6997/36.62, allocations: 161.4 MB / 11.17 GB, free: 25.21 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01592/36.64, allocations: 2.547 MB / 11.17 GB, free: 22.84 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089/37.73, allocations: 67.57 MB / 11.24 GB, free: 209.6 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0229/37.75, allocations: 0.9589 MB / 11.24 GB, free: 209.6 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004898/37.75, allocations: 0.7987 MB / 11.24 GB, free: 209.6 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/37.75, allocations: 4.594 kB / 11.24 GB, free: 209.6 MB / 1.448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6165/38.37, allocations: 131.2 MB / 11.37 GB, free: 203.7 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002563/38.37, allocations: 51.31 kB / 11.37 GB, free: 203.7 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.663/39.03, allocations: 161.2 MB / 11.52 GB, free: 188.2 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01365/39.05, allocations: 2.511 MB / 11.53 GB, free: 188.2 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1587/39.21, allocations: 68.51 MB / 11.59 GB, free: 184.4 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02561/39.23, allocations: 0.9332 MB / 11.59 GB, free: 184.3 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00472/39.24, allocations: 0.7537 MB / 11.59 GB, free: 184.3 MB / 1.448 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 (907): * Single equations (assignments): 893 * 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 {39 65} Notification: Performance of prepare postOptimizeDAE: time 0.007076/39.24, allocations: 311.2 kB / 11.59 GB, free: 184.2 MB / 1.448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006959/39.25, allocations: 1.403 MB / 11.6 GB, free: 184.2 MB / 1.448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2091/39.46, allocations: 58.16 MB / 11.65 GB, free: 155.6 MB / 1.448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001651/39.46, allocations: 75.02 kB / 11.65 GB, free: 155.6 MB / 1.448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001193/39.46, allocations: 32 kB / 11.65 GB, free: 155.5 MB / 1.448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1829/39.64, allocations: 52.05 MB / 11.7 GB, free: 116.1 MB / 1.448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2309/39.87, allocations: 71.93 MB / 11.77 GB, free: 56.84 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-05/39.87, allocations: 0 / 11.77 GB, free: 56.84 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008457/39.88, allocations: 1.195 MB / 11.78 GB, free: 55.74 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.221/41.1, allocations: 67.04 MB / 11.84 GB, free: 192 MB / 1.448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002329/41.11, allocations: 164.9 kB / 11.84 GB, free: 192 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05691/41.16, allocations: 26.46 MB / 11.87 GB, free: 185.4 MB / 1.448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/41.16, allocations: 0 / 11.87 GB, free: 185.4 MB / 1.448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2086/41.37, allocations: 62.88 MB / 11.93 GB, free: 177.8 MB / 1.448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0142/41.39, allocations: 3.27 MB / 11.93 GB, free: 177.7 MB / 1.448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008441/41.39, allocations: 82.41 kB / 11.93 GB, free: 177.7 MB / 1.448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01798/41.41, allocations: 0.8088 MB / 11.93 GB, free: 177.6 MB / 1.448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002648/41.42, allocations: 389.9 kB / 11.93 GB, free: 177.6 MB / 1.448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002356/41.42, allocations: 269.2 kB / 11.93 GB, free: 177.6 MB / 1.448 GB Notification: Performance of sort global known variables: time 0.02353/41.44, allocations: 10.3 MB / 11.94 GB, free: 177.2 MB / 1.448 GB Notification: Performance of remove unused functions: time 0.05564/41.5, allocations: 7.695 MB / 11.95 GB, free: 177.2 MB / 1.448 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 (562): * Single equations (assignments): 540 * 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 {39 65} Notification: Performance of Backend phase and start with SimCode phase: time 0.01289/41.51, allocations: 5.229 MB / 11.96 GB, free: 174.9 MB / 1.448 GB Notification: Performance of simCode: created initialization part: time 0.08038/41.59, allocations: 33.37 MB / 11.99 GB, free: 173.9 MB / 1.448 GB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/41.59, allocations: 0 / 11.99 GB, free: 173.9 MB / 1.448 GB Notification: Performance of simCode: created simulation system equations: time 0.02145/41.61, allocations: 9.084 MB / 12 GB, free: 173.6 MB / 1.448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04381/41.66, allocations: 6.85 MB / 12 GB, free: 173.3 MB / 1.448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1158/41.77, allocations: 27.62 MB / 12.03 GB, free: 167.9 MB / 1.448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02949/41.8, allocations: 9.646 MB / 12.04 GB, free: 166.7 MB / 1.448 GB Notification: Performance of SimCode: time 2.696e-06/41.8, allocations: 0 / 12.04 GB, free: 166.7 MB / 1.448 GB Notification: Performance of Templates: time 2.558/44.36, allocations: 460.7 MB / 12.49 GB, free: 190.3 MB / 1.448 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified1.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches