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.558/2.558, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.0014/0.0014, allocations: 180 kB / 492.3 MB, free: 0.6094 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.701/1.701, allocations: 221.3 MB / 0.7872 GB, free: 12.89 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.0008689/0.000869, allocations: 94 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.117e-05/4.119e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3428, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.277/6.62, allocations: 1.931 GB / 3.144 GB, free: 398.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/6.62, allocations: 94.05 kB / 3.144 GB, free: 398.6 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.761/10.38, allocations: 1.05 GB / 4.194 GB, free: 190.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.402e-06/10.38, allocations: 0 / 4.194 GB, free: 190.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001638/10.38, allocations: 51.11 kB / 4.194 GB, free: 190.3 MB / 1.151 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.004433/10.39, allocations: 2.069 MB / 4.196 GB, free: 188.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/10.39, allocations: 8.031 kB / 4.196 GB, free: 188.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003952/10.39, allocations: 0.6255 MB / 4.197 GB, free: 187.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003084/10.39, allocations: 1.431 MB / 4.198 GB, free: 186.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003555/10.39, allocations: 158.1 kB / 4.198 GB, free: 186 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001939/10.39, allocations: 124 kB / 4.198 GB, free: 185.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/10.4, allocations: 1.355 MB / 4.2 GB, free: 184.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/10.4, allocations: 4 kB / 4.2 GB, free: 184.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/10.4, allocations: 48 kB / 4.2 GB, free: 184.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.869e-05/10.4, allocations: 38.22 kB / 4.2 GB, free: 184.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/10.4, allocations: 1.051 MB / 4.201 GB, free: 183.3 MB / 1.151 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.008254/10.41, allocations: 5.877 MB / 4.207 GB, free: 177.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/10.41, allocations: 0.9913 MB / 4.208 GB, free: 176.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006464/10.41, allocations: 490 kB / 4.208 GB, free: 175.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005728/10.41, allocations: 315 kB / 4.208 GB, free: 175.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007844/10.41, allocations: 0.5335 MB / 4.209 GB, free: 174.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=87): time 4.849e-06/10.41, allocations: 0 / 4.209 GB, free: 174.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=94): time 0.007235/10.42, allocations: 2.995 MB / 4.212 GB, free: 171.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/10.42, allocations: 196.6 kB / 4.212 GB, free: 171.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/10.42, allocations: 1.139 MB / 4.213 GB, free: 170.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000113/10.42, allocations: 45.7 kB / 4.213 GB, free: 170.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005533/10.42, allocations: 0.7321 MB / 4.214 GB, free: 169.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000236/10.42, allocations: 319 kB / 4.214 GB, free: 169.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/10.42, allocations: 20 kB / 4.214 GB, free: 169.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.453e-05/10.42, allocations: 340.6 kB / 4.215 GB, free: 169 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005103/10.42, allocations: 381.9 kB / 4.215 GB, free: 168.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006446/10.42, allocations: 0.5881 MB / 4.215 GB, free: 167.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009435/10.43, allocations: 2.358 MB / 4.218 GB, free: 165.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/10.43, allocations: 0 / 4.218 GB, free: 165.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.003634/10.43, allocations: 1.63 MB / 4.219 GB, free: 164 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002822/10.43, allocations: 1.292 MB / 4.221 GB, free: 162.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/10.43, allocations: 6.734 kB / 4.221 GB, free: 162.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009311/10.43, allocations: 405.6 kB / 4.221 GB, free: 162.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007095/10.44, allocations: 180.1 kB / 4.221 GB, free: 162 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005782/10.44, allocations: 6.693 MB / 4.228 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/10.44, allocations: 139.8 kB / 4.228 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/10.44, allocations: 39.98 kB / 4.228 GB, free: 154.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/10.44, allocations: 4 kB / 4.228 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003143/10.45, allocations: 1.467 MB / 4.229 GB, free: 153.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/10.45, allocations: 0 / 4.229 GB, free: 153.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008859/10.45, allocations: 404.2 kB / 4.23 GB, free: 152.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007032/10.45, allocations: 183.8 kB / 4.23 GB, free: 152.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006519/10.45, allocations: 7.699 MB / 4.237 GB, free: 144.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/10.46, allocations: 139.8 kB / 4.238 GB, free: 144.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002125/10.46, allocations: 32 kB / 4.238 GB, free: 144.3 MB / 1.151 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 () * 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.0004638/10.46, allocations: 209.2 kB / 4.238 GB, free: 144.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004772/10.46, allocations: 173.9 kB / 4.238 GB, free: 143.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/10.46, allocations: 1.437 MB / 4.239 GB, free: 142.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/10.46, allocations: 8 kB / 4.239 GB, free: 142.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/10.46, allocations: 0 / 4.239 GB, free: 142.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002432/10.46, allocations: 1.299 MB / 4.241 GB, free: 141.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006564/10.47, allocations: 3.304 MB / 4.244 GB, free: 137.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/10.47, allocations: 4 kB / 4.244 GB, free: 137.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000846/10.47, allocations: 188.3 kB / 4.244 GB, free: 137.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004334/10.47, allocations: 204.8 kB / 4.244 GB, free: 137.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.547e-05/10.47, allocations: 39.55 kB / 4.244 GB, free: 137.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002324/10.47, allocations: 2.493 MB / 4.247 GB, free: 134.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/10.47, allocations: 4 kB / 4.247 GB, free: 134.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003792/10.48, allocations: 2.391 MB / 4.249 GB, free: 132 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/10.48, allocations: 367 kB / 4.249 GB, free: 131.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005048/10.48, allocations: 32 kB / 4.249 GB, free: 131.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/10.48, allocations: 140.1 kB / 4.25 GB, free: 131.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/10.48, allocations: 68.59 kB / 4.25 GB, free: 131.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001039/10.48, allocations: 47.97 kB / 4.25 GB, free: 131.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00161/10.48, allocations: 0.8937 MB / 4.251 GB, free: 130.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/10.48, allocations: 0 / 4.251 GB, free: 130.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004535/10.49, allocations: 1.018 MB / 4.252 GB, free: 129.5 MB / 1.151 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.X[2],heaDyn.vol.dynBal.medium.dT,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) * 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.004022/10.49, allocations: 2.376 MB / 4.254 GB, free: 127 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004049/10.5, allocations: 2.663 MB / 4.256 GB, free: 124.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/10.5, allocations: 0 / 4.256 GB, free: 124.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009784/10.5, allocations: 0.7063 MB / 4.257 GB, free: 123.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005099/10.5, allocations: 0.8567 MB / 4.258 GB, free: 122.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006567/10.51, allocations: 2.618 MB / 4.261 GB, free: 120 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/10.51, allocations: 1.386 MB / 4.262 GB, free: 118.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003025/10.51, allocations: 491.9 kB / 4.262 GB, free: 118.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004224/10.51, allocations: 87.42 kB / 4.262 GB, free: 118.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.824e-06/10.51, allocations: 0 / 4.262 GB, free: 118.1 MB / 1.151 GB Notification: Performance of Templates: time 0.09072/10.6, allocations: 70.01 MB / 4.331 GB, free: 48.28 MB / 1.151 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