Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.System1.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.System1,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.System1") translateModel(Buildings.Examples.Tutorial.CDL.System1,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.System1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.243/2.243, allocations: 387.1 MB / 399.7 MB, free: 9.508 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.001042/0.001042, allocations: 176.9 kB / 492.3 MB, free: 0.6211 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.575/1.575, allocations: 221.3 MB / 0.7872 GB, free: 12.91 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.0009102/0.0009101, allocations: 91.89 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.978e-05/2.999e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3002, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.946/7.246, allocations: 2.241 GB / 3.453 GB, free: 58.83 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/7.247, allocations: 91.94 kB / 3.453 GB, free: 58.74 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 19.53/26.78, allocations: 4.45 GB / 7.903 GB, free: 69.36 MB / 1.354 GB Notification: Performance of FrontEnd: time 1.693e-06/26.78, allocations: 0.5625 kB / 7.903 GB, free: 69.36 MB / 1.354 GB Notification: Performance of Transformations before backend: time 0.002034/26.78, allocations: 312.2 kB / 7.904 GB, free: 69.3 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: 1794 * Number of variables: 1794 Notification: Performance of Generate backend data structure: time 0.03376/26.82, allocations: 9.785 MB / 7.913 GB, free: 64.92 MB / 1.354 GB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/26.82, allocations: 7.438 kB / 7.913 GB, free: 64.92 MB / 1.354 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01539/26.83, allocations: 2.373 MB / 7.915 GB, free: 64.2 MB / 1.354 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0376/26.87, allocations: 13.19 MB / 7.928 GB, free: 62.5 MB / 1.354 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006717/26.87, allocations: 0.5502 MB / 7.929 GB, free: 62.48 MB / 1.354 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002997/26.87, allocations: 0.7446 MB / 7.93 GB, free: 62.48 MB / 1.354 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02066/26.89, allocations: 7.95 MB / 7.937 GB, free: 61.52 MB / 1.354 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002276/26.9, allocations: 22.09 kB / 7.937 GB, free: 61.51 MB / 1.354 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001187/26.9, allocations: 303.2 kB / 7.938 GB, free: 61.51 MB / 1.354 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002434/26.9, allocations: 292.5 kB / 7.938 GB, free: 61.49 MB / 1.354 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01518/26.91, allocations: 6.492 MB / 7.944 GB, free: 61.43 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.08055/26.99, allocations: 40.34 MB / 7.984 GB, free: 41.24 MB / 1.354 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008585/27, allocations: 4.565 MB / 7.988 GB, free: 40.47 MB / 1.354 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004643/27.01, allocations: 2.304 MB / 7.99 GB, free: 40.43 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.03359/27.04, allocations: 10.25 MB / 8 GB, free: 37.57 MB / 1.354 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005752/27.05, allocations: 2.42 MB / 8.003 GB, free: 37.42 MB / 1.354 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006704/27.05, allocations: 0.4967 MB / 8.003 GB, free: 37.2 MB / 1.354 GB Notification: Performance of pre-optimization done (n=408): time 2.333e-05/27.05, allocations: 0 / 8.003 GB, free: 37.2 MB / 1.354 GB Notification: Performance of matching and sorting (n=416): time 0.03642/27.09, allocations: 10.9 MB / 8.014 GB, free: 34.69 MB / 1.354 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00013/27.09, allocations: 303.1 kB / 8.014 GB, free: 34.37 MB / 1.354 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01887/27.11, allocations: 7.207 MB / 8.021 GB, free: 33.75 MB / 1.354 GB Notification: Performance of collectPreVariables (initialization): time 0.00152/27.11, allocations: 139.9 kB / 8.021 GB, free: 33.72 MB / 1.354 GB Notification: Performance of collectInitialEqns (initialization): time 0.006781/27.12, allocations: 4.914 MB / 8.026 GB, free: 32.29 MB / 1.354 GB Notification: Performance of collectInitialBindings (initialization): time 0.002372/27.12, allocations: 1.443 MB / 8.028 GB, free: 31.36 MB / 1.354 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001117/27.12, allocations: 114.4 kB / 8.028 GB, free: 31.36 MB / 1.354 GB Notification: Performance of setup shared object (initialization): time 0.0005203/27.12, allocations: 0.5069 MB / 8.028 GB, free: 31.05 MB / 1.354 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004226/27.12, allocations: 1.842 MB / 8.03 GB, free: 31.04 MB / 1.354 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006036/27.13, allocations: 3.676 MB / 8.034 GB, free: 28.86 MB / 1.354 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006637/27.14, allocations: 2.485 MB / 8.036 GB, free: 28.68 MB / 1.354 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/27.14, allocations: 13.59 kB / 8.036 GB, free: 28.68 MB / 1.354 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.02203/27.16, allocations: 6.896 MB / 8.043 GB, free: 27.75 MB / 1.354 GB Notification: Performance of prepare postOptimizeDAE: time 0.006187/27.17, allocations: 22.41 MB / 8.065 GB, free: 20.06 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001306/27.17, allocations: 42.59 kB / 8.065 GB, free: 20.06 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004004/27.17, allocations: 0.949 MB / 8.066 GB, free: 19.98 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005717/27.18, allocations: 1.198 MB / 8.067 GB, free: 19.91 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008981/27.18, allocations: 7.3 MB / 8.074 GB, free: 14.25 MB / 1.37 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01242/27.2, allocations: 0.7266 MB / 8.075 GB, free: 14.12 MB / 1.37 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001649/27.2, allocations: 268.2 kB / 8.075 GB, free: 14.12 MB / 1.37 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/27.2, allocations: 5.219 kB / 8.075 GB, free: 14.12 MB / 1.37 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01891/27.22, allocations: 5.96 MB / 8.081 GB, free: 13.57 MB / 1.37 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002068/27.22, allocations: 42.81 kB / 8.081 GB, free: 13.57 MB / 1.37 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003838/27.22, allocations: 0.8874 MB / 8.082 GB, free: 13.5 MB / 1.37 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005334/27.23, allocations: 1.168 MB / 8.083 GB, free: 13.42 MB / 1.37 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/27.24, allocations: 9.096 MB / 8.092 GB, free: 23.34 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0105/27.25, allocations: 0.6865 MB / 8.092 GB, free: 23.23 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001577/27.25, allocations: 255.8 kB / 8.092 GB, free: 23.23 MB / 1.385 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 179 * 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 (641): * Single equations (assignments): 633 * 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 {3 8,13 22,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.002048/27.25, allocations: 462.6 kB / 8.093 GB, free: 23.01 MB / 1.385 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003104/27.26, allocations: 0.895 MB / 8.094 GB, free: 22.54 MB / 1.385 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01327/27.27, allocations: 5.986 MB / 8.1 GB, free: 22.04 MB / 1.385 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.033e-05/27.27, allocations: 50.62 kB / 8.1 GB, free: 22.04 MB / 1.385 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/27.27, allocations: 3.5 kB / 8.1 GB, free: 22.04 MB / 1.385 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00741/27.28, allocations: 4.328 MB / 8.104 GB, free: 21.75 MB / 1.385 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03498/27.31, allocations: 13.78 MB / 8.117 GB, free: 20.74 MB / 1.385 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/27.31, allocations: 0 / 8.117 GB, free: 20.74 MB / 1.385 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003738/27.32, allocations: 0.7981 MB / 8.118 GB, free: 20.7 MB / 1.385 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00215/27.32, allocations: 0.7272 MB / 8.119 GB, free: 20.61 MB / 1.385 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007643/27.32, allocations: 124.9 kB / 8.119 GB, free: 20.61 MB / 1.385 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0102/27.33, allocations: 13.21 MB / 8.132 GB, free: 9.168 MB / 1.385 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/27.33, allocations: 3.844 kB / 8.132 GB, free: 9.168 MB / 1.385 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01475/27.34, allocations: 8.019 MB / 8.14 GB, free: 8.055 MB / 1.385 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006948/27.35, allocations: 1.693 MB / 8.141 GB, free: 7.469 MB / 1.385 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003403/27.35, allocations: 95.27 kB / 8.141 GB, free: 7.469 MB / 1.385 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009624/27.36, allocations: 0.6454 MB / 8.142 GB, free: 7.379 MB / 1.385 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/27.36, allocations: 296 kB / 8.142 GB, free: 7.367 MB / 1.385 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001045/27.37, allocations: 195.1 kB / 8.143 GB, free: 7.367 MB / 1.385 GB Notification: Performance of sorting global known variables: time 0.01381/27.38, allocations: 5.451 MB / 8.148 GB, free: 7.035 MB / 1.385 GB Notification: Performance of sort global known variables: time 6.11e-07/27.38, allocations: 0 / 8.148 GB, free: 7.035 MB / 1.385 GB Notification: Performance of remove unused functions: time 0.03015/27.41, allocations: 5.099 MB / 8.153 GB, free: 6.797 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.01306/27.42, allocations: 6.345 MB / 8.159 GB, free: 3.781 MB / 1.385 GB Notification: Performance of simCode: created initialization part: time 0.02332/27.45, allocations: 9.464 MB / 8.168 GB, free: 2.43 MB / 1.385 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-05/27.45, allocations: 6.344 kB / 8.168 GB, free: 2.426 MB / 1.385 GB Notification: Performance of simCode: created simulation system equations: time 0.006505/27.45, allocations: 3.219 MB / 8.171 GB, free: 1.426 MB / 1.385 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02663/27.48, allocations: 4.459 MB / 8.176 GB, free: 1.156 MB / 1.385 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03861/27.52, allocations: 14.74 MB / 8.19 GB, free: 12.99 MB / 1.401 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006944/27.52, allocations: 5.347 MB / 8.195 GB, free: 11.95 MB / 1.401 GB Notification: Performance of simCode: alias equations: time 0.01988/27.54, allocations: 3.719 MB / 8.199 GB, free: 11.41 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002431/27.55, allocations: 0.5535 MB / 8.2 GB, free: 11.39 MB / 1.401 GB Notification: Performance of SimCode: time 1.263e-06/27.55, allocations: 0 / 8.2 GB, free: 11.39 MB / 1.401 GB Notification: Performance of Templates: time 1.434/28.98, allocations: 221.5 MB / 8.416 GB, free: 140.5 MB / 1.432 GB make -j1 -f Buildings_9_Buildings.Examples.Tutorial.CDL.System1.makefile (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System1.sim & ./Buildings_9_Buildings.Examples.Tutorial.CDL.System1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.Tutorial.CDL.System1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.CDL.System1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_CDL_System1.csv","../files/Buildings_9_Buildings.Examples.Tutorial.CDL.System1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches