Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.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.CDL.System4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTOut.T|boi.T|temSup.T|temRet.T|temRoo.T|conBoiRet.yVal|conEquSta.onBoi",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.CDL.System4") translateModel(Buildings.Examples.Tutorial.CDL.System4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTOut.T|boi.T|temSup.T|temRet.T|temRoo.T|conBoiRet.yVal|conEquSta.onBoi",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.CDL.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.731/1.731, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.0009521/0.0009521, allocations: 176.3 kB / 487 MB, free: 5.359 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.07/1.07, allocations: 221.3 MB / 0.7819 GB, free: 1.34 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.0007404/0.0007404, allocations: 92.67 kB / 0.9213 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.07e-06/5.09e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1629, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.881/3.044, allocations: 2.243 GB / 3.448 GB, free: 25.83 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/3.044, allocations: 85.95 kB / 3.448 GB, free: 25.79 MB / 1.151 GB Notification: Performance of FrontEnd: time 10.85/13.89, allocations: 4.46 GB / 7.908 GB, free: 66.39 MB / 1.339 GB Notification: Performance of Transformations before backend: time 0.0009336/13.89, allocations: 325.1 kB / 7.908 GB, free: 66.32 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: 1860 * Number of variables: 1860 Notification: Performance of Generate backend data structure: time 0.01561/13.91, allocations: 10.03 MB / 7.918 GB, free: 61.7 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/13.91, allocations: 8.656 kB / 7.918 GB, free: 61.7 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007234/13.91, allocations: 1.912 MB / 7.92 GB, free: 60.99 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02341/13.94, allocations: 13.41 MB / 7.933 GB, free: 59.05 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/13.94, allocations: 230.9 kB / 7.933 GB, free: 59.05 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007869/13.94, allocations: 468.1 kB / 7.934 GB, free: 59.05 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009152/13.95, allocations: 6.354 MB / 7.94 GB, free: 59.02 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009685/13.96, allocations: 7.211 MB / 7.947 GB, free: 58.04 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001462/13.96, allocations: 22.98 kB / 7.947 GB, free: 58.04 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005542/13.96, allocations: 13.59 kB / 7.947 GB, free: 58.03 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001731/13.96, allocations: 310.1 kB / 7.947 GB, free: 58.01 MB / 1.339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03839/14, allocations: 41.65 MB / 7.988 GB, free: 35.79 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003182/14, allocations: 2.608 MB / 7.991 GB, free: 35.75 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00295/14, allocations: 2.531 MB / 7.993 GB, free: 35.7 MB / 1.339 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01488/14.02, allocations: 9.895 MB / 8.003 GB, free: 32.73 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002981/14.02, allocations: 2.435 MB / 8.005 GB, free: 32.59 MB / 1.339 GB Notification: Performance of pre-optimization done (n=432): time 4.699e-06/14.02, allocations: 0 / 8.005 GB, free: 32.59 MB / 1.339 GB Notification: Performance of matching and sorting (n=437): time 0.02399/14.05, allocations: 11.61 MB / 8.017 GB, free: 29.92 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/14.05, allocations: 327.9 kB / 8.017 GB, free: 29.57 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007718/14.05, allocations: 6.769 MB / 8.023 GB, free: 29 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.0003251/14.05, allocations: 39.45 kB / 8.023 GB, free: 28.96 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.002673/14.06, allocations: 3.016 MB / 8.026 GB, free: 27.46 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.002597/14.06, allocations: 1.453 MB / 8.028 GB, free: 26.49 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002623/14.06, allocations: 0 / 8.028 GB, free: 26.49 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0001882/14.06, allocations: 0.5219 MB / 8.028 GB, free: 26.18 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002547/14.06, allocations: 1.913 MB / 8.03 GB, free: 26.16 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003088/14.06, allocations: 3.719 MB / 8.034 GB, free: 23.96 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004819/14.07, allocations: 2.754 MB / 8.037 GB, free: 23.75 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.656e-05/14.07, allocations: 10.88 kB / 8.037 GB, free: 23.75 MB / 1.339 GB Notification: Performance of matching and sorting (n=718) (initialization): time 0.01156/14.08, allocations: 6.928 MB / 8.043 GB, free: 22.78 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.002875/14.08, allocations: 22.22 MB / 8.065 GB, free: 15.23 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.844e-05/14.08, allocations: 40.09 kB / 8.065 GB, free: 15.23 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002152/14.09, allocations: 0.7229 MB / 8.066 GB, free: 15.17 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004504/14.09, allocations: 1.228 MB / 8.067 GB, free: 15.09 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006673/14.1, allocations: 7.278 MB / 8.074 GB, free: 9.582 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007117/14.1, allocations: 0.6136 MB / 8.075 GB, free: 9.453 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004318/14.11, allocations: 273.9 kB / 8.075 GB, free: 9.453 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 4.719e-06/14.11, allocations: 3.562 kB / 8.075 GB, free: 9.453 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00978/14.12, allocations: 5.639 MB / 8.08 GB, free: 8.988 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.665e-05/14.12, allocations: 44.92 kB / 8.08 GB, free: 8.984 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002205/14.12, allocations: 0.6768 MB / 8.081 GB, free: 8.926 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004415/14.12, allocations: 1.192 MB / 8.082 GB, free: 8.844 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/14.13, allocations: 8.642 MB / 8.091 GB, free: 3.098 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00719/14.14, allocations: 0.5621 MB / 8.091 GB, free: 2.992 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005051/14.14, allocations: 259.8 kB / 8.092 GB, free: 2.992 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: 15 ($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,$PRE.conEquSta.hys.y,conEquSta.hys.y,boiSigCon.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (661): * Single equations (assignments): 653 * 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.001171/14.14, allocations: 271.7 kB / 8.092 GB, free: 2.77 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001641/14.14, allocations: 0.9018 MB / 8.093 GB, free: 2.293 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01252/14.16, allocations: 6.138 MB / 8.099 GB, free: 1.766 MB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.871e-05/14.16, allocations: 48.31 kB / 8.099 GB, free: 1.766 MB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.614e-05/14.16, allocations: 7.156 kB / 8.099 GB, free: 1.762 MB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007721/14.16, allocations: 4.402 MB / 8.103 GB, free: 1.453 MB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02268/14.19, allocations: 13.04 MB / 8.116 GB, free: 0.582 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/14.19, allocations: 6.609 kB / 8.116 GB, free: 0.5781 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003774/14.19, allocations: 0.8427 MB / 8.117 GB, free: 0.5312 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001952/14.19, allocations: 0.6634 MB / 8.117 GB, free: 444 kB / 1.354 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002889/14.19, allocations: 76.95 kB / 8.117 GB, free: 444 kB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009299/14.2, allocations: 12.88 MB / 8.13 GB, free: 5.488 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/14.2, allocations: 0 / 8.13 GB, free: 5.488 MB / 1.37 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01304/14.21, allocations: 8.261 MB / 8.138 GB, free: 4.336 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004425/14.22, allocations: 1.714 MB / 8.14 GB, free: 3.434 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001187/14.22, allocations: 23.98 kB / 8.14 GB, free: 3.422 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00506/14.22, allocations: 0.5759 MB / 8.14 GB, free: 3 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004044/14.23, allocations: 259.4 kB / 8.14 GB, free: 2.887 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003888/14.23, allocations: 202.1 kB / 8.141 GB, free: 2.766 MB / 1.37 GB Notification: Performance of sort global known variables: time 0.007773/14.23, allocations: 5.12 MB / 8.146 GB, free: 15.42 MB / 1.385 GB Notification: Performance of remove unused functions: time 0.01492/14.25, allocations: 4.788 MB / 8.15 GB, free: 10.71 MB / 1.385 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: 10 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,timTab.tab.nextTimeEvent,timTab.tab.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext,conEquSta.hys.y,boiSigCon.u) * Number of discrete states: 5 (timTab.tab.nextTimeEvent,weaDat.conTim.tNext,weaDat.conTimMin.tNext,conEquSta.hys.y,timTab.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (435): * Single equations (assignments): 412 * 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.007777/14.26, allocations: 6.101 MB / 8.156 GB, free: 4.895 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.01411/14.27, allocations: 9.197 MB / 8.165 GB, free: 12.26 MB / 1.401 GB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/14.27, allocations: 6.656 kB / 8.165 GB, free: 12.25 MB / 1.401 GB Notification: Performance of simCode: created simulation system equations: time 0.00422/14.27, allocations: 3.245 MB / 8.168 GB, free: 9.137 MB / 1.401 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01653/14.29, allocations: 4.139 MB / 8.173 GB, free: 6.016 MB / 1.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4875/14.78, allocations: 15.29 MB / 8.187 GB, free: 194.9 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005442/14.78, allocations: 6.225 MB / 8.194 GB, free: 194 MB / 1.401 GB Notification: Performance of SimCode: time 6.31e-07/14.78, allocations: 3.906 kB / 8.194 GB, free: 194 MB / 1.401 GB Notification: Performance of Templates: time 0.2733/15.06, allocations: 218.2 MB / 8.407 GB, free: 182.3 MB / 1.401 GB make -j1 -f Buildings_9_Buildings.Examples.Tutorial.CDL.System4.makefile (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.System4.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.System4.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.System4.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System4.sim & ./Buildings_9_Buildings.Examples.Tutorial.CDL.System4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.Tutorial.CDL.System4.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.CDL.System4_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_CDL_System4.csv","../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches