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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.442/2.442, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001554/0.001554, allocations: 180.6 kB / 498.1 MB, free: 5.746 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.78/1.78, allocations: 223.2 MB / 0.7948 GB, free: 17.94 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.0009429/0.0009432, allocations: 104.6 kB / 0.9346 GB, free: 6.25 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004066/0.0004066, allocations: 7.156 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4021, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.628/7.03, allocations: 2.244 GB / 3.467 GB, free: 238.9 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/7.031, allocations: 98.23 kB / 3.467 GB, free: 238.8 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 18.51/25.54, allocations: 4.466 GB / 7.933 GB, free: 17.88 MB / 1.339 GB Notification: Performance of FrontEnd: time 3.868e-06/25.54, allocations: 0 / 7.933 GB, free: 17.88 MB / 1.339 GB Notification: Performance of Transformations before backend: time 0.002792/25.54, allocations: 323.1 kB / 7.934 GB, free: 17.56 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.04805/25.59, allocations: 12.48 MB / 7.946 GB, free: 4.969 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/25.59, allocations: 12.03 kB / 7.946 GB, free: 4.957 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01548/25.61, allocations: 2.405 MB / 7.948 GB, free: 2.535 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04987/25.66, allocations: 13.41 MB / 7.961 GB, free: 5.031 MB / 1.354 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001049/25.66, allocations: 0.5726 MB / 7.962 GB, free: 4.457 MB / 1.354 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004195/25.66, allocations: 0.7654 MB / 7.962 GB, free: 3.691 MB / 1.354 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03354/25.7, allocations: 8.385 MB / 7.971 GB, free: 11.02 MB / 1.37 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005696/25.7, allocations: 19.78 kB / 7.971 GB, free: 11 MB / 1.37 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003521/25.7, allocations: 308 kB / 7.971 GB, free: 10.7 MB / 1.37 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004268/25.7, allocations: 309.8 kB / 7.971 GB, free: 10.39 MB / 1.37 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02355/25.72, allocations: 6.967 MB / 7.978 GB, free: 3.41 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 2.144/27.87, allocations: 40.99 MB / 8.018 GB, free: 59.02 MB / 1.37 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01016/27.88, allocations: 4.8 MB / 8.023 GB, free: 58.3 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.03403/27.91, allocations: 10.4 MB / 8.033 GB, free: 55.7 MB / 1.37 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005685/27.92, allocations: 2.631 MB / 8.036 GB, free: 55.55 MB / 1.37 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007269/27.93, allocations: 0.5156 MB / 8.036 GB, free: 55.44 MB / 1.37 GB Notification: Performance of pre-optimization done (n=429): time 2.537e-05/27.93, allocations: 3.203 kB / 8.036 GB, free: 55.44 MB / 1.37 GB Notification: Performance of matching and sorting (n=437): time 0.04495/27.97, allocations: 14.76 MB / 8.05 GB, free: 52.36 MB / 1.37 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/27.97, allocations: 334.5 kB / 8.051 GB, free: 52.01 MB / 1.37 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01622/27.99, allocations: 7.44 MB / 8.058 GB, free: 51.47 MB / 1.37 GB Notification: Performance of collectPreVariables (initialization): time 0.001655/27.99, allocations: 137.4 kB / 8.058 GB, free: 51.44 MB / 1.37 GB Notification: Performance of collectInitialEqns (initialization): time 0.006173/28, allocations: 5.047 MB / 8.063 GB, free: 50.41 MB / 1.37 GB Notification: Performance of collectInitialBindings (initialization): time 0.002589/28, allocations: 1.503 MB / 8.065 GB, free: 49.65 MB / 1.37 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005083/28, allocations: 112.7 kB / 8.065 GB, free: 49.65 MB / 1.37 GB Notification: Performance of setup shared object (initialization): time 0.0003443/28, allocations: 0.5144 MB / 8.065 GB, free: 49.34 MB / 1.37 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003923/28, allocations: 2.032 MB / 8.067 GB, free: 49.32 MB / 1.37 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00495/28.01, allocations: 3.892 MB / 8.071 GB, free: 47.19 MB / 1.37 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004916/28.01, allocations: 2.66 MB / 8.074 GB, free: 47.08 MB / 1.37 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.363e-05/28.01, allocations: 10.84 kB / 8.074 GB, free: 47.08 MB / 1.37 GB Notification: Performance of matching and sorting (n=718) (initialization): time 0.016/28.03, allocations: 7.336 MB / 8.081 GB, free: 46.33 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 0.008516/28.04, allocations: 22.53 MB / 8.103 GB, free: 38.88 MB / 1.386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001563/28.04, allocations: 38.91 kB / 8.103 GB, free: 38.88 MB / 1.386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004144/28.04, allocations: 0.9949 MB / 8.104 GB, free: 38.84 MB / 1.386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005976/28.05, allocations: 1.228 MB / 8.105 GB, free: 38.84 MB / 1.386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009308/28.06, allocations: 7.453 MB / 8.112 GB, free: 49.24 MB / 1.401 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01139/28.07, allocations: 0.7534 MB / 8.113 GB, free: 49.2 MB / 1.401 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001568/28.07, allocations: 271 kB / 8.113 GB, free: 49.2 MB / 1.401 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/28.07, allocations: 5.438 kB / 8.113 GB, free: 49.2 MB / 1.401 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01416/28.08, allocations: 6.326 MB / 8.119 GB, free: 48.96 MB / 1.401 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001793/28.08, allocations: 43.28 kB / 8.119 GB, free: 48.96 MB / 1.401 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003766/28.09, allocations: 0.9157 MB / 8.12 GB, free: 48.91 MB / 1.401 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006234/28.09, allocations: 1.194 MB / 8.121 GB, free: 48.91 MB / 1.401 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/28.11, allocations: 9.307 MB / 8.131 GB, free: 42.98 MB / 1.401 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0118/28.12, allocations: 0.7056 MB / 8.131 GB, free: 42.95 MB / 1.401 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001554/28.12, allocations: 258.4 kB / 8.132 GB, free: 42.95 MB / 1.401 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 () * Number of clocked 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 {(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.00765/28.13, allocations: 2.293 MB / 8.134 GB, free: 42.75 MB / 1.401 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002892/28.13, allocations: 0.9255 MB / 8.135 GB, free: 42.26 MB / 1.401 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01374/28.14, allocations: 6.352 MB / 8.141 GB, free: 41.89 MB / 1.401 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.702e-05/28.14, allocations: 47.03 kB / 8.141 GB, free: 41.89 MB / 1.401 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/28.14, allocations: 4.781 kB / 8.141 GB, free: 41.89 MB / 1.401 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009346/28.15, allocations: 4.704 MB / 8.145 GB, free: 41.63 MB / 1.401 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04264/28.2, allocations: 14.36 MB / 8.16 GB, free: 40.7 MB / 1.401 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-05/28.2, allocations: 6.625 kB / 8.16 GB, free: 40.7 MB / 1.401 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00424/28.2, allocations: 0.844 MB / 8.16 GB, free: 40.7 MB / 1.401 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/28.2, allocations: 0.6947 MB / 8.161 GB, free: 40.62 MB / 1.401 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008159/28.2, allocations: 131.7 kB / 8.161 GB, free: 40.62 MB / 1.401 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/28.22, allocations: 13.18 MB / 8.174 GB, free: 45.36 MB / 1.417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/28.22, allocations: 2.906 kB / 8.174 GB, free: 45.36 MB / 1.417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01854/28.23, allocations: 8.586 MB / 8.182 GB, free: 44.27 MB / 1.417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00766/28.24, allocations: 1.736 MB / 8.184 GB, free: 43.68 MB / 1.417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003066/28.24, allocations: 102.3 kB / 8.184 GB, free: 43.68 MB / 1.417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009288/28.25, allocations: 0.6604 MB / 8.185 GB, free: 43.66 MB / 1.417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001128/28.25, allocations: 306.1 kB / 8.185 GB, free: 43.65 MB / 1.417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006996/28.26, allocations: 204.2 kB / 8.185 GB, free: 43.65 MB / 1.417 GB Notification: Performance of sorting global known variables: time 0.01314/28.27, allocations: 5.648 MB / 8.191 GB, free: 43.37 MB / 1.417 GB Notification: Performance of sort global known variables: time 6.52e-07/28.27, allocations: 0.75 kB / 8.191 GB, free: 43.37 MB / 1.417 GB Notification: Performance of remove unused functions: time 0.02838/28.3, allocations: 5.141 MB / 8.196 GB, free: 43.37 MB / 1.417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 30 (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,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (434): * Single equations (assignments): 411 * 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.01253/28.31, allocations: 6.388 MB / 8.202 GB, free: 41.23 MB / 1.417 GB Notification: Performance of simCode: created initialization part: time 0.02507/28.33, allocations: 9.786 MB / 8.212 GB, free: 40.27 MB / 1.417 GB Notification: Performance of simCode: created event and clocks part: time 1.765e-05/28.33, allocations: 10.41 kB / 8.212 GB, free: 40.27 MB / 1.417 GB Notification: Performance of simCode: created simulation system equations: time 0.00646/28.34, allocations: 3.448 MB / 8.215 GB, free: 39.36 MB / 1.417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02426/28.37, allocations: 4.493 MB / 8.219 GB, free: 39.3 MB / 1.417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04459/28.41, allocations: 22.1 MB / 8.241 GB, free: 29.77 MB / 1.417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009788/28.42, allocations: 5.424 MB / 8.246 GB, free: 28.75 MB / 1.417 GB Notification: Performance of simCode: alias equations: time 0.015/28.44, allocations: 2.643 MB / 8.249 GB, free: 28.42 MB / 1.417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003808/28.44, allocations: 0.7358 MB / 8.25 GB, free: 28.41 MB / 1.417 GB Notification: Performance of SimCode: time 1.092e-06/28.44, allocations: 2.375 kB / 8.25 GB, free: 28.41 MB / 1.417 GB Notification: Performance of Templates: time 0.3308/28.77, allocations: 207.8 MB / 8.453 GB, free: 15.68 MB / 1.432 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