Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 100 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.424/2.424, allocations: 390.3 MB / 0.6653 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003405, allocations: 16 kB / 0.8145 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.686/0.6864, allocations: 142.3 MB / 0.9535 GB, free: 8.324 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.AirHeater_T): time 0.1963/0.8828, allocations: 193.9 MB / 1.143 GB, free: 14 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02353/0.9063, allocations: 14.79 MB / 1.157 GB, free: 15.18 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00345/0.9098, allocations: 75.5 kB / 1.157 GB, free: 15.11 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.004108/0.914, allocations: 1.133 MB / 1.158 GB, free: 13.97 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.01081/0.9248, allocations: 3.304 MB / 1.162 GB, free: 10.66 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.008024/0.9328, allocations: 2.118 MB / 1.164 GB, free: 8.562 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.007981/0.9408, allocations: 2.917 MB / 1.167 GB, free: 5.645 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002475/0.9433, allocations: 1.406 MB / 1.168 GB, free: 4.207 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004886/0.9482, allocations: 1.919 MB / 1.17 GB, free: 2.281 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002111/0.9503, allocations: 1.062 MB / 1.171 GB, free: 1.215 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0002556/0.9506, allocations: 80 kB / 1.171 GB, free: 1.137 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004203/0.9548, allocations: 1.775 MB / 1.173 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0006672/0.9555, allocations: 0.5763 MB / 1.173 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0007199/0.9562, allocations: 460.5 kB / 1.174 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00414/0.9604, allocations: 2.821 MB / 1.176 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.9604, allocations: 4 kB / 1.176 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.086e-06/0.9604, allocations: 4 kB / 1.176 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.889e-05/0.9605, allocations: 0 / 1.176 GB, free: 11.49 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.005058/0.9655, allocations: 2.406 MB / 1.179 GB, free: 9.016 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.9656, allocations: 11.97 kB / 1.179 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00566/0.9713, allocations: 0.9064 MB / 1.18 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004355/0.9757, allocations: 1.65 MB / 1.181 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003927/0.9761, allocations: 174.5 kB / 1.181 GB, free: 6.223 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002462/0.9763, allocations: 139.9 kB / 1.182 GB, free: 6.086 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003321/0.9797, allocations: 1.688 MB / 1.183 GB, free: 4.328 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.23e-05/0.9797, allocations: 7.938 kB / 1.183 GB, free: 4.32 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001404/0.9799, allocations: 59.95 kB / 1.183 GB, free: 4.262 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.289e-05/0.9799, allocations: 46.52 kB / 1.183 GB, free: 4.215 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003778/0.9837, allocations: 1.556 MB / 1.185 GB, free: 2.652 MB / 0.9356 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01209/0.9958, allocations: 7.776 MB / 1.192 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0032/0.999, allocations: 1.717 MB / 1.194 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001183/1, allocations: 0.644 MB / 1.195 GB, free: 7.695 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001438/1.002, allocations: 0.6102 MB / 1.195 GB, free: 7.074 MB / 0.9512 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000893/1.003, allocations: 123.2 kB / 1.196 GB, free: 6.953 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=85): time 3.928e-06/1.003, allocations: 0 / 1.196 GB, free: 6.953 MB / 0.9512 GB Notification: Performance of matching and sorting (n=85): time 0.004704/1.007, allocations: 1.754 MB / 1.197 GB, free: 5.172 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/1.007, allocations: 64.41 kB / 1.197 GB, free: 5.098 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002271/1.01, allocations: 1.583 MB / 1.199 GB, free: 3.473 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001453/1.01, allocations: 45.7 kB / 1.199 GB, free: 3.422 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007496/1.011, allocations: 0.9127 MB / 1.2 GB, free: 2.5 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/1.011, allocations: 307.6 kB / 1.2 GB, free: 2.195 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.897e-05/1.011, allocations: 20 kB / 1.2 GB, free: 2.176 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001242/1.011, allocations: 345.9 kB / 1.2 GB, free: 1.832 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/1.012, allocations: 482.3 kB / 1.201 GB, free: 1.359 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/1.014, allocations: 0.8098 MB / 1.202 GB, free: 420 kB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/1.015, allocations: 0.5746 MB / 1.202 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/1.015, allocations: 4 kB / 1.202 GB, free: 15.83 MB / 0.9669 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003268/1.018, allocations: 1.497 MB / 1.204 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.001179/1.019, allocations: 3.3 MB / 1.207 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/1.02, allocations: 8 kB / 1.207 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/1.02, allocations: 16.77 kB / 1.207 GB, free: 10.73 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/1.021, allocations: 299.6 kB / 1.207 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.099e-05/1.021, allocations: 19.94 kB / 1.207 GB, free: 10.42 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/1.023, allocations: 188.3 kB / 1.207 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/1.023, allocations: 51.98 kB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/1.023, allocations: 6.188 kB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002784/1.026, allocations: 1.317 MB / 1.209 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/1.026, allocations: 12.69 kB / 1.209 GB, free: 8.844 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/1.026, allocations: 12 kB / 1.209 GB, free: 8.832 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/1.027, allocations: 303.5 kB / 1.209 GB, free: 8.535 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.743e-05/1.027, allocations: 19.94 kB / 1.209 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/1.029, allocations: 184.3 kB / 1.209 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.929e-05/1.029, allocations: 51.98 kB / 1.209 GB, free: 8.281 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 130 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009164/1.03, allocations: 0.5356 MB / 1.21 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002322/1.03, allocations: 177.8 kB / 1.21 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002976/1.033, allocations: 1.302 MB / 1.211 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/1.033, allocations: 8 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/1.033, allocations: 4 kB / 1.211 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00246/1.035, allocations: 1.336 MB / 1.213 GB, free: 4.805 MB / 0.9669 GB Warning: The model contains alias variables with redundant start and/or conflicting 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 postOpt removeSimpleEquations (simulation): time 0.006033/1.041, allocations: 3.151 MB / 1.216 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.547e-06/1.041, allocations: 4 kB / 1.216 GB, free: 1.516 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/1.042, allocations: 211.9 kB / 1.216 GB, free: 1.309 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002328/1.043, allocations: 48.83 kB / 1.216 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.956e-05/1.043, allocations: 23.98 kB / 1.216 GB, free: 1.234 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/1.044, allocations: 1.448 MB / 1.217 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.044, allocations: 3.938 kB / 1.217 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004112/1.048, allocations: 1.997 MB / 1.219 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007484/1.049, allocations: 350.8 kB / 1.22 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/1.049, allocations: 16 kB / 1.22 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001361/1.051, allocations: 163.7 kB / 1.22 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/1.051, allocations: 76.5 kB / 1.22 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.588e-05/1.051, allocations: 27.98 kB / 1.22 GB, free: 12.92 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001509/1.052, allocations: 1.069 MB / 1.221 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.91e-07/1.052, allocations: 0 / 1.221 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002659/1.055, allocations: 0.9741 MB / 1.222 GB, free: 10.85 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001415/1.056, allocations: 0.6013 MB / 1.222 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.004624/1.061, allocations: 1.93 MB / 1.224 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.061, allocations: 0 / 1.224 GB, free: 8.438 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001575/1.063, allocations: 0.6671 MB / 1.225 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003738/1.066, allocations: 0.7795 MB / 1.226 GB, free: 6.988 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008959/1.075, allocations: 4.464 MB / 1.23 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001674/1.077, allocations: 1.526 MB / 1.232 GB, free: 0.9062 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002702/1.08, allocations: 470.5 kB / 1.232 GB, free: 452 kB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006164/1.08, allocations: 135.4 kB / 1.232 GB, free: 316 kB / 0.9825 GB Notification: Performance of SimCode: time 1.152e-06/1.081, allocations: 3.938 kB / 1.232 GB, free: 312 kB / 0.9825 GB Notification: Performance of Templates: time 0.5465/1.627, allocations: 30.47 MB / 1.262 GB, free: 273.6 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_AirHeater_T.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches