Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_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.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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.823/1.823, allocations: 249.5 MB / 257 MB, free: 6.992 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.001525/0.001525, allocations: 183.5 kB / 316.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.22/2.22, allocations: 205.3 MB / 0.5671 GB, free: 15.81 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.001427/0.001427, allocations: 82.48 kB / 0.6714 GB, free: 4.93 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.685e-05/1.687e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2649/0.265, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.092/7.357, allocations: 2.205 GB / 3.09 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/7.357, allocations: 90.5 kB / 3.09 GB, free: 145.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 3.868/11.22, allocations: 0.9953 GB / 4.085 GB, free: 125.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.114e-06/11.23, allocations: 3.938 kB / 4.085 GB, free: 125.6 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001578/11.23, allocations: 49.33 kB / 4.085 GB, free: 125.6 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.004383/11.23, allocations: 2.068 MB / 4.087 GB, free: 123.5 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/11.23, allocations: 11.97 kB / 4.087 GB, free: 123.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003858/11.23, allocations: 0.6169 MB / 4.088 GB, free: 122.8 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003291/11.24, allocations: 1.432 MB / 4.089 GB, free: 121.4 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003332/11.24, allocations: 122.2 kB / 4.089 GB, free: 121.3 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/11.24, allocations: 79.91 kB / 4.089 GB, free: 121.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001751/11.24, allocations: 0.984 MB / 4.09 GB, free: 120.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001869/11.24, allocations: 1.184 MB / 4.092 GB, free: 118.9 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.389e-05/11.24, allocations: 11.94 kB / 4.092 GB, free: 118.9 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/11.24, allocations: 3.188 kB / 4.092 GB, free: 118.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.75e-05/11.24, allocations: 46.22 kB / 4.092 GB, free: 118.9 MB / 0.8698 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.007838/11.25, allocations: 5.62 MB / 4.097 GB, free: 113 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009947/11.25, allocations: 0.9358 MB / 4.098 GB, free: 112.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/11.25, allocations: 458.8 kB / 4.098 GB, free: 111.6 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005174/11.25, allocations: 319.7 kB / 4.099 GB, free: 111.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006668/11.25, allocations: 0.5092 MB / 4.099 GB, free: 110.7 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=87): time 3.006e-06/11.25, allocations: 0 / 4.099 GB, free: 110.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95): time 0.007106/11.26, allocations: 2.971 MB / 4.102 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/11.26, allocations: 196.7 kB / 4.102 GB, free: 107.5 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/11.26, allocations: 0.9245 MB / 4.103 GB, free: 106.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001188/11.26, allocations: 29.7 kB / 4.103 GB, free: 106.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005764/11.26, allocations: 0.7281 MB / 4.104 GB, free: 105.8 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002201/11.26, allocations: 311.4 kB / 4.104 GB, free: 105.5 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/11.26, allocations: 4 kB / 4.104 GB, free: 105.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.57e-05/11.26, allocations: 341.9 kB / 4.105 GB, free: 105.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004479/11.26, allocations: 374.5 kB / 4.105 GB, free: 104.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005738/11.26, allocations: 0.578 MB / 4.106 GB, free: 104.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003448/11.27, allocations: 1.339 MB / 4.107 GB, free: 102.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/11.27, allocations: 7.5 kB / 4.107 GB, free: 102.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003571/11.27, allocations: 1.6 MB / 4.108 GB, free: 101.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002982/11.27, allocations: 1.29 MB / 4.11 GB, free: 99.74 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/11.27, allocations: 4 kB / 4.11 GB, free: 99.74 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009118/11.27, allocations: 410.6 kB / 4.11 GB, free: 99.34 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007072/11.27, allocations: 171.8 kB / 4.11 GB, free: 99.17 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005764/11.28, allocations: 6.505 MB / 4.117 GB, free: 92.29 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/11.28, allocations: 131.7 kB / 4.117 GB, free: 92.16 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/11.28, allocations: 43.98 kB / 4.117 GB, free: 92.12 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/11.28, allocations: 4 kB / 4.117 GB, free: 92.12 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003278/11.28, allocations: 1.424 MB / 4.118 GB, free: 90.68 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/11.28, allocations: 3.938 kB / 4.118 GB, free: 90.68 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008824/11.28, allocations: 414.3 kB / 4.119 GB, free: 90.27 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/11.28, allocations: 163.8 kB / 4.119 GB, free: 90.11 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006414/11.29, allocations: 7.453 MB / 4.126 GB, free: 82.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001769/11.29, allocations: 123.9 kB / 4.126 GB, free: 82.07 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.481e-05/11.29, allocations: 39.98 kB / 4.126 GB, free: 82.03 MB / 0.8698 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 (86): * Single equations (assignments): 81 * 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 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004463/11.29, allocations: 162.5 kB / 4.126 GB, free: 81.86 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002241/11.29, allocations: 154.1 kB / 4.126 GB, free: 81.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/11.3, allocations: 1.388 MB / 4.128 GB, free: 80.29 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/11.3, allocations: 11.94 kB / 4.128 GB, free: 80.28 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/11.3, allocations: 8.078 kB / 4.128 GB, free: 80.27 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002543/11.3, allocations: 1.273 MB / 4.129 GB, free: 78.97 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006189/11.31, allocations: 3.145 MB / 4.132 GB, free: 75.73 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/11.31, allocations: 7.938 kB / 4.132 GB, free: 75.72 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008539/11.31, allocations: 192 kB / 4.132 GB, free: 75.53 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003827/11.31, allocations: 192.7 kB / 4.133 GB, free: 75.35 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.676e-05/11.31, allocations: 19.98 kB / 4.133 GB, free: 75.33 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002273/11.31, allocations: 2.406 MB / 4.135 GB, free: 72.78 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/11.31, allocations: 12 kB / 4.135 GB, free: 72.77 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004006/11.31, allocations: 2.32 MB / 4.137 GB, free: 70.25 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/11.31, allocations: 351.2 kB / 4.138 GB, free: 69.89 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000498/11.31, allocations: 12 kB / 4.138 GB, free: 69.88 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/11.32, allocations: 131.7 kB / 4.138 GB, free: 69.75 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/11.32, allocations: 68.58 kB / 4.138 GB, free: 69.68 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/11.32, allocations: 39.98 kB / 4.138 GB, free: 69.64 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.00141/11.32, allocations: 0.6992 MB / 4.138 GB, free: 68.94 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4.11e-07/11.32, allocations: 0 / 4.138 GB, free: 68.94 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004955/11.32, allocations: 0.9451 MB / 4.139 GB, free: 68 MB / 0.8698 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 (82): * Single equations (assignments): 79 * 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.004312/11.33, allocations: 2.625 MB / 4.142 GB, free: 65.55 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.003685/11.33, allocations: 2.541 MB / 4.144 GB, free: 62.92 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/11.33, allocations: 4.062 kB / 4.144 GB, free: 62.91 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008506/11.33, allocations: 0.6716 MB / 4.145 GB, free: 62.22 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004378/11.34, allocations: 0.7245 MB / 4.146 GB, free: 61.52 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006581/11.34, allocations: 2.547 MB / 4.148 GB, free: 58.91 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009252/11.34, allocations: 1.397 MB / 4.15 GB, free: 57.48 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.002284/11.35, allocations: 426.1 kB / 4.15 GB, free: 57.08 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/11.35, allocations: 87.42 kB / 4.15 GB, free: 56.99 MB / 0.8698 GB Notification: Performance of SimCode: time 9.62e-07/11.35, allocations: 0 / 4.15 GB, free: 56.99 MB / 0.8698 GB Notification: Performance of Templates: time 0.06914/11.42, allocations: 46.54 MB / 4.196 GB, free: 10.86 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches