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.364/1.364, allocations: 251.9 MB / 266.9 MB, free: 11 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 172.5 kB / 326.5 MB, free: 2.254 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.485/1.485, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.0008469/0.0008471, allocations: 100.6 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003095, allocations: 11.47 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1666, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.267/4.433, allocations: 2.24 GB / 3.14 GB, free: 313.9 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/4.434, allocations: 99.64 kB / 3.14 GB, free: 313.9 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 6.16/10.59, allocations: 1.926 GB / 5.066 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.322e-06/10.59, allocations: 0 / 5.066 GB, free: 104.4 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0003946/10.59, allocations: 66.58 kB / 5.066 GB, free: 104.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.009153/10.6, allocations: 3.146 MB / 5.069 GB, free: 102.7 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/10.6, allocations: 10.44 kB / 5.069 GB, free: 102.7 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005352/10.61, allocations: 0.7814 MB / 5.07 GB, free: 102.5 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006546/10.62, allocations: 2.38 MB / 5.072 GB, free: 101.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/10.62, allocations: 126 kB / 5.072 GB, free: 101.5 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005102/10.62, allocations: 163.5 kB / 5.073 GB, free: 101.5 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003729/10.62, allocations: 1.805 MB / 5.074 GB, free: 100.9 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.444e-05/10.62, allocations: 6.5 kB / 5.074 GB, free: 100.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002219/10.62, allocations: 63.97 kB / 5.074 GB, free: 100.9 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.092e-05/10.62, allocations: 53.69 kB / 5.074 GB, free: 100.9 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002888/10.62, allocations: 1.467 MB / 5.076 GB, free: 100.1 MB / 0.9167 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.01141/10.63, allocations: 8.076 MB / 5.084 GB, free: 93.34 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/10.64, allocations: 1.728 MB / 5.085 GB, free: 91.85 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004544/10.64, allocations: 216.8 kB / 5.086 GB, free: 91.61 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/10.64, allocations: 0.6399 MB / 5.086 GB, free: 90.95 MB / 0.9167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001029/10.64, allocations: 121 kB / 5.086 GB, free: 90.84 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=102): time 7.103e-06/10.64, allocations: 5.031 kB / 5.086 GB, free: 90.84 MB / 0.9167 GB Notification: Performance of matching and sorting (n=105): time 0.007596/10.65, allocations: 3.453 MB / 5.09 GB, free: 87.33 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/10.65, allocations: 171.2 kB / 5.09 GB, free: 87.12 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002122/10.65, allocations: 1.342 MB / 5.091 GB, free: 85.75 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.000143/10.65, allocations: 57.7 kB / 5.091 GB, free: 85.68 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007741/10.65, allocations: 0.9755 MB / 5.092 GB, free: 84.7 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/10.65, allocations: 369.8 kB / 5.093 GB, free: 84.34 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.069e-05/10.65, allocations: 24 kB / 5.093 GB, free: 84.32 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.43e-05/10.65, allocations: 351.1 kB / 5.093 GB, free: 83.97 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008934/10.65, allocations: 499.8 kB / 5.093 GB, free: 83.49 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/10.65, allocations: 0.8634 MB / 5.094 GB, free: 82.48 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.008936/10.66, allocations: 2.293 MB / 5.097 GB, free: 80.21 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.834e-06/10.66, allocations: 4 kB / 5.097 GB, free: 80.21 MB / 0.9167 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002885/10.66, allocations: 1.583 MB / 5.098 GB, free: 78.63 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006281/10.67, allocations: 3.044 MB / 5.101 GB, free: 75.38 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.488e-05/10.67, allocations: 8 kB / 5.101 GB, free: 75.37 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001797/10.67, allocations: 60.78 kB / 5.101 GB, free: 75.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/10.67, allocations: 281.9 kB / 5.101 GB, free: 75.03 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/10.67, allocations: 1.572 MB / 5.103 GB, free: 73.33 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/10.67, allocations: 159.8 kB / 5.103 GB, free: 73.19 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001453/10.67, allocations: 55.98 kB / 5.103 GB, free: 73.13 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 8.396e-06/10.67, allocations: 4 kB / 5.103 GB, free: 73.13 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002401/10.67, allocations: 1.394 MB / 5.105 GB, free: 71.74 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.488e-05/10.67, allocations: 15.92 kB / 5.105 GB, free: 71.72 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001255/10.67, allocations: 56.28 kB / 5.105 GB, free: 71.67 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/10.67, allocations: 274 kB / 5.105 GB, free: 71.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00096/10.67, allocations: 1.573 MB / 5.106 GB, free: 69.71 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002008/10.68, allocations: 160 kB / 5.107 GB, free: 69.56 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/10.68, allocations: 59.94 kB / 5.107 GB, free: 69.5 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * 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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00126/10.68, allocations: 0.5886 MB / 5.107 GB, free: 68.91 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000396/10.68, allocations: 201.5 kB / 5.107 GB, free: 68.71 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002787/10.68, allocations: 1.366 MB / 5.109 GB, free: 67.34 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/10.68, allocations: 11.56 kB / 5.109 GB, free: 67.33 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/10.68, allocations: 4 kB / 5.109 GB, free: 67.33 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001959/10.68, allocations: 1.104 MB / 5.11 GB, free: 66.21 MB / 0.9167 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.007436/10.69, allocations: 3.425 MB / 5.113 GB, free: 62.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/10.69, allocations: 4 kB / 5.113 GB, free: 62.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/10.69, allocations: 227.1 kB / 5.113 GB, free: 62.48 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002811/10.69, allocations: 77.66 kB / 5.113 GB, free: 62.4 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.118e-05/10.69, allocations: 35.42 kB / 5.113 GB, free: 62.37 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001863/10.69, allocations: 2.931 MB / 5.116 GB, free: 59.18 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/10.69, allocations: 3.984 kB / 5.116 GB, free: 59.18 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/10.7, allocations: 2.14 MB / 5.118 GB, free: 56.98 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001432/10.7, allocations: 386.5 kB / 5.119 GB, free: 56.58 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006194/10.7, allocations: 24 kB / 5.119 GB, free: 56.56 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/10.7, allocations: 158.6 kB / 5.119 GB, free: 56.41 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/10.7, allocations: 76.45 kB / 5.119 GB, free: 56.34 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/10.7, allocations: 35.98 kB / 5.119 GB, free: 56.31 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.002188/10.7, allocations: 1.044 MB / 5.12 GB, free: 55.24 MB / 0.9167 GB Notification: Performance of sort global known variables: time 4.21e-07/10.7, allocations: 0 / 5.12 GB, free: 55.24 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.005449/10.71, allocations: 1.298 MB / 5.121 GB, free: 53.95 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * 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%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004974/10.71, allocations: 3.478 MB / 5.125 GB, free: 50.76 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.004199/10.72, allocations: 2.361 MB / 5.127 GB, free: 48.34 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/10.72, allocations: 7.938 kB / 5.127 GB, free: 48.33 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001222/10.72, allocations: 0.8082 MB / 5.128 GB, free: 47.5 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004532/10.72, allocations: 0.9641 MB / 5.129 GB, free: 46.56 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008573/10.73, allocations: 4.854 MB / 5.134 GB, free: 41.69 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/10.73, allocations: 1.653 MB / 5.135 GB, free: 40 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.002627/10.74, allocations: 0.5037 MB / 5.136 GB, free: 39.52 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004956/10.74, allocations: 147.4 kB / 5.136 GB, free: 39.38 MB / 0.9167 GB Notification: Performance of SimCode: time 7.51e-07/10.74, allocations: 0 / 5.136 GB, free: 39.38 MB / 0.9167 GB Notification: Performance of Templates: time 0.6056/11.34, allocations: 68.95 MB / 5.203 GB, free: 125.7 MB / 0.9323 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