Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.Boiler.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.Boiler.System4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T|boi.vol.T|temSup.T|temRet.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.Boiler.System4") translateModel(Buildings.Examples.Tutorial.Boiler.System4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T_start|vol.T|TOut.T|boi.vol.T|temSup.T|temRet.T",fileNamePrefix="Buildings_9_Buildings.Examples.Tutorial.Boiler.System4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.155/2.155, 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.001031/0.001031, allocations: 176.8 kB / 487.4 MB, free: 5.047 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.495/1.495, allocations: 221.5 MB / 0.7824 GB, free: 0.9531 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.0009562/0.0009565, allocations: 103.1 kB / 0.9219 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.97e-05/1.974e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3343, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.876/6.21, allocations: 2.222 GB / 3.428 GB, free: 101.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/6.211, allocations: 89.83 kB / 3.428 GB, free: 101 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 16.69/22.9, allocations: 4.383 GB / 7.811 GB, free: 69.1 MB / 1.339 GB Notification: Performance of FrontEnd: time 2.004e-06/22.9, allocations: 1.75 kB / 7.811 GB, free: 69.1 MB / 1.339 GB Notification: Performance of Transformations before backend: time 0.002494/22.9, allocations: 292.1 kB / 7.811 GB, free: 69.05 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: 1620 * Number of variables: 1620 Notification: Performance of Generate backend data structure: time 0.04233/22.95, allocations: 9.092 MB / 7.82 GB, free: 65.48 MB / 1.339 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/22.95, allocations: 9.844 kB / 7.82 GB, free: 65.48 MB / 1.339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01538/22.96, allocations: 2.203 MB / 7.822 GB, free: 64.87 MB / 1.339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04274/23, allocations: 12.76 MB / 7.835 GB, free: 63.29 MB / 1.339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008122/23, allocations: 208.1 kB / 7.835 GB, free: 63.29 MB / 1.339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004643/23.01, allocations: 420 kB / 7.835 GB, free: 63.28 MB / 1.339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01701/23.03, allocations: 5.203 MB / 7.84 GB, free: 63.25 MB / 1.339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0299/23.06, allocations: 6.342 MB / 7.846 GB, free: 62.42 MB / 1.339 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005893/23.06, allocations: 18.86 kB / 7.846 GB, free: 62.42 MB / 1.339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002914/23.06, allocations: 9.312 kB / 7.846 GB, free: 62.42 MB / 1.339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003633/23.06, allocations: 268.7 kB / 7.847 GB, free: 62.41 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.06728/23.13, allocations: 36.9 MB / 7.883 GB, free: 43.07 MB / 1.339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006959/23.13, allocations: 3.525 MB / 7.886 GB, free: 43.01 MB / 1.339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004166/23.14, allocations: 2.223 MB / 7.888 GB, free: 42.98 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.02628/23.16, allocations: 9.21 MB / 7.897 GB, free: 40.17 MB / 1.339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00471/23.17, allocations: 2.063 MB / 7.899 GB, free: 40.05 MB / 1.339 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006833/23.18, allocations: 337.1 kB / 7.9 GB, free: 39.89 MB / 1.339 GB Notification: Performance of pre-optimization done (n=355): time 2.214e-05/23.18, allocations: 2.531 kB / 7.9 GB, free: 39.89 MB / 1.339 GB Notification: Performance of matching and sorting (n=360): time 0.03592/23.21, allocations: 9.969 MB / 7.909 GB, free: 37.57 MB / 1.339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.688e-05/23.21, allocations: 118.5 kB / 7.91 GB, free: 37.47 MB / 1.339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01835/23.23, allocations: 6.217 MB / 7.916 GB, free: 36.96 MB / 1.339 GB Notification: Performance of collectPreVariables (initialization): time 0.001493/23.23, allocations: 42.64 kB / 7.916 GB, free: 36.93 MB / 1.339 GB Notification: Performance of collectInitialEqns (initialization): time 0.006202/23.24, allocations: 4.603 MB / 7.92 GB, free: 35.59 MB / 1.339 GB Notification: Performance of collectInitialBindings (initialization): time 0.002169/23.24, allocations: 1.209 MB / 7.921 GB, free: 34.79 MB / 1.339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008589/23.24, allocations: 0.7812 kB / 7.921 GB, free: 34.79 MB / 1.339 GB Notification: Performance of setup shared object (initialization): time 0.0003693/23.24, allocations: 499.3 kB / 7.922 GB, free: 34.48 MB / 1.339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003124/23.25, allocations: 1.686 MB / 7.923 GB, free: 34.46 MB / 1.339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003715/23.25, allocations: 3.376 MB / 7.927 GB, free: 32.44 MB / 1.339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005295/23.25, allocations: 2.427 MB / 7.929 GB, free: 32.38 MB / 1.339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.571e-05/23.25, allocations: 15.39 kB / 7.929 GB, free: 32.38 MB / 1.339 GB Notification: Performance of matching and sorting (n=635) (initialization): time 0.01579/23.27, allocations: 6.25 MB / 7.935 GB, free: 31.77 MB / 1.339 GB Notification: Performance of prepare postOptimizeDAE: time 0.005427/23.28, allocations: 21.35 MB / 7.956 GB, free: 25.47 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/23.28, allocations: 39.41 kB / 7.956 GB, free: 25.47 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002857/23.28, allocations: 0.7587 MB / 7.957 GB, free: 25.43 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005287/23.28, allocations: 1.072 MB / 7.958 GB, free: 25.43 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006566/23.29, allocations: 5.837 MB / 7.964 GB, free: 21.25 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01056/23.3, allocations: 0.5991 MB / 7.964 GB, free: 21.17 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00164/23.3, allocations: 245.2 kB / 7.964 GB, free: 21.17 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/23.3, allocations: 4.969 kB / 7.964 GB, free: 21.17 MB / 1.354 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01561/23.32, allocations: 5.038 MB / 7.969 GB, free: 21.03 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000181/23.32, allocations: 42.16 kB / 7.969 GB, free: 21.03 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002745/23.32, allocations: 0.7274 MB / 7.97 GB, free: 20.99 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004793/23.33, allocations: 1.045 MB / 7.971 GB, free: 20.99 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/23.34, allocations: 7.422 MB / 7.978 GB, free: 16.48 MB / 1.354 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01089/23.35, allocations: 0.5619 MB / 7.979 GB, free: 16.38 MB / 1.354 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001799/23.35, allocations: 229.4 kB / 7.979 GB, free: 16.38 MB / 1.354 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.timTab.tab.nextTimeEvent,timTab.tab.nextTimeEvent,$PRE.timTab.tab.nextTimeEventScaled,timTab.tab.nextTimeEventScaled,$PRE.hysTOut.y,hysTOut.y,$PRE.hysTBoi.y,hysTBoi.y,and1.y,and2.y,$PRE.hysPum.y,hysPum.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (580): * Single equations (assignments): 573 * 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: 4 * 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: 2 {5 6,13 22} Notification: Performance of prepare postOptimizeDAE: time 0.002995/23.35, allocations: 259.5 kB / 7.979 GB, free: 16.24 MB / 1.354 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003801/23.36, allocations: 0.8195 MB / 7.98 GB, free: 15.8 MB / 1.354 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0159/23.37, allocations: 4.968 MB / 7.985 GB, free: 15.42 MB / 1.354 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.201e-05/23.37, allocations: 42.22 kB / 7.985 GB, free: 15.42 MB / 1.354 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.912e-05/23.37, allocations: 3.469 kB / 7.985 GB, free: 15.42 MB / 1.354 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009091/23.38, allocations: 3.696 MB / 7.989 GB, free: 15.16 MB / 1.354 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03759/23.42, allocations: 11.42 MB / 8 GB, free: 14.33 MB / 1.354 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.841e-05/23.42, allocations: 3.953 kB / 8 GB, free: 14.32 MB / 1.354 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003645/23.42, allocations: 0.6917 MB / 8.001 GB, free: 14.32 MB / 1.354 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001657/23.43, allocations: 0.5751 MB / 8.001 GB, free: 14.24 MB / 1.354 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000724/23.43, allocations: 65.02 kB / 8.001 GB, free: 14.24 MB / 1.354 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009812/23.44, allocations: 11.39 MB / 8.012 GB, free: 20.6 MB / 1.37 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/23.44, allocations: 6.312 kB / 8.012 GB, free: 20.6 MB / 1.37 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01745/23.45, allocations: 6.948 MB / 8.019 GB, free: 19.6 MB / 1.37 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00709/23.46, allocations: 1.525 MB / 8.021 GB, free: 19.05 MB / 1.37 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003796/23.46, allocations: 19.39 kB / 8.021 GB, free: 19.05 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009098/23.47, allocations: 0.5294 MB / 8.021 GB, free: 18.97 MB / 1.37 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001101/23.48, allocations: 258.6 kB / 8.021 GB, free: 18.96 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001059/23.48, allocations: 168.9 kB / 8.022 GB, free: 18.96 MB / 1.37 GB Notification: Performance of sorting global known variables: time 0.01308/23.49, allocations: 4.585 MB / 8.026 GB, free: 18.71 MB / 1.37 GB Notification: Performance of sort global known variables: time 4.81e-07/23.49, allocations: 0 / 8.026 GB, free: 18.71 MB / 1.37 GB Notification: Performance of remove unused functions: time 0.03169/23.52, allocations: 4.49 MB / 8.03 GB, free: 18.5 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: 8 ($whenCondition1,timTab.tab.nextTimeEvent,timTab.tab.nextTimeEventScaled,hysTOut.y,hysTBoi.y,and1.y,and2.y,hysPum.y) * Number of discrete states: 5 (timTab.tab.nextTimeEvent,hysTOut.y,hysTBoi.y,hysPum.y,timTab.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (345): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 1 {13 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.01198/23.53, allocations: 5.615 MB / 8.036 GB, free: 15.77 MB / 1.37 GB Notification: Performance of simCode: created initialization part: time 0.01987/23.55, allocations: 8.029 MB / 8.044 GB, free: 15.01 MB / 1.37 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/23.55, allocations: 4.938 kB / 8.044 GB, free: 15.01 MB / 1.37 GB Notification: Performance of simCode: created simulation system equations: time 0.005585/23.56, allocations: 2.756 MB / 8.046 GB, free: 14.21 MB / 1.37 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02521/23.58, allocations: 4.096 MB / 8.05 GB, free: 13.98 MB / 1.37 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03805/23.62, allocations: 13.3 MB / 8.063 GB, free: 10.06 MB / 1.37 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01001/23.63, allocations: 5.02 MB / 8.068 GB, free: 9.055 MB / 1.37 GB Notification: Performance of simCode: alias equations: time 0.02259/23.65, allocations: 3.292 MB / 8.071 GB, free: 8.652 MB / 1.37 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003733/23.66, allocations: 498.4 kB / 8.072 GB, free: 8.637 MB / 1.37 GB Notification: Performance of SimCode: time 1.062e-06/23.66, allocations: 0 / 8.072 GB, free: 8.637 MB / 1.37 GB Notification: Performance of Templates: time 0.3286/23.99, allocations: 174.3 MB / 8.242 GB, free: 4.496 MB / 1.417 GB make -j1 -f Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.makefile (rm -f Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.sim & ./Buildings_9_Buildings.Examples.Tutorial.Boiler.System4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.Boiler.System4_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_Boiler_System4.csv","../files/Buildings_9_Buildings.Examples.Tutorial.Boiler.System4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches