Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.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.Examples.Tutorial.Boiler.System4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T|boi.vol.T|temSup.T|temRet.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.Boiler.System4") translateModel(Buildings.Examples.Tutorial.Boiler.System4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T|boi.vol.T|temSup.T|temRet.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.Boiler.System4") [: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 1.734/1.734, 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.0009703/0.0009703, allocations: 184.3 kB / 487 MB, free: 5.383 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.096/1.096, allocations: 221.3 MB / 0.7819 GB, free: 1.422 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.0008554/0.0008554, allocations: 98.44 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.58e-06/5.6e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.1695, allocations: 142.3 MB / 1.205 GB, free: 26.28 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.93/3.099, allocations: 2.222 GB / 3.427 GB, free: 55.04 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001622/3.099, allocations: 89.08 kB / 3.427 GB, free: 55 MB / 1.151 GB Notification: Performance of FrontEnd: time 11.03/14.13, allocations: 4.408 GB / 7.835 GB, free: 63.91 MB / 1.323 GB Notification: Performance of Transformations before backend: time 0.001019/14.13, allocations: 291 kB / 7.835 GB, free: 63.85 MB / 1.323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1620 * Number of variables: 1620 Notification: Performance of Generate backend data structure: time 0.01824/14.15, allocations: 9.103 MB / 7.844 GB, free: 59.77 MB / 1.323 GB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/14.15, allocations: 7.844 kB / 7.844 GB, free: 59.77 MB / 1.323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007392/14.15, allocations: 1.7 MB / 7.846 GB, free: 59.14 MB / 1.323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0238/14.18, allocations: 12.86 MB / 7.858 GB, free: 57.46 MB / 1.323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001427/14.18, allocations: 203.4 kB / 7.858 GB, free: 57.46 MB / 1.323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007587/14.18, allocations: 413.9 kB / 7.859 GB, free: 57.45 MB / 1.323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00779/14.19, allocations: 5.292 MB / 7.864 GB, free: 57.42 MB / 1.323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008549/14.19, allocations: 6.412 MB / 7.87 GB, free: 56.54 MB / 1.323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001289/14.19, allocations: 16.59 kB / 7.87 GB, free: 56.54 MB / 1.323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004918/14.2, allocations: 13.44 kB / 7.87 GB, free: 56.54 MB / 1.323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001561/14.2, allocations: 279.9 kB / 7.871 GB, free: 56.51 MB / 1.323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03511/14.23, allocations: 38.8 MB / 7.908 GB, free: 34.95 MB / 1.323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002468/14.23, allocations: 2.135 MB / 7.911 GB, free: 34.92 MB / 1.323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002518/14.24, allocations: 2.249 MB / 7.913 GB, free: 34.88 MB / 1.323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01328/14.25, allocations: 8.907 MB / 7.921 GB, free: 32.04 MB / 1.323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002502/14.25, allocations: 2.089 MB / 7.923 GB, free: 31.92 MB / 1.323 GB Notification: Performance of pre-optimization done (n=355): time 4.218e-06/14.25, allocations: 0 / 7.923 GB, free: 31.92 MB / 1.323 GB Notification: Performance of matching and sorting (n=360): time 0.02147/14.27, allocations: 10.26 MB / 7.934 GB, free: 29.51 MB / 1.323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/14.27, allocations: 118.7 kB / 7.934 GB, free: 29.41 MB / 1.323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007239/14.28, allocations: 6.267 MB / 7.94 GB, free: 28.9 MB / 1.323 GB Notification: Performance of collectPreVariables (initialization): time 0.0003331/14.28, allocations: 37.14 kB / 7.94 GB, free: 28.87 MB / 1.323 GB Notification: Performance of collectInitialEqns (initialization): time 0.002412/14.28, allocations: 2.737 MB / 7.942 GB, free: 27.52 MB / 1.323 GB Notification: Performance of collectInitialBindings (initialization): time 0.002302/14.29, allocations: 1.215 MB / 7.944 GB, free: 26.71 MB / 1.323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/14.29, allocations: 0 / 7.944 GB, free: 26.71 MB / 1.323 GB Notification: Performance of setup shared object (initialization): time 0.0001679/14.29, allocations: 0.4886 MB / 7.944 GB, free: 26.4 MB / 1.323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/14.29, allocations: 1.714 MB / 7.946 GB, free: 26.38 MB / 1.323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002705/14.29, allocations: 3.415 MB / 7.949 GB, free: 24.29 MB / 1.323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004395/14.3, allocations: 2.497 MB / 7.952 GB, free: 24.12 MB / 1.323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.569e-05/14.3, allocations: 14.88 kB / 7.952 GB, free: 24.12 MB / 1.323 GB Notification: Performance of matching and sorting (n=635) (initialization): time 0.01042/14.31, allocations: 6.257 MB / 7.958 GB, free: 23.31 MB / 1.323 GB Notification: Performance of prepare postOptimizeDAE: time 0.004367/14.31, allocations: 21.28 MB / 7.978 GB, free: 16.91 MB / 1.339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.868e-05/14.31, allocations: 38.78 kB / 7.978 GB, free: 16.91 MB / 1.339 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001608/14.31, allocations: 0.6398 MB / 7.979 GB, free: 16.86 MB / 1.339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004036/14.32, allocations: 1.078 MB / 7.98 GB, free: 16.79 MB / 1.339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005295/14.32, allocations: 5.814 MB / 7.986 GB, free: 12.54 MB / 1.339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006972/14.33, allocations: 0.5773 MB / 7.986 GB, free: 12.42 MB / 1.339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004077/14.33, allocations: 249.9 kB / 7.987 GB, free: 12.41 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 4.949e-06/14.33, allocations: 1.75 kB / 7.987 GB, free: 12.41 MB / 1.339 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008443/14.34, allocations: 5.043 MB / 7.992 GB, free: 12.05 MB / 1.339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.898e-05/14.34, allocations: 39.28 kB / 7.992 GB, free: 12.05 MB / 1.339 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001532/14.34, allocations: 0.6011 MB / 7.992 GB, free: 12 MB / 1.339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003567/14.34, allocations: 1.053 MB / 7.993 GB, free: 11.93 MB / 1.339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008256/14.35, allocations: 7.185 MB / 8 GB, free: 23.44 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005964/14.36, allocations: 0.5438 MB / 8.001 GB, free: 23.33 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004031/14.36, allocations: 233.7 kB / 8.001 GB, free: 23.33 MB / 1.354 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.timTab.tab.nextTimeEvent,timTab.tab.nextTimeEvent,$PRE.timTab.tab.nextTimeEventScaled,timTab.tab.nextTimeEventScaled,$PRE.hysTOut.y,hysTOut.y,$PRE.hysTBoi.y,hysTBoi.y,and1.y,and2.y,$PRE.hysPum.y,hysPum.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (580): * Single equations (assignments): 573 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {5 6,13 22} Notification: Performance of prepare postOptimizeDAE: time 0.0008521/14.36, allocations: 259.6 kB / 8.001 GB, free: 23.12 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/14.36, allocations: 0.8215 MB / 8.002 GB, free: 22.68 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009536/14.37, allocations: 5.219 MB / 8.007 GB, free: 22.29 MB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-05/14.37, allocations: 40.78 kB / 8.007 GB, free: 22.29 MB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/14.37, allocations: 3.594 kB / 8.007 GB, free: 22.29 MB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005889/14.37, allocations: 3.789 MB / 8.011 GB, free: 22.03 MB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01942/14.39, allocations: 11.41 MB / 8.022 GB, free: 21.31 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/14.39, allocations: 2.125 kB / 8.022 GB, free: 21.31 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003019/14.4, allocations: 0.6848 MB / 8.023 GB, free: 21.27 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001334/14.4, allocations: 0.586 MB / 8.023 GB, free: 21.19 MB / 1.354 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002432/14.4, allocations: 64.44 kB / 8.023 GB, free: 21.19 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007223/14.41, allocations: 11.36 MB / 8.034 GB, free: 11.49 MB / 1.354 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/14.41, allocations: 0 / 8.034 GB, free: 11.49 MB / 1.354 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009825/14.42, allocations: 7.138 MB / 8.041 GB, free: 10.47 MB / 1.354 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003557/14.42, allocations: 1.511 MB / 8.043 GB, free: 9.93 MB / 1.354 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001771/14.42, allocations: 28.86 kB / 8.043 GB, free: 9.93 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005195/14.43, allocations: 0.5267 MB / 8.043 GB, free: 9.836 MB / 1.354 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003306/14.43, allocations: 211.8 kB / 8.044 GB, free: 9.832 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003534/14.43, allocations: 172 kB / 8.044 GB, free: 9.832 MB / 1.354 GB Notification: Performance of sort global known variables: time 0.006602/14.43, allocations: 4.631 MB / 8.048 GB, free: 9.582 MB / 1.354 GB Notification: Performance of remove unused functions: time 0.01499/14.45, allocations: 4.413 MB / 8.053 GB, free: 9.383 MB / 1.354 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (vol.hOut_internal,vol.dynBal.medium.Xi[1],vol.dynBal.m,rad.vol[1].dynBal.U,rad.vol[2].dynBal.U,rad.vol[3].dynBal.U,rad.vol[4].dynBal.U,rad.vol[5].dynBal.U,temSup.T,pumRad.vol.dynBal.U,pumRad.filter.s[1],pumRad.filter.s[2],mix.vol.dynBal.U,spl.vol.dynBal.U,spl2.vol.dynBal.U,mix2.vol.dynBal.U,spl4.vol.dynBal.U,pumBoi.vol.dynBal.U,pumBoi.filter.s[1],pumBoi.filter.s[2],boi.heaCapDry.T,valRad.vol.dynBal.U,valRad.filter.s[1],valRad.filter.s[2],valBoi.vol.dynBal.U,valBoi.filter.s[1],valBoi.filter.s[2],temRet.T,spl1.vol.dynBal.U) * Number of discrete variables: 8 ($whenCondition1,timTab.tab.nextTimeEvent,timTab.tab.nextTimeEventScaled,hysTOut.y,hysTBoi.y,and1.y,and2.y,hysPum.y) * Number of discrete states: 5 (timTab.tab.nextTimeEvent,hysTOut.y,hysTBoi.y,hysPum.y,timTab.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (347): * Single equations (assignments): 327 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {13 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.007243/14.46, allocations: 5.608 MB / 8.058 GB, free: 6.469 MB / 1.354 GB Notification: Performance of simCode: created initialization part: time 0.01285/14.47, allocations: 8.055 MB / 8.066 GB, free: 5.547 MB / 1.354 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/14.47, allocations: 5.062 kB / 8.066 GB, free: 5.543 MB / 1.354 GB Notification: Performance of simCode: created simulation system equations: time 0.003693/14.47, allocations: 2.782 MB / 8.069 GB, free: 4.746 MB / 1.354 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01517/14.49, allocations: 3.902 MB / 8.072 GB, free: 4.469 MB / 1.354 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02243/14.51, allocations: 13.67 MB / 8.086 GB, free: 0.7148 MB / 1.354 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006442/14.52, allocations: 5.724 MB / 8.091 GB, free: 15.68 MB / 1.37 GB Notification: Performance of SimCode: time 6.31e-07/14.52, allocations: 0.8125 kB / 8.091 GB, free: 15.68 MB / 1.37 GB Notification: Performance of Templates: time 0.7295/15.25, allocations: 199 MB / 8.286 GB, free: 215.8 MB / 1.401 GB make -j1 -f Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.makefile (rm -f Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.sim & ./Buildings_9_Buildings.Examples.Tutorial.Boiler.System4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.Boiler.System4_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_Boiler_System4.csv","../files/Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches