Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.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_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.194/2.194, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.00109/0.00109, allocations: 188.6 kB / 487.4 MB, free: 5.055 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.547/1.547, allocations: 221.5 MB / 0.7824 GB, free: 0.9023 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009733/0.0009734, allocations: 103.8 kB / 0.9219 GB, free: 2.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 3.211e-05/3.214e-05, allocations: 10.11 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3212, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.511/5.832, allocations: 1.953 GB / 3.159 GB, free: 396.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/5.833, allocations: 90.22 kB / 3.159 GB, free: 396.4 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 7.068/12.9, allocations: 1.982 GB / 5.142 GB, free: 157.5 MB / 1.182 GB Notification: Performance of FrontEnd: time 1.463e-06/12.9, allocations: 4 kB / 5.142 GB, free: 157.5 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0002456/12.9, allocations: 62.67 kB / 5.142 GB, free: 157.4 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: 377 * Number of variables: 377 Notification: Performance of Generate backend data structure: time 0.006379/12.91, allocations: 2.554 MB / 5.144 GB, free: 154.8 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/12.91, allocations: 12.03 kB / 5.144 GB, free: 154.8 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005909/12.91, allocations: 0.884 MB / 5.145 GB, free: 154 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005736/12.92, allocations: 2.348 MB / 5.147 GB, free: 151.6 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.489e-05/12.92, allocations: 49.55 kB / 5.147 GB, free: 151.6 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002626/12.92, allocations: 96 kB / 5.148 GB, free: 151.5 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002149/12.92, allocations: 1.279 MB / 5.149 GB, free: 150.2 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002183/12.92, allocations: 1.474 MB / 5.15 GB, free: 148.7 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.857e-05/12.92, allocations: 15.8 kB / 5.15 GB, free: 148.7 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/12.92, allocations: 3.984 kB / 5.15 GB, free: 148.6 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.925e-05/12.92, allocations: 58.89 kB / 5.15 GB, free: 148.6 MB / 1.182 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.009617/12.93, allocations: 7.892 MB / 5.158 GB, free: 140.2 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/12.93, allocations: 1.635 MB / 5.16 GB, free: 138.5 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006884/12.94, allocations: 0.5623 MB / 5.16 GB, free: 137.9 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004022/12.94, allocations: 206.5 kB / 5.16 GB, free: 137.7 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000728/12.94, allocations: 0.5634 MB / 5.161 GB, free: 137.1 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009687/12.94, allocations: 89.92 kB / 5.161 GB, free: 137 MB / 1.182 GB Notification: Performance of pre-optimization done (n=104): time 3.477e-06/12.94, allocations: 3.688 kB / 5.161 GB, free: 137 MB / 1.182 GB Notification: Performance of matching and sorting (n=107): time 0.005714/12.94, allocations: 2.806 MB / 5.164 GB, free: 134.2 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/12.94, allocations: 112.1 kB / 5.164 GB, free: 134 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001542/12.94, allocations: 1.186 MB / 5.165 GB, free: 132.8 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 9.733e-05/12.94, allocations: 25.7 kB / 5.165 GB, free: 132.8 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006984/12.95, allocations: 0.9595 MB / 5.166 GB, free: 131.8 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002567/12.95, allocations: 362.6 kB / 5.166 GB, free: 131.4 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/12.95, allocations: 0 / 5.166 GB, free: 131.4 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 8.774e-05/12.95, allocations: 353.9 kB / 5.167 GB, free: 131.1 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005205/12.95, allocations: 418.5 kB / 5.167 GB, free: 130.7 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006877/12.95, allocations: 0.7293 MB / 5.168 GB, free: 129.8 MB / 1.182 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (hea.vol.dynBal.p_start = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.004435/12.95, allocations: 1.791 MB / 5.17 GB, free: 128.1 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/12.95, allocations: 0 / 5.17 GB, free: 128.1 MB / 1.182 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002292/12.95, allocations: 1.396 MB / 5.171 GB, free: 126.7 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005207/12.95, allocations: 2.949 MB / 5.174 GB, free: 123.5 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/12.95, allocations: 4 kB / 5.174 GB, free: 123.5 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001577/12.95, allocations: 44.83 kB / 5.174 GB, free: 123.5 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/12.96, allocations: 294.9 kB / 5.174 GB, free: 123.2 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009047/12.96, allocations: 1.442 MB / 5.176 GB, free: 121.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/12.96, allocations: 158.1 kB / 5.176 GB, free: 121.5 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/12.96, allocations: 55.97 kB / 5.176 GB, free: 121.4 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 9.298e-06/12.96, allocations: 4 kB / 5.176 GB, free: 121.4 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001894/12.96, allocations: 1.164 MB / 5.177 GB, free: 120.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/12.96, allocations: 4 kB / 5.177 GB, free: 120.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001011/12.96, allocations: 40.84 kB / 5.177 GB, free: 120.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/12.96, allocations: 295.7 kB / 5.177 GB, free: 119.9 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007868/12.96, allocations: 1.442 MB / 5.179 GB, free: 118.4 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002057/12.97, allocations: 155.8 kB / 5.179 GB, free: 118.2 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.865e-05/12.97, allocations: 55.94 kB / 5.179 GB, free: 118.1 MB / 1.182 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: vol.dynBal.medium.p = vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003178/12.97, allocations: 142.5 kB / 5.179 GB, free: 118 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002503/12.97, allocations: 185.7 kB / 5.179 GB, free: 117.8 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002348/12.97, allocations: 1.259 MB / 5.18 GB, free: 116.5 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/12.97, allocations: 8 kB / 5.18 GB, free: 116.5 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/12.97, allocations: 4 kB / 5.18 GB, free: 116.5 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00141/12.97, allocations: 1.008 MB / 5.181 GB, free: 115.5 MB / 1.182 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 postOpt removeSimpleEquations (simulation): time 0.005102/12.97, allocations: 3.245 MB / 5.185 GB, free: 112.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/12.97, allocations: 0 / 5.185 GB, free: 112.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/12.98, allocations: 243.8 kB / 5.185 GB, free: 111.9 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002027/12.98, allocations: 69.67 kB / 5.185 GB, free: 111.9 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.892e-05/12.98, allocations: 19.92 kB / 5.185 GB, free: 111.8 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001473/12.98, allocations: 2.675 MB / 5.187 GB, free: 108.9 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/12.98, allocations: 4 kB / 5.187 GB, free: 108.9 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002482/12.98, allocations: 1.922 MB / 5.189 GB, free: 106.9 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007888/12.98, allocations: 378.6 kB / 5.19 GB, free: 106.5 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002078/12.98, allocations: 8.094 kB / 5.19 GB, free: 106.5 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/12.98, allocations: 139.6 kB / 5.19 GB, free: 106.4 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/12.98, allocations: 81.16 kB / 5.19 GB, free: 106.3 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.698e-05/12.98, allocations: 43.97 kB / 5.19 GB, free: 106.3 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.001232/12.98, allocations: 0.8859 MB / 5.191 GB, free: 105.4 MB / 1.182 GB Notification: Performance of sort global known variables: time 1.4e-07/12.98, allocations: 0 / 5.191 GB, free: 105.4 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.003707/12.99, allocations: 1.121 MB / 5.192 GB, free: 104.2 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (vol.dynBal.medium.Xi[1],vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.medium.Xi[1],hea.vol.dynBal.U,hea.vol.dynBal.m) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 101 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004542/12.99, allocations: 3.614 MB / 5.195 GB, free: 100.7 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.002874/13, allocations: 2.069 MB / 5.197 GB, free: 98.6 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/13, allocations: 0 / 5.197 GB, free: 98.6 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.0007998/13, allocations: 0.7347 MB / 5.198 GB, free: 97.85 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004332/13, allocations: 0.9234 MB / 5.199 GB, free: 96.95 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006411/13.01, allocations: 3.138 MB / 5.202 GB, free: 93.77 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/13.01, allocations: 1.628 MB / 5.204 GB, free: 92.12 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.003456/13.01, allocations: 0.6925 MB / 5.204 GB, free: 91.45 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003687/13.01, allocations: 119.4 kB / 5.205 GB, free: 91.34 MB / 1.182 GB Notification: Performance of SimCode: time 8.91e-07/13.01, allocations: 0 / 5.205 GB, free: 91.34 MB / 1.182 GB Notification: Performance of Templates: time 0.07427/13.09, allocations: 52.02 MB / 5.255 GB, free: 39.83 MB / 1.182 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_AirHeater_u.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches