Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.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.Simplified4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4") [: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.153/2.153, 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.001429/0.001429, allocations: 180.6 kB / 487 MB, free: 5.395 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.51/1.51, allocations: 221.3 MB / 0.7819 GB, free: 1.32 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.001064/0.001063, allocations: 97.8 kB / 0.9213 GB, free: 2.578 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.296e-06/8.316e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2677, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.103/1.371, allocations: 462.2 MB / 1.657 GB, free: 9.938 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/1.371, allocations: 95.41 kB / 1.657 GB, free: 9.891 MB / 1.089 GB Notification: Performance of FrontEnd: time 38.88/40.25, allocations: 10.55 GB / 12.21 GB, free: 112.3 MB / 1.464 GB Notification: Performance of Transformations before backend: time 0.002586/40.25, allocations: 393.4 kB / 12.21 GB, free: 112.2 MB / 1.464 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1775 * Number of variables: 1775 Notification: Performance of Generate backend data structure: time 0.04544/40.3, allocations: 13.14 MB / 12.22 GB, free: 107.2 MB / 1.464 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/40.3, allocations: 9.141 kB / 12.22 GB, free: 107.2 MB / 1.464 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01852/40.32, allocations: 2.651 MB / 12.22 GB, free: 106.4 MB / 1.464 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06799/40.39, allocations: 24.03 MB / 12.25 GB, free: 104.1 MB / 1.464 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005525/40.39, allocations: 227.1 kB / 12.25 GB, free: 104.1 MB / 1.464 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004108/40.39, allocations: 492.5 kB / 12.25 GB, free: 104.1 MB / 1.464 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02959/40.42, allocations: 18.64 MB / 12.27 GB, free: 104.1 MB / 1.464 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02778/40.45, allocations: 13.14 MB / 12.28 GB, free: 103.3 MB / 1.464 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001765/40.45, allocations: 11.66 kB / 12.28 GB, free: 103.3 MB / 1.464 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001293/40.45, allocations: 10.06 kB / 12.28 GB, free: 103.3 MB / 1.464 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/40.45, allocations: 185.2 kB / 12.28 GB, free: 103.3 MB / 1.464 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.118/40.57, allocations: 78.75 MB / 12.36 GB, free: 68.71 MB / 1.464 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01111/40.58, allocations: 8.417 MB / 12.37 GB, free: 68.64 MB / 1.464 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01104/40.59, allocations: 8.919 MB / 12.37 GB, free: 68.57 MB / 1.464 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05979/40.65, allocations: 32.78 MB / 12.41 GB, free: 59.64 MB / 1.464 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009484/40.66, allocations: 8.105 MB / 12.41 GB, free: 59.52 MB / 1.464 GB Notification: Performance of pre-optimization done (n=427): time 6.582e-06/40.66, allocations: 4 kB / 12.41 GB, free: 59.52 MB / 1.464 GB Notification: Performance of matching and sorting (n=429): time 0.08172/40.74, allocations: 38.42 MB / 12.45 GB, free: 56.36 MB / 1.464 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.958e-05/40.74, allocations: 98.12 kB / 12.45 GB, free: 56.29 MB / 1.464 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02925/40.77, allocations: 12.28 MB / 12.46 GB, free: 55.56 MB / 1.464 GB Notification: Performance of collectPreVariables (initialization): time 0.002987/40.77, allocations: 37.92 kB / 12.46 GB, free: 55.53 MB / 1.464 GB Notification: Performance of collectInitialEqns (initialization): time 0.005405/40.78, allocations: 3.479 MB / 12.47 GB, free: 53.97 MB / 1.464 GB Notification: Performance of collectInitialBindings (initialization): time 0.005221/40.78, allocations: 1.402 MB / 12.47 GB, free: 53.03 MB / 1.464 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002578/40.79, allocations: 0 / 12.47 GB, free: 53.03 MB / 1.464 GB Notification: Performance of setup shared object (initialization): time 0.0006089/40.79, allocations: 0.5671 MB / 12.47 GB, free: 52.71 MB / 1.464 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01134/40.8, allocations: 7.166 MB / 12.48 GB, free: 52.69 MB / 1.464 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01371/40.81, allocations: 9.783 MB / 12.49 GB, free: 49.54 MB / 1.464 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01639/40.83, allocations: 8.328 MB / 12.49 GB, free: 49.34 MB / 1.464 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001279/40.83, allocations: 17.78 kB / 12.49 GB, free: 49.34 MB / 1.464 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.05096/40.88, allocations: 23.66 MB / 12.52 GB, free: 48.34 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 0.005692/40.89, allocations: 34.69 MB / 12.55 GB, free: 12.15 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001875/40.89, allocations: 52.44 kB / 12.55 GB, free: 12.15 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525/42.41, allocations: 167.9 MB / 12.71 GB, free: 212.9 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01173/42.42, allocations: 1.505 MB / 12.72 GB, free: 212.9 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05467/42.48, allocations: 24.84 MB / 12.74 GB, free: 208.9 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0243/42.5, allocations: 0.8631 MB / 12.74 GB, free: 208.9 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005213/42.51, allocations: 0.7485 MB / 12.74 GB, free: 208.9 MB / 1.479 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/42.51, allocations: 4.031 kB / 12.74 GB, free: 208.9 MB / 1.479 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6081/43.12, allocations: 112.6 MB / 12.85 GB, free: 199.9 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002887/43.12, allocations: 51.88 kB / 12.85 GB, free: 199.9 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6675/43.78, allocations: 161.3 MB / 13.01 GB, free: 184.4 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009589/43.79, allocations: 1.489 MB / 13.01 GB, free: 184.4 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05277/43.85, allocations: 26.45 MB / 13.04 GB, free: 182.3 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02016/43.87, allocations: 0.8295 MB / 13.04 GB, free: 182.3 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004033/43.87, allocations: 0.7079 MB / 13.04 GB, free: 182.3 MB / 1.479 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 237 * 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 (661): * Single equations (assignments): 649 * 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: 0 * Non-linear torn systems: 2 {32 38,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.004458/43.88, allocations: 300.4 kB / 13.04 GB, free: 182.2 MB / 1.479 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005229/43.88, allocations: 1.238 MB / 13.04 GB, free: 182.2 MB / 1.479 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04618/43.93, allocations: 18.39 MB / 13.06 GB, free: 181.3 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.837e-05/43.93, allocations: 54.22 kB / 13.06 GB, free: 181.3 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/43.93, allocations: 2.078 kB / 13.06 GB, free: 181.3 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02235/43.95, allocations: 12.55 MB / 13.07 GB, free: 180.9 MB / 1.479 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2351/44.18, allocations: 65.94 MB / 13.13 GB, free: 150.2 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.018e-05/44.18, allocations: 4 kB / 13.13 GB, free: 150.2 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006045/44.19, allocations: 0.8338 MB / 13.14 GB, free: 149.6 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2176/44.41, allocations: 66.86 MB / 13.2 GB, free: 94.29 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002251/44.41, allocations: 86.2 kB / 13.2 GB, free: 94.25 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02626/44.44, allocations: 12.73 MB / 13.21 GB, free: 85.55 MB / 1.479 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.186e-05/44.44, allocations: 2.25 kB / 13.21 GB, free: 85.55 MB / 1.479 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 1.129/45.57, allocations: 58.51 MB / 13.27 GB, free: 202.3 MB / 1.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01191/45.58, allocations: 2.744 MB / 13.27 GB, free: 202.2 MB / 1.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007003/45.58, allocations: 0 / 13.27 GB, free: 202.2 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0159/45.6, allocations: 0.6852 MB / 13.27 GB, free: 202.2 MB / 1.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00226/45.6, allocations: 294.1 kB / 13.27 GB, free: 202.2 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001362/45.6, allocations: 225.9 kB / 13.27 GB, free: 202.2 MB / 1.479 GB Notification: Performance of sort global known variables: time 0.02242/45.63, allocations: 9.198 MB / 13.28 GB, free: 201.9 MB / 1.479 GB Notification: Performance of remove unused functions: time 0.0507/45.68, allocations: 6.166 MB / 13.29 GB, free: 201.9 MB / 1.479 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U) * 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 (372): * Single equations (assignments): 352 * 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: 0 * Non-linear torn systems: 2 {32 38,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.01002/45.69, allocations: 5.255 MB / 13.29 GB, free: 200 MB / 1.479 GB Notification: Performance of simCode: created initialization part: time 0.06203/45.75, allocations: 28.32 MB / 13.32 GB, free: 199.5 MB / 1.479 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-05/45.75, allocations: 5.406 kB / 13.32 GB, free: 199.5 MB / 1.479 GB Notification: Performance of simCode: created simulation system equations: time 0.01497/45.76, allocations: 7.432 MB / 13.33 GB, free: 199.4 MB / 1.479 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03857/45.8, allocations: 6.299 MB / 13.34 GB, free: 199.4 MB / 1.479 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07481/45.88, allocations: 21.03 MB / 13.36 GB, free: 195.3 MB / 1.479 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01797/45.9, allocations: 8.46 MB / 13.36 GB, free: 194.3 MB / 1.479 GB Notification: Performance of SimCode: time 2.014e-06/45.9, allocations: 1.688 kB / 13.36 GB, free: 194.3 MB / 1.479 GB Notification: Performance of Templates: time 0.7193/46.62, allocations: 428.3 MB / 13.78 GB, free: 86.19 MB / 1.479 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified4.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches