Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.System3.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.System3,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.System3") translateModel(Buildings.Examples.Tutorial.CDL.System3,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.System3") [: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.72/1.72, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.0009477/0.0009477, allocations: 184.4 kB / 487 MB, free: 5.387 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.066/1.066, allocations: 221.3 MB / 0.7819 GB, free: 1.402 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.0008102/0.0008102, allocations: 88.83 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 4.378e-06/4.419e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1619, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.853/3.015, allocations: 2.243 GB / 3.448 GB, free: 51.26 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001909/3.015, allocations: 83.95 kB / 3.448 GB, free: 51.18 MB / 1.151 GB Notification: Performance of FrontEnd: time 10.91/13.92, allocations: 4.459 GB / 7.908 GB, free: 65.15 MB / 1.339 GB Notification: Performance of Transformations before backend: time 0.0009454/13.92, allocations: 316.1 kB / 7.908 GB, free: 65.09 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.01601/13.94, allocations: 10.01 MB / 7.918 GB, free: 60.57 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/13.94, allocations: 7.938 kB / 7.918 GB, free: 60.57 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007179/13.95, allocations: 1.908 MB / 7.92 GB, free: 59.87 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02318/13.97, allocations: 13.4 MB / 7.933 GB, free: 57.94 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/13.97, allocations: 231.7 kB / 7.933 GB, free: 57.94 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007842/13.97, allocations: 473.2 kB / 7.933 GB, free: 57.93 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009038/13.98, allocations: 6.338 MB / 7.939 GB, free: 57.89 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00959/13.99, allocations: 7.193 MB / 7.946 GB, free: 56.92 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001422/13.99, allocations: 18.31 kB / 7.947 GB, free: 56.91 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005479/13.99, allocations: 11 kB / 7.947 GB, free: 56.91 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001731/13.99, allocations: 309.3 kB / 7.947 GB, free: 56.89 MB / 1.339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03848/14.03, allocations: 41.67 MB / 7.988 GB, free: 34.59 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003141/14.03, allocations: 2.58 MB / 7.99 GB, free: 34.54 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00289/14.03, allocations: 2.516 MB / 7.992 GB, free: 34.49 MB / 1.339 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01484/14.05, allocations: 9.871 MB / 8.002 GB, free: 31.62 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002925/14.05, allocations: 2.409 MB / 8.004 GB, free: 31.48 MB / 1.339 GB Notification: Performance of pre-optimization done (n=425): time 4.599e-06/14.05, allocations: 1.031 kB / 8.004 GB, free: 31.48 MB / 1.339 GB Notification: Performance of matching and sorting (n=430): time 0.0236/14.08, allocations: 11.54 MB / 8.016 GB, free: 28.86 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.922e-05/14.08, allocations: 332.9 kB / 8.016 GB, free: 28.51 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007949/14.08, allocations: 6.777 MB / 8.023 GB, free: 27.94 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.0003542/14.08, allocations: 38.42 kB / 8.023 GB, free: 27.91 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.002663/14.09, allocations: 3.031 MB / 8.026 GB, free: 26.39 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.002574/14.09, allocations: 1.43 MB / 8.027 GB, free: 25.44 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002556/14.09, allocations: 0 / 8.027 GB, free: 25.44 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0001859/14.09, allocations: 0.5157 MB / 8.028 GB, free: 25.13 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002487/14.09, allocations: 1.908 MB / 8.029 GB, free: 25.11 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003078/14.1, allocations: 3.699 MB / 8.033 GB, free: 22.93 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004815/14.1, allocations: 2.75 MB / 8.036 GB, free: 22.72 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.577e-05/14.1, allocations: 12.09 kB / 8.036 GB, free: 22.72 MB / 1.339 GB Notification: Performance of matching and sorting (n=715) (initialization): time 0.01173/14.11, allocations: 6.922 MB / 8.043 GB, free: 21.78 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.002928/14.12, allocations: 22.15 MB / 8.064 GB, free: 14.28 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-05/14.12, allocations: 38.16 kB / 8.064 GB, free: 14.28 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002067/14.12, allocations: 0.7223 MB / 8.065 GB, free: 14.22 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004501/14.12, allocations: 1.227 MB / 8.066 GB, free: 14.14 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006536/14.13, allocations: 7.268 MB / 8.073 GB, free: 8.645 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007145/14.14, allocations: 0.6035 MB / 8.074 GB, free: 8.52 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004412/14.14, allocations: 270.1 kB / 8.074 GB, free: 8.52 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 5.501e-06/14.14, allocations: 10.22 kB / 8.074 GB, free: 8.516 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00929/14.15, allocations: 5.629 MB / 8.08 GB, free: 8.059 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.412e-05/14.15, allocations: 37.84 kB / 8.08 GB, free: 8.059 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001981/14.15, allocations: 0.6782 MB / 8.08 GB, free: 8 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004021/14.15, allocations: 1.191 MB / 8.081 GB, free: 7.918 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009464/14.16, allocations: 8.66 MB / 8.09 GB, free: 2.172 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006364/14.17, allocations: 0.5558 MB / 8.09 GB, free: 2.062 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003856/14.17, allocations: 264 kB / 8.091 GB, free: 2.062 MB / 1.354 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition4,$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 (658): * Single equations (assignments): 650 * 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.0009558/14.17, allocations: 261.4 kB / 8.091 GB, free: 1.848 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/14.17, allocations: 0.9067 MB / 8.092 GB, free: 1.363 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01157/14.18, allocations: 6.091 MB / 8.098 GB, free: 0.8789 MB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.851e-05/14.18, allocations: 53.25 kB / 8.098 GB, free: 0.875 MB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/14.18, allocations: 5.906 kB / 8.098 GB, free: 0.875 MB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007672/14.19, allocations: 4.371 MB / 8.102 GB, free: 0.582 MB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02271/14.21, allocations: 12.98 MB / 8.115 GB, free: 15.79 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/14.21, allocations: 0.9375 kB / 8.115 GB, free: 15.79 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003849/14.22, allocations: 0.8352 MB / 8.116 GB, free: 15.74 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001863/14.22, allocations: 0.6636 MB / 8.116 GB, free: 15.65 MB / 1.37 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000271/14.22, allocations: 77.61 kB / 8.116 GB, free: 15.65 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008629/14.23, allocations: 12.88 MB / 8.129 GB, free: 4.688 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/14.23, allocations: 0 / 8.129 GB, free: 4.688 MB / 1.37 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01235/14.24, allocations: 8.185 MB / 8.137 GB, free: 3.551 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004138/14.24, allocations: 1.714 MB / 8.139 GB, free: 2.969 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/14.24, allocations: 23.81 kB / 8.139 GB, free: 2.969 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004855/14.25, allocations: 0.5685 MB / 8.139 GB, free: 2.875 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003703/14.25, allocations: 249.2 kB / 8.139 GB, free: 2.871 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003657/14.25, allocations: 200.8 kB / 8.14 GB, free: 2.871 MB / 1.37 GB Notification: Performance of sort global known variables: time 0.006564/14.26, allocations: 5.02 MB / 8.144 GB, free: 2.582 MB / 1.37 GB Notification: Performance of remove unused functions: time 0.01571/14.27, allocations: 4.798 MB / 8.149 GB, free: 2.289 MB / 1.37 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 30 (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,conBoiRet.conPID.I.y) * Number of discrete variables: 8 ($whenCondition4,$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 (428): * Single equations (assignments): 405 * 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.007856/14.28, allocations: 6.093 MB / 8.155 GB, free: 12.59 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.0132/14.29, allocations: 9.156 MB / 8.164 GB, free: 6.508 MB / 1.385 GB Notification: Performance of simCode: created event and clocks part: time 7.124e-06/14.29, allocations: 8.344 kB / 8.164 GB, free: 6.5 MB / 1.385 GB Notification: Performance of simCode: created simulation system equations: time 0.003919/14.3, allocations: 3.172 MB / 8.167 GB, free: 4.164 MB / 1.385 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0155/14.31, allocations: 4.134 MB / 8.171 GB, free: 1.75 MB / 1.385 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02551/14.34, allocations: 15.32 MB / 8.186 GB, free: 4.156 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4673/14.81, allocations: 6.213 MB / 8.192 GB, free: 199.5 MB / 1.401 GB Notification: Performance of SimCode: time 9.12e-07/14.81, allocations: 0 / 8.192 GB, free: 199.5 MB / 1.401 GB Notification: Performance of Templates: time 0.2837/15.09, allocations: 217.3 MB / 8.404 GB, free: 188.1 MB / 1.401 GB make -j1 -f Buildings_9_Buildings.Examples.Tutorial.CDL.System3.makefile (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.System3.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.System3.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.System3.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System3.sim & ./Buildings_9_Buildings.Examples.Tutorial.CDL.System3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.Tutorial.CDL.System3.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.CDL.System3_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_CDL_System3.csv","../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches