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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.48/2.48, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001292/0.001292, allocations: 184.5 kB / 487.4 MB, free: 5.059 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.66/1.66, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 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.001091/0.001091, allocations: 105.2 kB / 0.9219 GB, free: 2.242 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.579e-05/1.583e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3054, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.869/6.174, allocations: 2.241 GB / 3.447 GB, free: 57.33 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/6.174, allocations: 87.39 kB / 3.447 GB, free: 57.29 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 18.63/24.81, allocations: 4.43 GB / 7.877 GB, free: 65.38 MB / 1.339 GB Notification: Performance of FrontEnd: time 1.693e-06/24.81, allocations: 0 / 7.877 GB, free: 65.38 MB / 1.339 GB Notification: Performance of Transformations before backend: time 0.00226/24.81, allocations: 321.2 kB / 7.878 GB, free: 65.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: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.03378/24.84, allocations: 9.815 MB / 7.887 GB, free: 60.93 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/24.84, allocations: 7.719 kB / 7.887 GB, free: 60.93 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01543/24.86, allocations: 2.375 MB / 7.89 GB, free: 60.21 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03992/24.9, allocations: 13.21 MB / 7.902 GB, free: 58.5 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005602/24.9, allocations: 233.1 kB / 7.903 GB, free: 58.5 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00328/24.9, allocations: 451.5 kB / 7.903 GB, free: 58.5 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01787/24.92, allocations: 6.14 MB / 7.909 GB, free: 58.46 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02549/24.94, allocations: 6.995 MB / 7.916 GB, free: 57.53 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004737/24.95, allocations: 19.16 kB / 7.916 GB, free: 57.53 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002579/24.95, allocations: 9.938 kB / 7.916 GB, free: 57.53 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003051/24.95, allocations: 297.4 kB / 7.916 GB, free: 57.51 MB / 1.339 GB Warning: The model contains alias variables with conflicting start and/or 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.06443/25.01, allocations: 39.28 MB / 7.955 GB, free: 37.05 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006915/25.02, allocations: 4.103 MB / 7.959 GB, free: 36.95 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004025/25.02, allocations: 2.409 MB / 7.961 GB, free: 36.9 MB / 1.339 GB Warning: The model contains alias variables with conflicting start and/or 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.03046/25.05, allocations: 10.06 MB / 7.971 GB, free: 34.02 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003802/25.06, allocations: 2.341 MB / 7.973 GB, free: 33.87 MB / 1.339 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00536/25.06, allocations: 363.5 kB / 7.973 GB, free: 33.68 MB / 1.339 GB Notification: Performance of pre-optimization done (n=412): time 1.354e-05/25.06, allocations: 0 / 7.973 GB, free: 33.68 MB / 1.339 GB Notification: Performance of matching and sorting (n=417): time 0.03553/25.1, allocations: 11.06 MB / 7.984 GB, free: 31.13 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.473e-05/25.1, allocations: 307.8 kB / 7.984 GB, free: 30.82 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01273/25.11, allocations: 6.637 MB / 7.991 GB, free: 30.25 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.001327/25.11, allocations: 33.45 kB / 7.991 GB, free: 30.21 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.004769/25.12, allocations: 4.91 MB / 7.996 GB, free: 28.73 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.002001/25.12, allocations: 1.386 MB / 7.997 GB, free: 27.8 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004193/25.12, allocations: 0 / 7.997 GB, free: 27.8 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0002747/25.12, allocations: 0.5179 MB / 7.998 GB, free: 27.49 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002793/25.12, allocations: 1.835 MB / 7.999 GB, free: 27.47 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003579/25.13, allocations: 3.618 MB / 8.003 GB, free: 25.3 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005666/25.13, allocations: 2.628 MB / 8.006 GB, free: 25.1 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.629e-05/25.13, allocations: 9.25 kB / 8.006 GB, free: 25.1 MB / 1.339 GB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01611/25.15, allocations: 6.768 MB / 8.012 GB, free: 24.12 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.006011/25.16, allocations: 22.01 MB / 8.034 GB, free: 16.7 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/25.16, allocations: 38.44 kB / 8.034 GB, free: 16.7 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003237/25.16, allocations: 0.8479 MB / 8.035 GB, free: 16.63 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005458/25.16, allocations: 1.205 MB / 8.036 GB, free: 16.55 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007803/25.17, allocations: 7.25 MB / 8.043 GB, free: 11.06 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009955/25.18, allocations: 0.5997 MB / 8.043 GB, free: 10.94 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001469/25.18, allocations: 263.3 kB / 8.044 GB, free: 10.94 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/25.18, allocations: 6.781 kB / 8.044 GB, free: 10.94 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01418/25.2, allocations: 5.508 MB / 8.049 GB, free: 10.43 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-05/25.2, allocations: 40.84 kB / 8.049 GB, free: 10.43 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00292/25.2, allocations: 0.8026 MB / 8.05 GB, free: 10.37 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004986/25.21, allocations: 1.182 MB / 8.051 GB, free: 10.28 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/25.22, allocations: 8.819 MB / 8.06 GB, free: 20.5 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009148/25.23, allocations: 0.5675 MB / 8.06 GB, free: 20.39 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001351/25.23, allocations: 254.8 kB / 8.06 GB, free: 20.39 MB / 1.37 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.001571/25.23, allocations: 261 kB / 8.061 GB, free: 20.18 MB / 1.37 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002546/25.23, allocations: 0.8961 MB / 8.062 GB, free: 19.7 MB / 1.37 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01211/25.24, allocations: 5.731 MB / 8.067 GB, free: 19.21 MB / 1.37 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.688e-05/25.24, allocations: 49.19 kB / 8.067 GB, free: 19.21 MB / 1.37 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/25.24, allocations: 7.844 kB / 8.067 GB, free: 19.2 MB / 1.37 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007438/25.25, allocations: 4.204 MB / 8.071 GB, free: 18.89 MB / 1.37 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02887/25.28, allocations: 12.79 MB / 8.084 GB, free: 17.96 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.316e-05/25.28, allocations: 3.469 kB / 8.084 GB, free: 17.96 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003552/25.28, allocations: 0.8017 MB / 8.085 GB, free: 17.92 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/25.29, allocations: 0.6492 MB / 8.085 GB, free: 17.83 MB / 1.37 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004271/25.29, allocations: 76.56 kB / 8.085 GB, free: 17.83 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009482/25.3, allocations: 12.92 MB / 8.098 GB, free: 6.871 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/25.3, allocations: 3.625 kB / 8.098 GB, free: 6.871 MB / 1.37 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/25.31, allocations: 7.844 MB / 8.106 GB, free: 5.742 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005632/25.31, allocations: 1.684 MB / 8.107 GB, free: 5.16 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002743/25.32, allocations: 32.77 kB / 8.107 GB, free: 5.152 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007882/25.33, allocations: 0.5773 MB / 8.108 GB, free: 5.059 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007251/25.33, allocations: 284.5 kB / 8.108 GB, free: 5.055 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007277/25.33, allocations: 197.5 kB / 8.108 GB, free: 5.055 MB / 1.37 GB Notification: Performance of sorting global known variables: time 0.01076/25.34, allocations: 4.907 MB / 8.113 GB, free: 4.77 MB / 1.37 GB Notification: Performance of sort global known variables: time 4.31e-07/25.34, allocations: 0 / 8.113 GB, free: 4.77 MB / 1.37 GB Notification: Performance of remove unused functions: time 0.02591/25.36, allocations: 4.809 MB / 8.118 GB, free: 4.543 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 (413): * Single equations (assignments): 390 * 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.01021/25.37, allocations: 6.141 MB / 8.124 GB, free: 1.508 MB / 1.37 GB Notification: Performance of simCode: created initialization part: time 0.01808/25.39, allocations: 8.944 MB / 8.132 GB, free: 304 kB / 1.37 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-05/25.39, allocations: 9.969 kB / 8.132 GB, free: 304 kB / 1.37 GB Notification: Performance of simCode: created simulation system equations: time 0.005581/25.4, allocations: 3.116 MB / 8.136 GB, free: 15.36 MB / 1.385 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0237/25.42, allocations: 4.3 MB / 8.14 GB, free: 15.08 MB / 1.385 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03456/25.46, allocations: 14.58 MB / 8.154 GB, free: 4.707 MB / 1.385 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006844/25.46, allocations: 5.356 MB / 8.159 GB, free: 1.297 MB / 1.385 GB Notification: Performance of simCode: alias equations: time 0.02204/25.49, allocations: 3.773 MB / 8.163 GB, free: 15.02 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003064/25.49, allocations: 0.5394 MB / 8.163 GB, free: 14.56 MB / 1.401 GB Notification: Performance of SimCode: time 1.283e-06/25.49, allocations: 4 kB / 8.163 GB, free: 14.55 MB / 1.401 GB Notification: Performance of Templates: time 1.302/26.79, allocations: 186.8 MB / 8.346 GB, free: 135.1 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