Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_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.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") translateModel(Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con1.u_s|con1.u_m|con2.u_m|con1.y|con2.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.373/2.373, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.00135/0.00135, allocations: 177.2 kB / 498.1 MB, free: 5.73 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.642/1.642, allocations: 223.2 MB / 0.7948 GB, free: 17.91 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.0009862/0.0009861, allocations: 104.8 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004512/0.0004511, allocations: 10.81 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3762, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.542/4.919, allocations: 1.931 GB / 3.154 GB, free: 55.39 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/4.919, allocations: 98.86 kB / 3.154 GB, free: 55.34 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 3.86/8.779, allocations: 1.051 GB / 4.206 GB, free: 241.3 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.693e-06/8.779, allocations: 0 / 4.206 GB, free: 241.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.000197/8.78, allocations: 46.83 kB / 4.206 GB, free: 241.3 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.005883/8.785, allocations: 2.39 MB / 4.208 GB, free: 240.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/8.785, allocations: 7.438 kB / 4.208 GB, free: 240.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00417/8.79, allocations: 0.6218 MB / 4.209 GB, free: 240.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003743/8.793, allocations: 1.447 MB / 4.21 GB, free: 239.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000352/8.794, allocations: 158.5 kB / 4.21 GB, free: 239.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002502/8.794, allocations: 117.9 kB / 4.21 GB, free: 239.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002676/8.797, allocations: 1.458 MB / 4.212 GB, free: 239.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.093e-05/8.797, allocations: 7.781 kB / 4.212 GB, free: 239.6 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/8.797, allocations: 49.25 kB / 4.212 GB, free: 239.6 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.64e-05/8.797, allocations: 41.94 kB / 4.212 GB, free: 239.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002339/8.799, allocations: 1.246 MB / 4.213 GB, free: 239.5 MB / 1.167 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.008464/8.808, allocations: 5.884 MB / 4.219 GB, free: 237.2 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/8.81, allocations: 1.18 MB / 4.22 GB, free: 237 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005132/8.81, allocations: 311 kB / 4.22 GB, free: 236.7 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001072/8.811, allocations: 0.6344 MB / 4.221 GB, free: 236.6 MB / 1.167 GB Notification: Performance of pre-optimization done (n=87): time 2.805e-06/8.811, allocations: 0 / 4.221 GB, free: 236.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=94): time 0.01109/8.822, allocations: 4.366 MB / 4.225 GB, free: 235.6 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.132e-05/8.822, allocations: 198.5 kB / 4.225 GB, free: 235.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/8.824, allocations: 1.168 MB / 4.227 GB, free: 235.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001754/8.825, allocations: 44.14 kB / 4.227 GB, free: 235.2 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005771/8.825, allocations: 0.7272 MB / 4.227 GB, free: 235.1 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/8.825, allocations: 317.2 kB / 4.228 GB, free: 234.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/8.826, allocations: 17.44 kB / 4.228 GB, free: 234.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.448e-05/8.826, allocations: 342 kB / 4.228 GB, free: 234.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008807/8.826, allocations: 482.1 kB / 4.228 GB, free: 234.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000987/8.827, allocations: 0.6891 MB / 4.229 GB, free: 234.4 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/8.839, allocations: 2.53 MB / 4.232 GB, free: 234.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/8.839, allocations: 0 / 4.232 GB, free: 234.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004957/8.844, allocations: 1.795 MB / 4.233 GB, free: 234 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003211/8.844, allocations: 1.302 MB / 4.235 GB, free: 232.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/8.844, allocations: 6.938 kB / 4.235 GB, free: 232.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/8.845, allocations: 428.7 kB / 4.235 GB, free: 232.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008184/8.846, allocations: 177 kB / 4.235 GB, free: 232.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007245/8.853, allocations: 7 MB / 4.242 GB, free: 228.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/8.855, allocations: 150.5 kB / 4.242 GB, free: 228.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/8.856, allocations: 42.91 kB / 4.242 GB, free: 228.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/8.856, allocations: 3.906 kB / 4.242 GB, free: 228.1 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003855/8.859, allocations: 1.637 MB / 4.244 GB, free: 228 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/8.859, allocations: 10.78 kB / 4.244 GB, free: 228 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/8.861, allocations: 429.5 kB / 4.244 GB, free: 228 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007326/8.861, allocations: 179.2 kB / 4.244 GB, free: 228 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007986/8.869, allocations: 7.999 MB / 4.252 GB, free: 222.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002116/8.871, allocations: 150.9 kB / 4.252 GB, free: 222.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/8.872, allocations: 36.94 kB / 4.252 GB, free: 222.7 MB / 1.167 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.heaDyn.vol.dynBal.medium.p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 11,1 2,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001167/8.873, allocations: 0.5014 MB / 4.253 GB, free: 222.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003644/8.873, allocations: 169.2 kB / 4.253 GB, free: 222.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003929/8.877, allocations: 1.657 MB / 4.255 GB, free: 222.2 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/8.877, allocations: 10.84 kB / 4.255 GB, free: 222.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/8.877, allocations: 3.375 kB / 4.255 GB, free: 222.2 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003266/8.88, allocations: 1.522 MB / 4.256 GB, free: 222 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00726/8.888, allocations: 3.514 MB / 4.26 GB, free: 221.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/8.888, allocations: 3.938 kB / 4.26 GB, free: 221.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008599/8.889, allocations: 184.6 kB / 4.26 GB, free: 221.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005794/8.889, allocations: 241.7 kB / 4.26 GB, free: 221.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.247e-05/8.889, allocations: 32.17 kB / 4.26 GB, free: 221.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00325/8.893, allocations: 2.71 MB / 4.263 GB, free: 219.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/8.893, allocations: 10.41 kB / 4.263 GB, free: 219.6 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005104/8.898, allocations: 2.692 MB / 4.265 GB, free: 218.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00123/8.899, allocations: 363 kB / 4.266 GB, free: 218.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002167/8.899, allocations: 26.31 kB / 4.266 GB, free: 218.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/8.9, allocations: 144.3 kB / 4.266 GB, free: 218.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/8.901, allocations: 69.38 kB / 4.266 GB, free: 218.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.757e-05/8.901, allocations: 39.16 kB / 4.266 GB, free: 218.7 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001345/8.902, allocations: 0.9154 MB / 4.267 GB, free: 218.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.11e-07/8.902, allocations: 3.281 kB / 4.267 GB, free: 218.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003917/8.906, allocations: 1.021 MB / 4.268 GB, free: 218.5 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 6 (senTem1.T,con1.I.y,heaDyn.vol.dynBal.medium.Xi[1],heaDyn.vol.dynBal.medium.T,senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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: 0 * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003528/8.909, allocations: 2.361 MB / 4.27 GB, free: 217.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00473/8.914, allocations: 2.923 MB / 4.273 GB, free: 216.7 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/8.914, allocations: 0 / 4.273 GB, free: 216.7 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.00127/8.916, allocations: 0.8004 MB / 4.274 GB, free: 216.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004122/8.92, allocations: 0.8633 MB / 4.275 GB, free: 216.5 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006845/8.927, allocations: 3.926 MB / 4.278 GB, free: 214.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008/8.927, allocations: 1.383 MB / 4.28 GB, free: 214.2 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002135/8.93, allocations: 341.7 kB / 4.28 GB, free: 214.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/8.93, allocations: 107.4 kB / 4.28 GB, free: 214.2 MB / 1.167 GB Notification: Performance of SimCode: time 1.022e-06/8.93, allocations: 3.969 kB / 4.28 GB, free: 214.2 MB / 1.167 GB Notification: Performance of Templates: time 0.08533/9.015, allocations: 61.44 MB / 4.34 GB, free: 195 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches