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.319/2.319, allocations: 387.1 MB / 399.7 MB, free: 9.531 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.001138/0.001138, allocations: 176.2 kB / 492.3 MB, free: 0.6055 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.574/1.574, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009156/0.0009156, allocations: 95.88 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.838e-05/3.841e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3464, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.095/6.442, allocations: 2.242 GB / 3.454 GB, free: 35.11 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/6.442, allocations: 92.2 kB / 3.454 GB, free: 35.06 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 19.7/26.14, allocations: 4.451 GB / 7.905 GB, free: 67.63 MB / 1.354 GB Notification: Performance of FrontEnd: time 2.484e-06/26.14, allocations: 0 / 7.905 GB, free: 67.63 MB / 1.354 GB Notification: Performance of Transformations before backend: time 0.002926/26.14, allocations: 320.5 kB / 7.906 GB, free: 67.57 MB / 1.354 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.0398/26.18, allocations: 9.819 MB / 7.915 GB, free: 63.18 MB / 1.354 GB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/26.18, allocations: 13.19 kB / 7.915 GB, free: 63.18 MB / 1.354 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01743/26.2, allocations: 2.378 MB / 7.917 GB, free: 62.46 MB / 1.354 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04565/26.24, allocations: 13.21 MB / 7.93 GB, free: 60.75 MB / 1.354 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009577/26.25, allocations: 0.5559 MB / 7.931 GB, free: 60.73 MB / 1.354 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004174/26.25, allocations: 0.7496 MB / 7.932 GB, free: 60.72 MB / 1.354 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03132/26.28, allocations: 8.006 MB / 7.939 GB, free: 59.75 MB / 1.354 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006649/26.28, allocations: 21.62 kB / 7.939 GB, free: 59.75 MB / 1.354 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003522/26.29, allocations: 300.4 kB / 7.94 GB, free: 59.75 MB / 1.354 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004289/26.29, allocations: 293.6 kB / 7.94 GB, free: 59.73 MB / 1.354 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02117/26.31, allocations: 6.527 MB / 7.946 GB, free: 59.66 MB / 1.354 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.08842/26.4, allocations: 40.48 MB / 7.986 GB, free: 39.34 MB / 1.354 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009302/26.41, allocations: 4.601 MB / 7.99 GB, free: 38.57 MB / 1.354 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00504/26.41, allocations: 2.311 MB / 7.993 GB, free: 38.54 MB / 1.354 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.03454/26.44, allocations: 10.27 MB / 8.003 GB, free: 35.66 MB / 1.354 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00656/26.45, allocations: 2.434 MB / 8.005 GB, free: 35.5 MB / 1.354 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007459/26.46, allocations: 0.4941 MB / 8.006 GB, free: 35.29 MB / 1.354 GB Notification: Performance of pre-optimization done (n=408): time 3.072e-05/26.46, allocations: 0 / 8.006 GB, free: 35.29 MB / 1.354 GB Notification: Performance of matching and sorting (n=416): time 0.04159/26.5, allocations: 10.91 MB / 8.016 GB, free: 32.73 MB / 1.354 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/26.5, allocations: 309.6 kB / 8.017 GB, free: 32.41 MB / 1.354 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0231/26.52, allocations: 7.252 MB / 8.024 GB, free: 31.8 MB / 1.354 GB Notification: Performance of collectPreVariables (initialization): time 0.001949/26.53, allocations: 137.5 kB / 8.024 GB, free: 31.76 MB / 1.354 GB Notification: Performance of collectInitialEqns (initialization): time 0.009014/26.53, allocations: 4.964 MB / 8.029 GB, free: 30.32 MB / 1.354 GB Notification: Performance of collectInitialBindings (initialization): time 0.003288/26.54, allocations: 1.437 MB / 8.03 GB, free: 29.4 MB / 1.354 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001509/26.54, allocations: 112.4 kB / 8.03 GB, free: 29.4 MB / 1.354 GB Notification: Performance of setup shared object (initialization): time 0.0006807/26.54, allocations: 0.5162 MB / 8.031 GB, free: 29.09 MB / 1.354 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005014/26.55, allocations: 1.846 MB / 8.032 GB, free: 29.07 MB / 1.354 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006688/26.55, allocations: 3.666 MB / 8.036 GB, free: 26.89 MB / 1.354 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005927/26.56, allocations: 2.488 MB / 8.038 GB, free: 26.66 MB / 1.354 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.011e-05/26.56, allocations: 11.56 kB / 8.038 GB, free: 26.66 MB / 1.354 GB Notification: Performance of matching and sorting (n=699) (initialization): time 0.02187/26.58, allocations: 6.877 MB / 8.045 GB, free: 25.62 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 0.008155/26.59, allocations: 22.21 MB / 8.067 GB, free: 18.21 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001666/26.59, allocations: 37.56 kB / 8.067 GB, free: 18.21 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004406/26.59, allocations: 0.9557 MB / 8.068 GB, free: 18.13 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006377/26.6, allocations: 1.203 MB / 8.069 GB, free: 18.05 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008856/26.61, allocations: 7.315 MB / 8.076 GB, free: 12.39 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01209/26.62, allocations: 0.7271 MB / 8.077 GB, free: 12.27 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001902/26.62, allocations: 266.5 kB / 8.077 GB, free: 12.27 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/26.62, allocations: 7.906 kB / 8.077 GB, free: 12.27 MB / 1.37 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.018/26.64, allocations: 5.94 MB / 8.083 GB, free: 11.72 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001775/26.64, allocations: 40.5 kB / 8.083 GB, free: 11.72 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003684/26.64, allocations: 0.8931 MB / 8.084 GB, free: 11.65 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00623/26.65, allocations: 1.171 MB / 8.085 GB, free: 11.57 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/26.66, allocations: 9.074 MB / 8.094 GB, free: 21.55 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01133/26.67, allocations: 0.6941 MB / 8.095 GB, free: 21.44 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001627/26.68, allocations: 253 kB / 8.095 GB, free: 21.44 MB / 1.385 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 (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 {(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 3 {4 7,13 22,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.003056/26.68, allocations: 452.1 kB / 8.095 GB, free: 21.23 MB / 1.385 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004/26.68, allocations: 0.9061 MB / 8.096 GB, free: 20.74 MB / 1.385 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0173/26.7, allocations: 5.985 MB / 8.102 GB, free: 20.25 MB / 1.385 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.513e-05/26.7, allocations: 46.28 kB / 8.102 GB, free: 20.25 MB / 1.385 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.85e-05/26.7, allocations: 4.922 kB / 8.102 GB, free: 20.25 MB / 1.385 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009291/26.71, allocations: 4.343 MB / 8.106 GB, free: 19.95 MB / 1.385 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03913/26.75, allocations: 13.82 MB / 8.12 GB, free: 18.94 MB / 1.385 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/26.75, allocations: 3.125 kB / 8.12 GB, free: 18.94 MB / 1.385 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003982/26.75, allocations: 0.8009 MB / 8.12 GB, free: 18.9 MB / 1.385 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002177/26.76, allocations: 0.7263 MB / 8.121 GB, free: 18.79 MB / 1.385 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009003/26.76, allocations: 125.9 kB / 8.121 GB, free: 18.79 MB / 1.385 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01099/26.77, allocations: 13.21 MB / 8.134 GB, free: 7.348 MB / 1.385 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/26.77, allocations: 0 / 8.134 GB, free: 7.348 MB / 1.385 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01855/26.79, allocations: 8.023 MB / 8.142 GB, free: 6.227 MB / 1.385 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007982/26.79, allocations: 1.702 MB / 8.144 GB, free: 5.637 MB / 1.385 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004202/26.8, allocations: 94.23 kB / 8.144 GB, free: 5.637 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009779/26.81, allocations: 0.6528 MB / 8.144 GB, free: 5.543 MB / 1.385 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001233/26.81, allocations: 290.7 kB / 8.145 GB, free: 5.531 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001137/26.81, allocations: 197.7 kB / 8.145 GB, free: 5.531 MB / 1.385 GB Notification: Performance of sorting global known variables: time 0.01435/26.83, allocations: 5.486 MB / 8.15 GB, free: 5.199 MB / 1.385 GB Notification: Performance of sort global known variables: time 7.12e-07/26.83, allocations: 1.969 kB / 8.15 GB, free: 5.199 MB / 1.385 GB Notification: Performance of remove unused functions: time 0.03037/26.86, allocations: 5.101 MB / 8.155 GB, free: 4.969 MB / 1.385 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 (412): * Single equations (assignments): 389 * 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.01323/26.87, allocations: 6.349 MB / 8.161 GB, free: 1.664 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.02264/26.89, allocations: 9.39 MB / 8.171 GB, free: 316 kB / 1.385 GB Notification: Performance of simCode: created event and clocks part: time 1.892e-05/26.89, allocations: 5.812 kB / 8.171 GB, free: 312 kB / 1.385 GB Notification: Performance of simCode: created simulation system equations: time 0.006302/26.9, allocations: 3.228 MB / 8.174 GB, free: 15.3 MB / 1.401 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02494/26.92, allocations: 4.457 MB / 8.178 GB, free: 15.04 MB / 1.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03648/26.96, allocations: 14.8 MB / 8.193 GB, free: 10.85 MB / 1.401 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008344/26.97, allocations: 5.361 MB / 8.198 GB, free: 9.809 MB / 1.401 GB Notification: Performance of simCode: alias equations: time 0.01879/26.99, allocations: 3.74 MB / 8.201 GB, free: 9.262 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002205/26.99, allocations: 0.5502 MB / 8.202 GB, free: 9.246 MB / 1.401 GB Notification: Performance of SimCode: time 1.283e-06/26.99, allocations: 0 / 8.202 GB, free: 9.246 MB / 1.401 GB Notification: Performance of Templates: time 1.513/28.5, allocations: 221.9 MB / 8.419 GB, free: 140.2 MB / 1.432 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