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.159/2.159, allocations: 387.1 MB / 399.7 MB, free: 9.492 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.001129/0.001129, allocations: 171.7 kB / 492.3 MB, free: 0.6367 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.488/1.488, allocations: 221.3 MB / 0.7871 GB, free: 12.98 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.001381/0.001381, allocations: 103.9 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.014e-05/3.016e-05, allocations: 3.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3284, allocations: 142.3 MB / 1.212 GB, free: 38.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.323/6.652, allocations: 2.244 GB / 3.456 GB, free: 59.43 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/6.652, allocations: 91.94 kB / 3.456 GB, free: 59.34 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 18.82/25.47, allocations: 4.454 GB / 7.91 GB, free: 67.89 MB / 1.354 GB Notification: Performance of FrontEnd: time 2.385e-06/25.47, allocations: 0 / 7.91 GB, free: 67.89 MB / 1.354 GB Notification: Performance of Transformations before backend: time 0.002468/25.48, allocations: 323.4 kB / 7.911 GB, free: 67.83 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: 1860 * Number of variables: 1860 Notification: Performance of Generate backend data structure: time 0.0432/25.52, allocations: 9.986 MB / 7.92 GB, free: 63.37 MB / 1.354 GB Notification: Performance of prepare preOptimizeDAE: time 6.717e-05/25.52, allocations: 9.5 kB / 7.92 GB, free: 63.37 MB / 1.354 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02013/25.54, allocations: 2.397 MB / 7.923 GB, free: 62.64 MB / 1.354 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04488/25.59, allocations: 13.3 MB / 7.936 GB, free: 60.93 MB / 1.354 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008682/25.59, allocations: 0.5756 MB / 7.936 GB, free: 60.91 MB / 1.354 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003892/25.59, allocations: 0.7648 MB / 7.937 GB, free: 60.9 MB / 1.354 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02818/25.62, allocations: 8.183 MB / 7.945 GB, free: 59.93 MB / 1.354 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00033/25.62, allocations: 20.94 kB / 7.945 GB, free: 59.93 MB / 1.354 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001981/25.62, allocations: 309 kB / 7.945 GB, free: 59.93 MB / 1.354 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000306/25.62, allocations: 305.6 kB / 7.946 GB, free: 59.91 MB / 1.354 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01889/25.64, allocations: 6.654 MB / 7.952 GB, free: 59.85 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.09438/25.73, allocations: 41.01 MB / 7.992 GB, free: 39.52 MB / 1.354 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/25.74, allocations: 4.579 MB / 7.997 GB, free: 38.75 MB / 1.354 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006413/25.75, allocations: 2.393 MB / 7.999 GB, free: 38.71 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.03567/25.79, allocations: 10.43 MB / 8.009 GB, free: 35.85 MB / 1.354 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006536/25.79, allocations: 2.518 MB / 8.012 GB, free: 35.7 MB / 1.354 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007768/25.8, allocations: 0.508 MB / 8.012 GB, free: 35.48 MB / 1.354 GB Notification: Performance of pre-optimization done (n=428): time 3.17e-05/25.8, allocations: 0.6562 kB / 8.012 GB, free: 35.48 MB / 1.354 GB Notification: Performance of matching and sorting (n=436): time 0.03987/25.84, allocations: 11.2 MB / 8.023 GB, free: 32.91 MB / 1.354 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/25.84, allocations: 330.8 kB / 8.023 GB, free: 32.56 MB / 1.354 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02168/25.86, allocations: 7.341 MB / 8.031 GB, free: 31.94 MB / 1.354 GB Notification: Performance of collectPreVariables (initialization): time 0.001938/25.86, allocations: 138.5 kB / 8.031 GB, free: 31.91 MB / 1.354 GB Notification: Performance of collectInitialEqns (initialization): time 0.006837/25.87, allocations: 5.049 MB / 8.036 GB, free: 30.46 MB / 1.354 GB Notification: Performance of collectInitialBindings (initialization): time 0.002781/25.87, allocations: 1.509 MB / 8.037 GB, free: 29.5 MB / 1.354 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005648/25.88, allocations: 111.2 kB / 8.037 GB, free: 29.5 MB / 1.354 GB Notification: Performance of setup shared object (initialization): time 0.000358/25.88, allocations: 0.5122 MB / 8.038 GB, free: 29.18 MB / 1.354 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003498/25.88, allocations: 1.888 MB / 8.04 GB, free: 29.17 MB / 1.354 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004672/25.88, allocations: 3.754 MB / 8.043 GB, free: 26.95 MB / 1.354 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004468/25.89, allocations: 2.537 MB / 8.046 GB, free: 26.71 MB / 1.354 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.894e-05/25.89, allocations: 12.81 kB / 8.046 GB, free: 26.71 MB / 1.354 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01726/25.91, allocations: 7.066 MB / 8.053 GB, free: 25.66 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 0.00626/25.91, allocations: 22.47 MB / 8.075 GB, free: 18.11 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001395/25.91, allocations: 40.91 kB / 8.075 GB, free: 18.11 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003974/25.92, allocations: 0.9635 MB / 8.075 GB, free: 18.04 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006229/25.92, allocations: 1.222 MB / 8.077 GB, free: 17.96 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007689/25.93, allocations: 7.331 MB / 8.084 GB, free: 12.29 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01258/25.94, allocations: 0.7559 MB / 8.085 GB, free: 12.16 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001939/25.94, allocations: 271.8 kB / 8.085 GB, free: 12.16 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/25.94, allocations: 2.656 kB / 8.085 GB, free: 12.16 MB / 1.37 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01708/25.96, allocations: 6.109 MB / 8.091 GB, free: 11.6 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/25.96, allocations: 39 kB / 8.091 GB, free: 11.6 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003537/25.97, allocations: 0.8935 MB / 8.092 GB, free: 11.53 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006392/25.97, allocations: 1.19 MB / 8.093 GB, free: 11.45 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01512/25.99, allocations: 9.098 MB / 8.102 GB, free: 21.43 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01408/26, allocations: 0.7035 MB / 8.102 GB, free: 21.32 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001994/26, allocations: 264.9 kB / 8.103 GB, free: 21.32 MB / 1.385 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (660): * Single equations (assignments): 652 * 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.003746/26.01, allocations: 466 kB / 8.103 GB, free: 21.1 MB / 1.385 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004679/26.01, allocations: 0.9147 MB / 8.104 GB, free: 20.61 MB / 1.385 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02053/26.03, allocations: 6.129 MB / 8.11 GB, free: 20.12 MB / 1.385 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.15e-05/26.03, allocations: 45.81 kB / 8.11 GB, free: 20.12 MB / 1.385 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-05/26.03, allocations: 2.672 kB / 8.11 GB, free: 20.12 MB / 1.385 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01192/26.04, allocations: 4.454 MB / 8.114 GB, free: 19.83 MB / 1.385 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05166/26.1, allocations: 14.14 MB / 8.128 GB, free: 18.82 MB / 1.385 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.459e-05/26.1, allocations: 0 / 8.128 GB, free: 18.82 MB / 1.385 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004552/26.1, allocations: 0.8347 MB / 8.129 GB, free: 18.78 MB / 1.385 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002396/26.1, allocations: 0.7241 MB / 8.13 GB, free: 18.67 MB / 1.385 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001216/26.1, allocations: 134.6 kB / 8.13 GB, free: 18.67 MB / 1.385 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.011/26.12, allocations: 13.23 MB / 8.143 GB, free: 7.227 MB / 1.385 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/26.12, allocations: 3.938 kB / 8.143 GB, free: 7.227 MB / 1.385 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02347/26.14, allocations: 8.243 MB / 8.151 GB, free: 6.082 MB / 1.385 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008883/26.15, allocations: 1.739 MB / 8.153 GB, free: 5.477 MB / 1.385 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004937/26.15, allocations: 104.1 kB / 8.153 GB, free: 5.473 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0107/26.16, allocations: 0.6622 MB / 8.153 GB, free: 5.387 MB / 1.385 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001441/26.16, allocations: 303.8 kB / 8.154 GB, free: 5.379 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001467/26.17, allocations: 203.5 kB / 8.154 GB, free: 5.379 MB / 1.385 GB Notification: Performance of sorting global known variables: time 0.01636/26.18, allocations: 5.556 MB / 8.159 GB, free: 5.043 MB / 1.385 GB Notification: Performance of sort global known variables: time 5.01e-07/26.18, allocations: 0 / 8.159 GB, free: 5.043 MB / 1.385 GB Notification: Performance of remove unused functions: time 0.0352/26.22, allocations: 5.143 MB / 8.164 GB, free: 4.805 MB / 1.385 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 30 (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,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (432): * Single equations (assignments): 409 * 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.01577/26.23, allocations: 6.349 MB / 8.17 GB, free: 1.785 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.02583/26.26, allocations: 9.605 MB / 8.18 GB, free: 440 kB / 1.385 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-05/26.26, allocations: 6.812 kB / 8.18 GB, free: 436 kB / 1.385 GB Notification: Performance of simCode: created simulation system equations: time 0.007599/26.27, allocations: 3.347 MB / 8.183 GB, free: 15.41 MB / 1.401 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02777/26.3, allocations: 4.474 MB / 8.187 GB, free: 15.15 MB / 1.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0471/26.34, allocations: 15.1 MB / 8.202 GB, free: 10.89 MB / 1.401 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01397/26.36, allocations: 5.433 MB / 8.208 GB, free: 9.852 MB / 1.401 GB Notification: Performance of simCode: alias equations: time 0.02619/26.38, allocations: 3.747 MB / 8.211 GB, free: 9.305 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003454/26.39, allocations: 0.5599 MB / 8.212 GB, free: 9.293 MB / 1.401 GB Notification: Performance of SimCode: time 1.172e-06/26.39, allocations: 0 / 8.212 GB, free: 9.293 MB / 1.401 GB Notification: Performance of Templates: time 1.594/27.98, allocations: 223.9 MB / 8.43 GB, free: 138.7 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