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/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.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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.406/2.406, allocations: 390.3 MB / 405.3 MB, free: 13.53 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.001149/0.001149, allocations: 173.2 kB / 498.1 MB, free: 5.781 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.62/1.62, allocations: 223.2 MB / 0.7949 GB, free: 17.96 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.001476/0.001476, allocations: 92.33 kB / 0.9346 GB, free: 6.297 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004001/0.0004002, allocations: 9.406 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3029, allocations: 142.3 MB / 1.223 GB, free: 114.4 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.563/4.866, allocations: 1.961 GB / 3.184 GB, free: 51.16 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/4.866, allocations: 104.5 kB / 3.184 GB, free: 51.05 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 8.587/13.45, allocations: 2.091 GB / 5.275 GB, free: 166.8 MB / 1.182 GB Notification: Performance of FrontEnd: time 2.094e-06/13.45, allocations: 0 / 5.275 GB, free: 166.8 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0004488/13.45, allocations: 56.41 kB / 5.275 GB, free: 166.8 MB / 1.182 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.01071/13.46, allocations: 2.903 MB / 5.277 GB, free: 164.1 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/13.46, allocations: 12.03 kB / 5.277 GB, free: 164.1 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006195/13.47, allocations: 0.8676 MB / 5.278 GB, free: 163.2 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008314/13.48, allocations: 2.23 MB / 5.28 GB, free: 161 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001907/13.48, allocations: 106.6 kB / 5.281 GB, free: 160.9 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007091/13.48, allocations: 136 kB / 5.281 GB, free: 160.8 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004821/13.48, allocations: 1.594 MB / 5.282 GB, free: 159.1 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.899e-05/13.48, allocations: 3.891 kB / 5.282 GB, free: 159.1 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003084/13.48, allocations: 52 kB / 5.282 GB, free: 159.1 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.633e-05/13.48, allocations: 58.28 kB / 5.282 GB, free: 159 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002968/13.49, allocations: 1.321 MB / 5.284 GB, free: 157.7 MB / 1.182 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.01074/13.5, allocations: 7.495 MB / 5.291 GB, free: 149.8 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002105/13.5, allocations: 1.539 MB / 5.292 GB, free: 148.1 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000996/13.5, allocations: 0.7603 MB / 5.293 GB, free: 147.2 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00104/13.5, allocations: 0.5509 MB / 5.294 GB, free: 146.7 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001127/13.5, allocations: 118.2 kB / 5.294 GB, free: 146.5 MB / 1.182 GB Notification: Performance of pre-optimization done (n=86): time 3.948e-06/13.5, allocations: 0 / 5.294 GB, free: 146.5 MB / 1.182 GB Notification: Performance of matching and sorting (n=86): time 0.003911/13.51, allocations: 1.575 MB / 5.295 GB, free: 145 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/13.51, allocations: 119.8 kB / 5.295 GB, free: 144.8 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002307/13.51, allocations: 1.335 MB / 5.297 GB, free: 143.5 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0001753/13.51, allocations: 52.89 kB / 5.297 GB, free: 143.4 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007966/13.51, allocations: 0.9152 MB / 5.298 GB, free: 142.5 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.000253/13.51, allocations: 298.3 kB / 5.298 GB, free: 142.2 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-05/13.51, allocations: 24 kB / 5.298 GB, free: 142.2 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 8.665e-05/13.51, allocations: 345.9 kB / 5.298 GB, free: 141.9 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008542/13.51, allocations: 419.8 kB / 5.299 GB, free: 141.4 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009879/13.51, allocations: 0.7614 MB / 5.3 GB, free: 140.5 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009462/13.51, allocations: 0.5336 MB / 5.3 GB, free: 140 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/13.51, allocations: 4 kB / 5.3 GB, free: 140 MB / 1.182 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002698/13.52, allocations: 1.372 MB / 5.301 GB, free: 138.7 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006549/13.52, allocations: 3.389 MB / 5.305 GB, free: 135 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/13.52, allocations: 17.25 kB / 5.305 GB, free: 135 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.332e-05/13.52, allocations: 19.41 kB / 5.305 GB, free: 135 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/13.52, allocations: 267.6 kB / 5.305 GB, free: 134.7 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.059e-05/13.52, allocations: 19.94 kB / 5.305 GB, free: 134.7 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/13.52, allocations: 168.9 kB / 5.305 GB, free: 134.6 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/13.52, allocations: 51.97 kB / 5.305 GB, free: 134.5 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/13.52, allocations: 4 kB / 5.305 GB, free: 134.5 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002275/13.52, allocations: 1.196 MB / 5.306 GB, free: 133.3 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/13.52, allocations: 8 kB / 5.306 GB, free: 133.3 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/13.52, allocations: 16 kB / 5.306 GB, free: 133.3 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/13.52, allocations: 266.3 kB / 5.307 GB, free: 133 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/13.52, allocations: 19.94 kB / 5.307 GB, free: 133 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/13.53, allocations: 172.3 kB / 5.307 GB, free: 132.9 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/13.53, allocations: 51.98 kB / 5.307 GB, free: 132.8 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (133): * Single equations (assignments): 131 * 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.001269/13.53, allocations: 0.5421 MB / 5.307 GB, free: 132.3 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004478/13.53, allocations: 177.8 kB / 5.308 GB, free: 132.1 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/13.53, allocations: 1.165 MB / 5.309 GB, free: 130.9 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-06/13.53, allocations: 9.219 kB / 5.309 GB, free: 130.9 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/13.53, allocations: 0 / 5.309 GB, free: 130.9 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001819/13.53, allocations: 1.224 MB / 5.31 GB, free: 129.6 MB / 1.182 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.006299/13.54, allocations: 2.858 MB / 5.313 GB, free: 126.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/13.54, allocations: 0 / 5.313 GB, free: 126.7 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009334/13.54, allocations: 185.5 kB / 5.313 GB, free: 126.5 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002437/13.54, allocations: 48.81 kB / 5.313 GB, free: 126.5 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-05/13.54, allocations: 25.8 kB / 5.313 GB, free: 126.5 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/13.54, allocations: 1.431 MB / 5.314 GB, free: 124.9 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/13.54, allocations: 0 / 5.314 GB, free: 124.9 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003652/13.55, allocations: 1.814 MB / 5.316 GB, free: 123 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001241/13.55, allocations: 338.7 kB / 5.316 GB, free: 122.7 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002318/13.55, allocations: 23.98 kB / 5.316 GB, free: 122.7 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/13.55, allocations: 140.2 kB / 5.317 GB, free: 122.5 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/13.55, allocations: 64.84 kB / 5.317 GB, free: 122.5 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.678e-05/13.55, allocations: 35.98 kB / 5.317 GB, free: 122.4 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.001881/13.55, allocations: 1.026 MB / 5.318 GB, free: 121.4 MB / 1.182 GB Notification: Performance of sort global known variables: time 1.2e-07/13.55, allocations: 2.156 kB / 5.318 GB, free: 121.4 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.005097/13.56, allocations: 1.271 MB / 5.319 GB, free: 120.2 MB / 1.182 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 (86): * Single equations (assignments): 83 * 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.007044/13.56, allocations: 3.615 MB / 5.322 GB, free: 117 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.003536/13.57, allocations: 1.743 MB / 5.324 GB, free: 115.2 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/13.57, allocations: 0 / 5.324 GB, free: 115.2 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.001161/13.57, allocations: 0.6099 MB / 5.325 GB, free: 114.6 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004123/13.57, allocations: 0.7736 MB / 5.326 GB, free: 113.9 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009151/13.58, allocations: 4.357 MB / 5.33 GB, free: 109.5 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/13.58, allocations: 1.53 MB / 5.331 GB, free: 107.9 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.002709/13.59, allocations: 469.4 kB / 5.332 GB, free: 107.5 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005614/13.59, allocations: 135.4 kB / 5.332 GB, free: 107.3 MB / 1.182 GB Notification: Performance of SimCode: time 8.62e-07/13.59, allocations: 0 / 5.332 GB, free: 107.3 MB / 1.182 GB Notification: Performance of Templates: time 0.0849/13.67, allocations: 61.4 MB / 5.392 GB, free: 46.89 MB / 1.182 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