Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.509/1.509, allocations: 249.5 MB / 257 MB, free: 6.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001158/0.001158, allocations: 168.9 kB / 316.3 MB, free: 3.312 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.867/1.867, allocations: 205.3 MB / 0.5671 GB, free: 15.84 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009084/0.0009082, allocations: 90.53 kB / 0.6714 GB, free: 4.965 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.057e-05/2.048e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2358, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.222/6.458, allocations: 2.24 GB / 3.125 GB, free: 163.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003399/6.458, allocations: 96.19 kB / 3.125 GB, free: 163.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 8.023/14.48, allocations: 1.903 GB / 5.028 GB, free: 113.4 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.733e-06/14.48, allocations: 0 / 5.028 GB, free: 113.4 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0003085/14.48, allocations: 67.5 kB / 5.029 GB, free: 113.4 MB / 0.9167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 382 * Number of variables: 382 Notification: Performance of Generate backend data structure: time 0.008295/14.49, allocations: 2.611 MB / 5.031 GB, free: 112.6 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/14.49, allocations: 13.06 kB / 5.031 GB, free: 112.6 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005758/14.5, allocations: 0.7845 MB / 5.032 GB, free: 112.5 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006676/14.5, allocations: 2.352 MB / 5.034 GB, free: 112.1 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.353e-05/14.5, allocations: 50.53 kB / 5.034 GB, free: 112.1 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003655/14.5, allocations: 99.12 kB / 5.034 GB, free: 112.1 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002457/14.51, allocations: 1.276 MB / 5.036 GB, free: 112.1 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002554/14.51, allocations: 1.504 MB / 5.037 GB, free: 111.9 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.153e-05/14.51, allocations: 5.812 kB / 5.037 GB, free: 111.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001374/14.51, allocations: 7.031 kB / 5.037 GB, free: 111.9 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.248e-05/14.51, allocations: 52.16 kB / 5.037 GB, free: 111.9 MB / 0.9167 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.01141/14.52, allocations: 7.799 MB / 5.045 GB, free: 108.1 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/14.52, allocations: 1.597 MB / 5.046 GB, free: 107.3 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007082/14.52, allocations: 0.5294 MB / 5.047 GB, free: 107.3 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004259/14.52, allocations: 212.8 kB / 5.047 GB, free: 107.1 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008182/14.52, allocations: 0.5519 MB / 5.048 GB, free: 107 MB / 0.9167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001222/14.52, allocations: 94.97 kB / 5.048 GB, free: 107 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=102): time 3.848e-06/14.52, allocations: 2.625 kB / 5.048 GB, free: 107 MB / 0.9167 GB Notification: Performance of matching and sorting (n=105): time 0.006282/14.53, allocations: 2.743 MB / 5.05 GB, free: 106.3 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/14.53, allocations: 175.2 kB / 5.05 GB, free: 106.1 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/14.53, allocations: 1.219 MB / 5.052 GB, free: 105.9 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001388/14.53, allocations: 29.55 kB / 5.052 GB, free: 105.9 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008857/14.53, allocations: 0.9642 MB / 5.053 GB, free: 105.6 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002975/14.53, allocations: 356.8 kB / 5.053 GB, free: 105.4 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.76e-05/14.53, allocations: 0 / 5.053 GB, free: 105.4 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 9.406e-05/14.53, allocations: 349.8 kB / 5.053 GB, free: 105.1 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000585/14.53, allocations: 422.2 kB / 5.054 GB, free: 105.1 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007687/14.54, allocations: 0.7701 MB / 5.054 GB, free: 104.7 MB / 0.9167 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.004486/14.54, allocations: 1.773 MB / 5.056 GB, free: 104.6 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/14.54, allocations: 3.875 kB / 5.056 GB, free: 104.6 MB / 0.9167 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002668/14.54, allocations: 1.396 MB / 5.058 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006838/14.54, allocations: 3.04 MB / 5.061 GB, free: 101.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.692e-05/14.54, allocations: 14.98 kB / 5.061 GB, free: 101.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001783/14.54, allocations: 42.09 kB / 5.061 GB, free: 101.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/14.54, allocations: 277.8 kB / 5.061 GB, free: 101.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001/14.55, allocations: 1.448 MB / 5.062 GB, free: 99.96 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/14.55, allocations: 135.8 kB / 5.062 GB, free: 99.96 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/14.55, allocations: 59.83 kB / 5.062 GB, free: 99.96 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/14.55, allocations: 3.75 kB / 5.062 GB, free: 99.96 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00201/14.55, allocations: 1.164 MB / 5.064 GB, free: 99.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/14.55, allocations: 9.266 kB / 5.064 GB, free: 99.91 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001085/14.55, allocations: 43.98 kB / 5.064 GB, free: 99.91 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/14.55, allocations: 278.8 kB / 5.064 GB, free: 99.91 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008515/14.55, allocations: 1.437 MB / 5.065 GB, free: 98.64 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/14.55, allocations: 144.8 kB / 5.065 GB, free: 98.64 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/14.55, allocations: 53.08 kB / 5.065 GB, free: 98.64 MB / 0.9167 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: 33 * 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 (148): * Single equations (assignments): 143 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0003719/14.55, allocations: 137.8 kB / 5.066 GB, free: 98.53 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003027/14.56, allocations: 192.9 kB / 5.066 GB, free: 98.43 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002703/14.56, allocations: 1.214 MB / 5.067 GB, free: 98.31 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/14.56, allocations: 11.47 kB / 5.067 GB, free: 98.31 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/14.56, allocations: 0 / 5.067 GB, free: 98.31 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001476/14.56, allocations: 0.9799 MB / 5.068 GB, free: 98.21 MB / 0.9167 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.005481/14.56, allocations: 3.151 MB / 5.071 GB, free: 97.56 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/14.56, allocations: 3.812 kB / 5.071 GB, free: 97.56 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/14.57, allocations: 229.5 kB / 5.071 GB, free: 97.56 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002181/14.57, allocations: 69.2 kB / 5.071 GB, free: 97.54 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.28e-05/14.57, allocations: 23.55 kB / 5.071 GB, free: 97.54 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00162/14.57, allocations: 2.671 MB / 5.074 GB, free: 95.14 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/14.57, allocations: 0 / 5.074 GB, free: 95.14 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002877/14.57, allocations: 1.927 MB / 5.076 GB, free: 94.71 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/14.57, allocations: 384.8 kB / 5.076 GB, free: 94.52 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002427/14.57, allocations: 12.92 kB / 5.076 GB, free: 94.52 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001426/14.57, allocations: 137.4 kB / 5.076 GB, free: 94.52 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/14.57, allocations: 72.86 kB / 5.076 GB, free: 94.51 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.245e-05/14.57, allocations: 45.94 kB / 5.076 GB, free: 94.51 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.00171/14.58, allocations: 0.9118 MB / 5.077 GB, free: 94.37 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.81e-07/14.58, allocations: 0 / 5.077 GB, free: 94.37 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.005231/14.58, allocations: 1.16 MB / 5.078 GB, free: 94.32 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (vol.dynBal.U,vol.dynBal.mXi[1],mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U,hea.vol.dynBal.m,hea.vol.dynBal.mXi[1]) * 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 (103): * Single equations (assignments): 99 * 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.005532/14.59, allocations: 3.648 MB / 5.082 GB, free: 93 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.003305/14.59, allocations: 2.117 MB / 5.084 GB, free: 92.57 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/14.59, allocations: 1.875 kB / 5.084 GB, free: 92.57 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0008661/14.59, allocations: 0.7147 MB / 5.085 GB, free: 92.36 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005478/14.6, allocations: 0.94 MB / 5.086 GB, free: 92.33 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008838/14.61, allocations: 3.159 MB / 5.089 GB, free: 91.51 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001427/14.61, allocations: 1.638 MB / 5.09 GB, free: 90.78 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.004208/14.61, allocations: 0.6845 MB / 5.091 GB, free: 90.76 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000396/14.61, allocations: 120.6 kB / 5.091 GB, free: 90.75 MB / 0.9167 GB Notification: Performance of SimCode: time 1.373e-06/14.61, allocations: 1.781 kB / 5.091 GB, free: 90.75 MB / 0.9167 GB Notification: Performance of Templates: time 0.09011/14.7, allocations: 53.59 MB / 5.144 GB, free: 88.14 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Examples_AirHeater_u.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches