Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.System1.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.System1,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.System1") translateModel(Buildings.Examples.Tutorial.CDL.System1,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.System1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.396/2.396, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001166/0.001166, allocations: 183.3 kB / 498.1 MB, free: 5.73 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.86/1.86, allocations: 223.2 MB / 0.7949 GB, free: 18.85 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001018, allocations: 89.45 kB / 0.9346 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003966/0.0003967, allocations: 8.625 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.3909, allocations: 142.4 MB / 1.223 GB, free: 89.61 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.565/6.956, allocations: 2.241 GB / 3.464 GB, free: 209.1 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/6.957, allocations: 98.73 kB / 3.464 GB, free: 209 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 19.69/26.65, allocations: 4.462 GB / 7.926 GB, free: 92.76 MB / 1.37 GB Notification: Performance of FrontEnd: time 3.647e-06/26.65, allocations: 0 / 7.926 GB, free: 92.76 MB / 1.37 GB Notification: Performance of Transformations before backend: time 0.002566/26.65, allocations: 321.8 kB / 7.926 GB, free: 92.7 MB / 1.37 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1794 * Number of variables: 1794 Notification: Performance of Generate backend data structure: time 0.05465/26.71, allocations: 12.24 MB / 7.938 GB, free: 87.54 MB / 1.37 GB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/26.71, allocations: 9.125 kB / 7.938 GB, free: 87.54 MB / 1.37 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01854/26.73, allocations: 2.377 MB / 7.941 GB, free: 86.88 MB / 1.37 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04849/26.78, allocations: 13.29 MB / 7.954 GB, free: 85.23 MB / 1.37 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009724/26.78, allocations: 0.55 MB / 7.954 GB, free: 85.21 MB / 1.37 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004154/26.78, allocations: 0.746 MB / 7.955 GB, free: 85.21 MB / 1.37 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02938/26.81, allocations: 8.13 MB / 7.963 GB, free: 84.27 MB / 1.37 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005068/26.81, allocations: 23.34 kB / 7.963 GB, free: 84.27 MB / 1.37 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003042/26.81, allocations: 301.4 kB / 7.963 GB, free: 84.27 MB / 1.37 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003408/26.81, allocations: 292.4 kB / 7.963 GB, free: 84.25 MB / 1.37 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02306/26.84, allocations: 6.77 MB / 7.97 GB, free: 84.19 MB / 1.37 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08397/26.92, allocations: 40.34 MB / 8.01 GB, free: 64.21 MB / 1.37 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009144/26.93, allocations: 4.738 MB / 8.014 GB, free: 63.48 MB / 1.37 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt evalFunc (simulation): time 0.03535/26.97, allocations: 10.23 MB / 8.024 GB, free: 60.66 MB / 1.37 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004997/26.97, allocations: 2.542 MB / 8.027 GB, free: 60.51 MB / 1.37 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007509/26.98, allocations: 0.498 MB / 8.027 GB, free: 60.31 MB / 1.37 GB Notification: Performance of pre-optimization done (n=409): time 4.185e-05/26.98, allocations: 0.7188 kB / 8.027 GB, free: 60.31 MB / 1.37 GB Notification: Performance of matching and sorting (n=417): time 0.04602/27.02, allocations: 14.31 MB / 8.041 GB, free: 57.12 MB / 1.37 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/27.02, allocations: 298.4 kB / 8.041 GB, free: 56.8 MB / 1.37 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01864/27.04, allocations: 7.307 MB / 8.048 GB, free: 56.23 MB / 1.37 GB Notification: Performance of collectPreVariables (initialization): time 0.001717/27.04, allocations: 137.3 kB / 8.049 GB, free: 56.2 MB / 1.37 GB Notification: Performance of collectInitialEqns (initialization): time 0.006897/27.05, allocations: 4.913 MB / 8.053 GB, free: 54.79 MB / 1.37 GB Notification: Performance of collectInitialBindings (initialization): time 0.002589/27.05, allocations: 1.441 MB / 8.055 GB, free: 53.86 MB / 1.37 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006326/27.06, allocations: 111.8 kB / 8.055 GB, free: 53.86 MB / 1.37 GB Notification: Performance of setup shared object (initialization): time 0.0003832/27.06, allocations: 0.5132 MB / 8.055 GB, free: 53.54 MB / 1.37 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003997/27.06, allocations: 1.967 MB / 8.057 GB, free: 53.53 MB / 1.37 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005515/27.06, allocations: 3.801 MB / 8.061 GB, free: 51.4 MB / 1.37 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005696/27.07, allocations: 2.592 MB / 8.064 GB, free: 51.3 MB / 1.37 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.803e-05/27.07, allocations: 12.12 kB / 8.064 GB, free: 51.3 MB / 1.37 GB Notification: Performance of matching and sorting (n=699) (initialization): time 0.02005/27.09, allocations: 7.169 MB / 8.071 GB, free: 50.56 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 0.004519/27.1, allocations: 22.37 MB / 8.092 GB, free: 27.08 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001405/27.1, allocations: 42.44 kB / 8.092 GB, free: 27.08 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004315/27.1, allocations: 0.9857 MB / 8.093 GB, free: 27.04 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006051/27.11, allocations: 1.207 MB / 8.095 GB, free: 27.04 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007309/27.11, allocations: 7.451 MB / 8.102 GB, free: 21.44 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01184/27.13, allocations: 0.7294 MB / 8.103 GB, free: 21.37 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001753/27.13, allocations: 273.2 kB / 8.103 GB, free: 21.37 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/27.13, allocations: 2.688 kB / 8.103 GB, free: 21.37 MB / 1.37 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01489/27.14, allocations: 6.209 MB / 8.109 GB, free: 21.12 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001489/27.14, allocations: 43.55 kB / 8.109 GB, free: 21.12 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003757/27.15, allocations: 0.9182 MB / 8.11 GB, free: 21.08 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005756/27.15, allocations: 1.169 MB / 8.111 GB, free: 21.08 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/27.17, allocations: 9.312 MB / 8.12 GB, free: 31.16 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01384/27.18, allocations: 0.694 MB / 8.121 GB, free: 31.1 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00224/27.18, allocations: 248.6 kB / 8.121 GB, free: 31.1 MB / 1.385 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 179 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (642): * Single equations (assignments): 634 * 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 {(2,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 3 {3 8,13 22,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.01082/27.19, allocations: 2.253 MB / 8.123 GB, free: 30.88 MB / 1.385 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003892/27.2, allocations: 0.9045 MB / 8.124 GB, free: 30.4 MB / 1.385 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01511/27.21, allocations: 6.177 MB / 8.13 GB, free: 30 MB / 1.385 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-05/27.21, allocations: 45.59 kB / 8.13 GB, free: 30 MB / 1.385 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/27.21, allocations: 6.453 kB / 8.13 GB, free: 30 MB / 1.385 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009137/27.22, allocations: 4.538 MB / 8.135 GB, free: 29.75 MB / 1.385 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03966/27.26, allocations: 13.98 MB / 8.148 GB, free: 28.81 MB / 1.385 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/27.26, allocations: 2.25 kB / 8.148 GB, free: 28.81 MB / 1.385 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004025/27.26, allocations: 0.8092 MB / 8.149 GB, free: 28.81 MB / 1.385 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00208/27.27, allocations: 0.6973 MB / 8.15 GB, free: 28.73 MB / 1.385 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007614/27.27, allocations: 129.6 kB / 8.15 GB, free: 28.73 MB / 1.385 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01048/27.28, allocations: 13.19 MB / 8.163 GB, free: 17.48 MB / 1.385 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/27.28, allocations: 2.594 kB / 8.163 GB, free: 17.48 MB / 1.385 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/27.29, allocations: 8.311 MB / 8.171 GB, free: 16.42 MB / 1.385 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008436/27.3, allocations: 1.697 MB / 8.173 GB, free: 15.83 MB / 1.385 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004019/27.31, allocations: 101.2 kB / 8.173 GB, free: 15.82 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009975/27.32, allocations: 0.6481 MB / 8.173 GB, free: 15.79 MB / 1.385 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001221/27.32, allocations: 285.6 kB / 8.174 GB, free: 15.79 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007427/27.32, allocations: 195.8 kB / 8.174 GB, free: 15.79 MB / 1.385 GB Notification: Performance of sorting global known variables: time 0.01401/27.33, allocations: 5.549 MB / 8.179 GB, free: 15.5 MB / 1.385 GB Notification: Performance of sort global known variables: time 1.152e-06/27.33, allocations: 3.406 kB / 8.179 GB, free: 15.5 MB / 1.385 GB Notification: Performance of remove unused functions: time 0.03267/27.37, allocations: 5.085 MB / 8.184 GB, free: 15.27 MB / 1.385 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 29 (vol.dynBal.medium.Xi[1],vol.dynBal.m,heaCap.T,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (414): * Single equations (assignments): 391 * 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%) 3,(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.01252/27.38, allocations: 6.382 MB / 8.19 GB, free: 12.81 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.02179/27.4, allocations: 9.553 MB / 8.2 GB, free: 11.79 MB / 1.385 GB Notification: Performance of simCode: created event and clocks part: time 1.738e-05/27.4, allocations: 4.969 kB / 8.2 GB, free: 11.79 MB / 1.385 GB Notification: Performance of simCode: created simulation system equations: time 0.006173/27.41, allocations: 3.331 MB / 8.203 GB, free: 10.86 MB / 1.385 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02364/27.43, allocations: 4.464 MB / 8.207 GB, free: 10.66 MB / 1.385 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04322/27.47, allocations: 21.59 MB / 8.228 GB, free: 0.7656 MB / 1.385 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01032/27.48, allocations: 5.329 MB / 8.234 GB, free: 15.74 MB / 1.401 GB Notification: Performance of simCode: alias equations: time 0.01597/27.5, allocations: 2.614 MB / 8.236 GB, free: 15.41 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003805/27.5, allocations: 0.7252 MB / 8.237 GB, free: 15.4 MB / 1.401 GB Notification: Performance of SimCode: time 1.022e-06/27.5, allocations: 0 / 8.237 GB, free: 15.4 MB / 1.401 GB Notification: Performance of Templates: time 0.3581/27.86, allocations: 206.3 MB / 8.438 GB, free: 11.26 MB / 1.448 GB make -j1 -f Buildings_9_Buildings.Examples.Tutorial.CDL.System1.makefile (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System1.sim & ./Buildings_9_Buildings.Examples.Tutorial.CDL.System1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.CDL.System1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_CDL_System1.csv","../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches