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.149/2.149, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001062/0.001062, allocations: 188.8 kB / 487.4 MB, free: 5.035 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.544/1.544, allocations: 221.5 MB / 0.7824 GB, free: 0.9883 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.0008619/0.000862, allocations: 93.5 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.145e-05/2.147e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3373, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.372/5.709, allocations: 1.931 GB / 3.137 GB, free: 348.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/5.709, allocations: 95.48 kB / 3.137 GB, free: 348.6 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 3.356/9.065, allocations: 1.039 GB / 4.176 GB, free: 189.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.172e-06/9.065, allocations: 3.938 kB / 4.176 GB, free: 189.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000284/9.065, allocations: 52.12 kB / 4.176 GB, free: 189.6 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.005744/9.071, allocations: 2.058 MB / 4.178 GB, free: 187.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/9.071, allocations: 16.02 kB / 4.178 GB, free: 187.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004354/9.075, allocations: 0.6272 MB / 4.179 GB, free: 186.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003987/9.079, allocations: 1.421 MB / 4.18 GB, free: 185.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003715/9.08, allocations: 123.8 kB / 4.18 GB, free: 185.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004277/9.08, allocations: 72 kB / 4.18 GB, free: 185.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002272/9.083, allocations: 0.9808 MB / 4.181 GB, free: 184.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/9.085, allocations: 1.187 MB / 4.183 GB, free: 183 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.175e-05/9.085, allocations: 0 / 4.183 GB, free: 183 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.988e-05/9.085, allocations: 7.094 kB / 4.183 GB, free: 183 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.169e-05/9.085, allocations: 46.17 kB / 4.183 GB, free: 183 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.007804/9.093, allocations: 5.616 MB / 4.188 GB, free: 177.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/9.094, allocations: 0.9473 MB / 4.189 GB, free: 176.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005248/9.094, allocations: 469.7 kB / 4.189 GB, free: 175.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000516/9.095, allocations: 315.2 kB / 4.19 GB, free: 175.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006266/9.096, allocations: 0.5019 MB / 4.19 GB, free: 174.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=87): time 3.527e-06/9.096, allocations: 3.938 kB / 4.19 GB, free: 174.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=94): time 0.006736/9.102, allocations: 2.932 MB / 4.193 GB, free: 171.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/9.102, allocations: 196.7 kB / 4.193 GB, free: 171.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/9.104, allocations: 0.9135 MB / 4.194 GB, free: 170.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.41e-05/9.104, allocations: 29.7 kB / 4.194 GB, free: 170.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005245/9.104, allocations: 0.7359 MB / 4.195 GB, free: 169.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/9.105, allocations: 307.4 kB / 4.195 GB, free: 169.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.967e-05/9.105, allocations: 0 / 4.195 GB, free: 169.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.443e-05/9.105, allocations: 345.9 kB / 4.196 GB, free: 169.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004387/9.105, allocations: 358.5 kB / 4.196 GB, free: 168.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005512/9.106, allocations: 0.5721 MB / 4.196 GB, free: 168.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003456/9.109, allocations: 1.342 MB / 4.198 GB, free: 166.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/9.109, allocations: 4 kB / 4.198 GB, free: 166.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.003517/9.113, allocations: 1.576 MB / 4.199 GB, free: 165.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000282/9.113, allocations: 1.29 MB / 4.201 GB, free: 163.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/9.113, allocations: 4 kB / 4.201 GB, free: 163.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008991/9.114, allocations: 393.4 kB / 4.201 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007023/9.115, allocations: 179.8 kB / 4.201 GB, free: 163.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005685/9.12, allocations: 6.331 MB / 4.207 GB, free: 156.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/9.122, allocations: 119.8 kB / 4.207 GB, free: 156.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000201/9.122, allocations: 41.86 kB / 4.207 GB, free: 156.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/9.122, allocations: 7.984 kB / 4.207 GB, free: 156.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003371/9.126, allocations: 1.4 MB / 4.209 GB, free: 155.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/9.126, allocations: 384 / 4.209 GB, free: 155.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000935/9.127, allocations: 394.3 kB / 4.209 GB, free: 154.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007135/9.127, allocations: 179.8 kB / 4.209 GB, free: 154.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006264/9.134, allocations: 7.258 MB / 4.216 GB, free: 146.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/9.136, allocations: 123.8 kB / 4.217 GB, free: 146.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001934/9.136, allocations: 43.97 kB / 4.217 GB, free: 146.6 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. Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaSte.vol.heatPort.Q_flow:VARIABLE(flow=true unit = "W" final = true ) "Heat flow rate (positive if flowing from outside into the component)" type: Real 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.0004465/9.136, allocations: 163.7 kB / 4.217 GB, free: 146.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004278/9.137, allocations: 158.1 kB / 4.217 GB, free: 146.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003413/9.14, allocations: 1.372 MB / 4.218 GB, free: 144.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/9.14, allocations: 8 kB / 4.218 GB, free: 144.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/9.14, allocations: 0 / 4.218 GB, free: 144.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002597/9.143, allocations: 1.277 MB / 4.22 GB, free: 143.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006683/9.149, allocations: 3.098 MB / 4.223 GB, free: 140.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/9.149, allocations: 7.953 kB / 4.223 GB, free: 140.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008673/9.15, allocations: 192.2 kB / 4.223 GB, free: 140.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003862/9.151, allocations: 191.9 kB / 4.223 GB, free: 140 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-05/9.151, allocations: 23.98 kB / 4.223 GB, free: 140 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002246/9.153, allocations: 2.425 MB / 4.225 GB, free: 137.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/9.153, allocations: 7.938 kB / 4.225 GB, free: 137.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003852/9.157, allocations: 2.313 MB / 4.228 GB, free: 134.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000975/9.158, allocations: 351.1 kB / 4.228 GB, free: 134.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004599/9.158, allocations: 12 kB / 4.228 GB, free: 134.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/9.16, allocations: 127.8 kB / 4.228 GB, free: 134.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/9.16, allocations: 68.59 kB / 4.228 GB, free: 134.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.526e-05/9.16, allocations: 40.36 kB / 4.228 GB, free: 134.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001293/9.162, allocations: 0.6992 MB / 4.229 GB, free: 133.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.3e-07/9.162, allocations: 0 / 4.229 GB, free: 133.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004873/9.166, allocations: 0.9677 MB / 4.23 GB, free: 132.6 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.00396/9.17, allocations: 2.638 MB / 4.232 GB, free: 130.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003397/9.174, allocations: 2.523 MB / 4.235 GB, free: 127.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/9.174, allocations: 0 / 4.235 GB, free: 127.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008406/9.175, allocations: 0.6644 MB / 4.235 GB, free: 126.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003851/9.179, allocations: 0.7222 MB / 4.236 GB, free: 126.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005722/9.184, allocations: 2.524 MB / 4.239 GB, free: 123.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/9.185, allocations: 1.389 MB / 4.24 GB, free: 122.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002398/9.188, allocations: 429 kB / 4.24 GB, free: 121.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002752/9.188, allocations: 79.42 kB / 4.24 GB, free: 121.7 MB / 1.151 GB Notification: Performance of SimCode: time 7.72e-07/9.188, allocations: 0 / 4.24 GB, free: 121.7 MB / 1.151 GB Notification: Performance of Templates: time 0.06202/9.25, allocations: 45.95 MB / 4.285 GB, free: 76.03 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