Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.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.Simplified4,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.Simplified4") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified4,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.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 7.0.3-maint.7.0.x/package.mo): time 1.185/1.185, allocations: 249.4 MB / 256.7 MB, free: 6.961 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.0009512/0.0009512, allocations: 180.9 kB / 316 MB, free: 3.535 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.024/1.024, allocations: 205.1 MB / 0.5667 GB, free: 15.68 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.0008306/0.0008306, allocations: 81.64 kB / 0.671 GB, free: 4.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.47e-06/5.49e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.139, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8973/1.036, allocations: 457.5 MB / 1.331 GB, free: 289.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/1.037, allocations: 99.12 kB / 1.331 GB, free: 289.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 28.71/29.75, allocations: 10.05 GB / 11.38 GB, free: 82.18 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.002557/29.75, allocations: 382.8 kB / 11.38 GB, free: 82.1 MB / 1.151 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.04165/29.79, allocations: 13.07 MB / 11.39 GB, free: 76.41 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/29.79, allocations: 9.219 kB / 11.39 GB, free: 76.41 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01284/29.8, allocations: 2.248 MB / 11.39 GB, free: 75.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05823/29.86, allocations: 23.67 MB / 11.42 GB, free: 72.36 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004045/29.86, allocations: 229.5 kB / 11.42 GB, free: 72.36 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003283/29.86, allocations: 498.4 kB / 11.42 GB, free: 72.35 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02905/29.89, allocations: 18.53 MB / 11.44 GB, free: 72.31 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02687/29.92, allocations: 13.02 MB / 11.45 GB, free: 71.51 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001657/29.92, allocations: 12.91 kB / 11.45 GB, free: 71.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001175/29.92, allocations: 8.062 kB / 11.45 GB, free: 71.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000196/29.92, allocations: 185.9 kB / 11.45 GB, free: 71.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1102/30.03, allocations: 78.25 MB / 11.53 GB, free: 11.27 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009705/30.04, allocations: 8.328 MB / 11.53 GB, free: 3.816 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01413/30.06, allocations: 9.134 MB / 11.54 GB, free: 12.55 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5842/30.64, allocations: 32.63 MB / 11.58 GB, free: 161.6 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01128/30.65, allocations: 7.998 MB / 11.58 GB, free: 161.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=427): time 6.663e-06/30.65, allocations: 0 / 11.58 GB, free: 161.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=429): time 0.07908/30.73, allocations: 38.17 MB / 11.62 GB, free: 159.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/30.73, allocations: 98.56 kB / 11.62 GB, free: 159.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02099/30.75, allocations: 12.1 MB / 11.63 GB, free: 159.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.002508/30.75, allocations: 39.61 kB / 11.63 GB, free: 159.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.003902/30.76, allocations: 3.459 MB / 11.64 GB, free: 157.9 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.003986/30.76, allocations: 1.411 MB / 11.64 GB, free: 157.2 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008706/30.76, allocations: 0 / 11.64 GB, free: 157.2 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0002999/30.76, allocations: 0.5656 MB / 11.64 GB, free: 156.9 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007981/30.77, allocations: 7.12 MB / 11.64 GB, free: 156.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009617/30.78, allocations: 9.728 MB / 11.65 GB, free: 153.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01276/30.79, allocations: 8.286 MB / 11.66 GB, free: 153.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.093e-05/30.79, allocations: 16.5 kB / 11.66 GB, free: 153.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.03973/30.83, allocations: 23.55 MB / 11.69 GB, free: 152.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.004806/30.84, allocations: 34.57 MB / 11.72 GB, free: 116.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/30.84, allocations: 52.22 kB / 11.72 GB, free: 116.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6423/31.48, allocations: 161.3 MB / 11.88 GB, free: 103.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009083/31.49, allocations: 1.483 MB / 11.88 GB, free: 103.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0381/31.53, allocations: 24.83 MB / 11.9 GB, free: 99.41 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01741/31.55, allocations: 0.8304 MB / 11.9 GB, free: 99.31 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003593/31.55, allocations: 0.7437 MB / 11.9 GB, free: 99.31 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/31.55, allocations: 3.188 kB / 11.9 GB, free: 99.31 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.549/32.1, allocations: 112.5 MB / 12.01 GB, free: 44.19 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001842/32.1, allocations: 52 kB / 12.01 GB, free: 44.14 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138/33.24, allocations: 161.4 MB / 12.17 GB, free: 150 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006975/33.24, allocations: 1.449 MB / 12.17 GB, free: 150 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04319/33.29, allocations: 26.46 MB / 12.2 GB, free: 147.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01535/33.3, allocations: 0.7915 MB / 12.2 GB, free: 147.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002152/33.3, allocations: 0.7016 MB / 12.2 GB, free: 147.9 MB / 1.167 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.002286/33.31, allocations: 298 kB / 12.2 GB, free: 147.8 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003061/33.31, allocations: 1.22 MB / 12.2 GB, free: 147.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03426/33.34, allocations: 18.23 MB / 12.22 GB, free: 146.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.182e-05/33.34, allocations: 53 kB / 12.22 GB, free: 146.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/33.34, allocations: 6.906 kB / 12.22 GB, free: 146.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02096/33.37, allocations: 12.43 MB / 12.23 GB, free: 146.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1911/33.56, allocations: 65.63 MB / 12.3 GB, free: 136.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.918e-05/33.56, allocations: 0 / 12.3 GB, free: 136.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004728/33.56, allocations: 0.7912 MB / 12.3 GB, free: 136.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1951/33.76, allocations: 66.86 MB / 12.36 GB, free: 123.3 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001581/33.76, allocations: 73.28 kB / 12.36 GB, free: 123.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02034/33.78, allocations: 12.74 MB / 12.37 GB, free: 119.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/33.78, allocations: 3.188 kB / 12.37 GB, free: 119.1 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1763/33.95, allocations: 58.29 MB / 12.43 GB, free: 80.87 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009145/33.96, allocations: 2.673 MB / 12.43 GB, free: 79.27 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004719/33.97, allocations: 6.125 kB / 12.43 GB, free: 79.26 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01257/33.98, allocations: 0.6457 MB / 12.43 GB, free: 78.82 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001391/33.98, allocations: 287 kB / 12.43 GB, free: 78.69 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007384/33.98, allocations: 212 kB / 12.43 GB, free: 78.55 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.01557/34, allocations: 9.064 MB / 12.44 GB, free: 73.65 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.03597/34.03, allocations: 6.094 MB / 12.45 GB, free: 68.09 MB / 1.167 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.007508/34.04, allocations: 5.231 MB / 12.45 GB, free: 63.59 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.04927/34.09, allocations: 28.15 MB / 12.48 GB, free: 48.85 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/34.09, allocations: 4 kB / 12.48 GB, free: 48.85 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.01184/34.1, allocations: 7.376 MB / 12.49 GB, free: 45 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0288/34.13, allocations: 6.362 MB / 12.5 GB, free: 41.41 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9422/35.07, allocations: 20.79 MB / 12.52 GB, free: 147.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009581/35.08, allocations: 8.373 MB / 12.52 GB, free: 146.4 MB / 1.167 GB Notification: Performance of SimCode: time 6.82e-07/35.08, allocations: 3.312 kB / 12.52 GB, free: 146.4 MB / 1.167 GB Notification: Performance of Templates: time 1.094/36.18, allocations: 425.6 MB / 12.94 GB, free: 141.8 MB / 1.167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified4.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches