Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.System2.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.CDL.System2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTOut.T|boi.T|temSup.T|temRet.T|temRoo.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.CDL.System2") translateModel(Buildings.Examples.Tutorial.CDL.System2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTOut.T|boi.T|temSup.T|temRet.T|temRoo.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.CDL.System2") [: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.718/1.718, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.000952/0.000952, allocations: 181.3 kB / 487 MB, free: 5.324 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.073/1.073, allocations: 221.3 MB / 0.7819 GB, free: 1.309 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.0008208/0.0008208, allocations: 92.67 kB / 0.9213 GB, free: 2.566 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.46e-06/5.47e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1661, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.877/3.043, allocations: 2.241 GB / 3.446 GB, free: 48 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/3.043, allocations: 83.95 kB / 3.447 GB, free: 47.91 MB / 1.151 GB Notification: Performance of FrontEnd: time 10.97/14.02, allocations: 4.457 GB / 7.903 GB, free: 63.98 MB / 1.339 GB Notification: Performance of Transformations before backend: time 0.0008942/14.02, allocations: 316.4 kB / 7.903 GB, free: 63.92 MB / 1.339 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.0151/14.03, allocations: 9.861 MB / 7.913 GB, free: 59.45 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/14.03, allocations: 7.25 kB / 7.913 GB, free: 59.45 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007699/14.04, allocations: 1.882 MB / 7.915 GB, free: 58.75 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02518/14.07, allocations: 13.3 MB / 7.928 GB, free: 56.84 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/14.07, allocations: 225.8 kB / 7.928 GB, free: 56.84 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009605/14.07, allocations: 462.1 kB / 7.929 GB, free: 56.84 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009305/14.08, allocations: 6.231 MB / 7.935 GB, free: 56.8 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009665/14.09, allocations: 7.052 MB / 7.942 GB, free: 55.84 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001415/14.09, allocations: 27.45 kB / 7.942 GB, free: 55.82 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005515/14.09, allocations: 16.59 kB / 7.942 GB, free: 55.82 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001772/14.09, allocations: 292.1 kB / 7.942 GB, free: 55.8 MB / 1.339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04031/14.13, allocations: 41.18 MB / 7.982 GB, free: 33.62 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003141/14.13, allocations: 2.631 MB / 7.985 GB, free: 33.59 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002748/14.13, allocations: 2.452 MB / 7.987 GB, free: 33.54 MB / 1.339 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01494/14.15, allocations: 9.76 MB / 7.997 GB, free: 30.67 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002824/14.15, allocations: 2.363 MB / 7.999 GB, free: 30.54 MB / 1.339 GB Notification: Performance of pre-optimization done (n=412): time 4.599e-06/14.15, allocations: 0 / 7.999 GB, free: 30.54 MB / 1.339 GB Notification: Performance of matching and sorting (n=417): time 0.0232/14.18, allocations: 11.33 MB / 8.01 GB, free: 27.95 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/14.18, allocations: 303.5 kB / 8.01 GB, free: 27.63 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007956/14.18, allocations: 6.707 MB / 8.017 GB, free: 27.05 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.0005347/14.18, allocations: 38.23 kB / 8.017 GB, free: 27.02 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.002703/14.19, allocations: 2.969 MB / 8.02 GB, free: 25.54 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.002701/14.19, allocations: 1.395 MB / 8.021 GB, free: 24.61 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002536/14.19, allocations: 0 / 8.021 GB, free: 24.61 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0001906/14.19, allocations: 0.5087 MB / 8.022 GB, free: 24.3 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002467/14.19, allocations: 1.873 MB / 8.023 GB, free: 24.29 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002988/14.2, allocations: 3.638 MB / 8.027 GB, free: 22.12 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004712/14.2, allocations: 2.709 MB / 8.03 GB, free: 21.92 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.641e-05/14.2, allocations: 9.969 kB / 8.03 GB, free: 21.92 MB / 1.339 GB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01173/14.21, allocations: 6.821 MB / 8.036 GB, free: 20.97 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.003303/14.22, allocations: 21.93 MB / 8.058 GB, free: 13.61 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-05/14.22, allocations: 38.56 kB / 8.058 GB, free: 13.61 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002086/14.22, allocations: 0.717 MB / 8.058 GB, free: 13.55 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004386/14.22, allocations: 1.211 MB / 8.06 GB, free: 13.46 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006531/14.23, allocations: 7.222 MB / 8.067 GB, free: 7.965 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007245/14.24, allocations: 0.5865 MB / 8.067 GB, free: 7.84 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004191/14.24, allocations: 266.5 kB / 8.067 GB, free: 7.84 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 4.779e-06/14.24, allocations: 7.188 kB / 8.067 GB, free: 7.84 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00923/14.25, allocations: 5.547 MB / 8.073 GB, free: 7.379 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-05/14.25, allocations: 40.78 kB / 8.073 GB, free: 7.379 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002025/14.25, allocations: 0.6746 MB / 8.074 GB, free: 7.324 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003924/14.25, allocations: 1.171 MB / 8.075 GB, free: 7.246 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009563/14.26, allocations: 8.593 MB / 8.083 GB, free: 1.516 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006122/14.27, allocations: 0.5596 MB / 8.084 GB, free: 1.406 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003867/14.27, allocations: 254.9 kB / 8.084 GB, free: 1.406 MB / 1.354 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.timTab.tab.nextTimeEvent,$whenCondition3,$whenCondition2,timTab.tab.nextTimeEvent,$PRE.timTab.tab.nextTimeEventScaled,timTab.tab.nextTimeEventScaled,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (643): * Single equations (assignments): 635 * 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: 5 * 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: 3 {5 6,13 22,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0008929/14.27, allocations: 267.8 kB / 8.084 GB, free: 1.188 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/14.27, allocations: 0.8843 MB / 8.085 GB, free: 0.7148 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/14.28, allocations: 6 MB / 8.091 GB, free: 232 kB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.685e-05/14.28, allocations: 56.97 kB / 8.091 GB, free: 228 kB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/14.28, allocations: 3.969 kB / 8.091 GB, free: 228 kB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007817/14.29, allocations: 4.294 MB / 8.095 GB, free: 15.93 MB / 1.37 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02437/14.31, allocations: 12.77 MB / 8.108 GB, free: 15.12 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-05/14.31, allocations: 8.062 kB / 8.108 GB, free: 15.11 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003503/14.32, allocations: 0.8044 MB / 8.108 GB, free: 15.07 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001853/14.32, allocations: 0.6707 MB / 8.109 GB, free: 14.97 MB / 1.37 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003193/14.32, allocations: 74.31 kB / 8.109 GB, free: 14.97 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009513/14.33, allocations: 12.86 MB / 8.122 GB, free: 4.031 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/14.33, allocations: 3.906 kB / 8.122 GB, free: 4.027 MB / 1.37 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01316/14.34, allocations: 8.04 MB / 8.13 GB, free: 2.906 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004993/14.35, allocations: 1.68 MB / 8.131 GB, free: 2.332 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002307/14.35, allocations: 27.56 kB / 8.131 GB, free: 2.328 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00641/14.36, allocations: 0.5533 MB / 8.132 GB, free: 2.242 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003906/14.36, allocations: 248 kB / 8.132 GB, free: 2.234 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004941/14.36, allocations: 195.9 kB / 8.132 GB, free: 2.234 MB / 1.37 GB Notification: Performance of sort global known variables: time 0.008755/14.37, allocations: 4.959 MB / 8.137 GB, free: 1.949 MB / 1.37 GB Notification: Performance of remove unused functions: time 0.0187/14.39, allocations: 4.763 MB / 8.142 GB, free: 0.8633 MB / 1.37 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: 7 ($whenCondition3,$whenCondition2,$whenCondition1,timTab.tab.nextTimeEvent,timTab.tab.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 4 (timTab.tab.nextTimeEvent,weaDat.conTim.tNext,weaDat.conTimMin.tNext,timTab.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (415): * Single equations (assignments): 392 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 2 {13 22,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.008381/14.39, allocations: 6.101 MB / 8.148 GB, free: 11.17 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.01363/14.41, allocations: 8.97 MB / 8.156 GB, free: 5.207 MB / 1.385 GB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/14.41, allocations: 5.969 kB / 8.156 GB, free: 5.203 MB / 1.385 GB Notification: Performance of simCode: created simulation system equations: time 0.004136/14.41, allocations: 3.132 MB / 8.159 GB, free: 2.895 MB / 1.385 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01752/14.43, allocations: 4.103 MB / 8.163 GB, free: 15.98 MB / 1.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02725/14.46, allocations: 15.02 MB / 8.178 GB, free: 2.34 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006524/14.46, allocations: 6.155 MB / 8.184 GB, free: 13.88 MB / 1.417 GB Notification: Performance of SimCode: time 4.91e-07/14.46, allocations: 0 / 8.184 GB, free: 13.88 MB / 1.417 GB Notification: Performance of Templates: time 0.7594/15.22, allocations: 215.4 MB / 8.394 GB, free: 204.8 MB / 1.417 GB make -j1 -f Buildings_9_Buildings.Examples.Tutorial.CDL.System2.makefile (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.System2.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.System2.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.System2.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System2.sim & ./Buildings_9_Buildings.Examples.Tutorial.CDL.System2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.Tutorial.CDL.System2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.CDL.System2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_CDL_System2.csv","../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches