Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.967/1.967, allocations: 390.4 MB / 397.7 MB, free: 11.22 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.001065/0.001065, allocations: 177.3 kB / 490.8 MB, free: 1.875 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.467/1.467, allocations: 221.4 MB / 0.7863 GB, free: 13.61 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.0009489/0.0009489, allocations: 95.06 kB / 0.9264 GB, free: 14.13 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.127e-06/9.147e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3165, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.83/5.146, allocations: 1.931 GB / 3.143 GB, free: 405 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/5.147, allocations: 91.94 kB / 3.143 GB, free: 404.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.132/8.278, allocations: 1.051 GB / 4.194 GB, free: 194 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001719/8.279, allocations: 43.91 kB / 4.194 GB, free: 193.9 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.00558/8.284, allocations: 2.079 MB / 4.196 GB, free: 191.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.625e-05/8.284, allocations: 8.031 kB / 4.196 GB, free: 191.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004834/8.289, allocations: 0.66 MB / 4.197 GB, free: 191.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004407/8.294, allocations: 1.455 MB / 4.198 GB, free: 189.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004013/8.294, allocations: 121.8 kB / 4.198 GB, free: 189.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003516/8.294, allocations: 75.91 kB / 4.198 GB, free: 189.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002112/8.297, allocations: 1.03 MB / 4.199 GB, free: 188.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/8.298, allocations: 1.217 MB / 4.201 GB, free: 187.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.343e-05/8.298, allocations: 11.34 kB / 4.201 GB, free: 187.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/8.298, allocations: 0 / 4.201 GB, free: 187.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.33e-05/8.299, allocations: 46.16 kB / 4.201 GB, free: 187.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007969/8.307, allocations: 6.05 MB / 4.206 GB, free: 181 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008621/8.307, allocations: 0.6002 MB / 4.207 GB, free: 180.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005897/8.308, allocations: 492.1 kB / 4.208 GB, free: 179.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006871/8.309, allocations: 479.9 kB / 4.208 GB, free: 179.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007446/8.309, allocations: 0.5482 MB / 4.209 GB, free: 178.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=87): time 3.867e-06/8.309, allocations: 0 / 4.209 GB, free: 178.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=94): time 0.008384/8.318, allocations: 3.102 MB / 4.212 GB, free: 175.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/8.318, allocations: 192.7 kB / 4.212 GB, free: 175.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001281/8.319, allocations: 0.9174 MB / 4.213 GB, free: 174.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.955e-05/8.319, allocations: 25.7 kB / 4.213 GB, free: 174.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003785/8.32, allocations: 489.5 kB / 4.213 GB, free: 174 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002501/8.32, allocations: 313.6 kB / 4.213 GB, free: 173.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.988e-05/8.32, allocations: 3.938 kB / 4.213 GB, free: 173.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.332e-05/8.32, allocations: 341.9 kB / 4.214 GB, free: 173.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004929/8.321, allocations: 381.9 kB / 4.214 GB, free: 173 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000619/8.321, allocations: 0.5836 MB / 4.215 GB, free: 172.3 MB / 1.151 GB Notification: The following equation is consistent and got removed from the initialization problem: $DER.heaDyn.vol.dynBal.medium.p = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.00401/8.325, allocations: 1.411 MB / 4.216 GB, free: 170.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/8.325, allocations: 0 / 4.216 GB, free: 170.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.003645/8.329, allocations: 1.586 MB / 4.218 GB, free: 169.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002305/8.329, allocations: 1.246 MB / 4.219 GB, free: 168 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/8.329, allocations: 4 kB / 4.219 GB, free: 168 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009273/8.33, allocations: 391.1 kB / 4.219 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008068/8.331, allocations: 185.7 kB / 4.219 GB, free: 167.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005701/8.337, allocations: 6.172 MB / 4.225 GB, free: 161 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/8.339, allocations: 129.5 kB / 4.226 GB, free: 160.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/8.339, allocations: 40.05 kB / 4.226 GB, free: 160.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.157e-06/8.339, allocations: 6.969 kB / 4.226 GB, free: 160.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003482/8.342, allocations: 1.389 MB / 4.227 GB, free: 159.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/8.342, allocations: 4 kB / 4.227 GB, free: 159.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009343/8.343, allocations: 397.5 kB / 4.227 GB, free: 159.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000793/8.344, allocations: 185.5 kB / 4.228 GB, free: 158.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006598/8.351, allocations: 7.01 MB / 4.234 GB, free: 151.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/8.352, allocations: 125.4 kB / 4.234 GB, free: 151.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/8.353, allocations: 36.06 kB / 4.235 GB, free: 151.3 MB / 1.151 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: $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 (88): * Single equations (assignments): 83 * 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 10,1 2,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004894/8.353, allocations: 170 kB / 4.235 GB, free: 151.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000427/8.354, allocations: 157.9 kB / 4.235 GB, free: 151 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00361/8.357, allocations: 1.408 MB / 4.236 GB, free: 149.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/8.357, allocations: 12 kB / 4.236 GB, free: 149.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/8.357, allocations: 0 / 4.236 GB, free: 149.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002744/8.36, allocations: 1.279 MB / 4.237 GB, free: 148.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006676/8.367, allocations: 3.089 MB / 4.24 GB, free: 145.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/8.367, allocations: 7.938 kB / 4.24 GB, free: 145.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/8.368, allocations: 194.6 kB / 4.241 GB, free: 144.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004227/8.368, allocations: 188.8 kB / 4.241 GB, free: 144.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-05/8.368, allocations: 23.7 kB / 4.241 GB, free: 144.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002587/8.371, allocations: 2.412 MB / 4.243 GB, free: 142.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/8.371, allocations: 8 kB / 4.243 GB, free: 142.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004151/8.375, allocations: 2.352 MB / 4.246 GB, free: 139.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/8.376, allocations: 351.2 kB / 4.246 GB, free: 139.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004861/8.377, allocations: 12 kB / 4.246 GB, free: 139.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/8.378, allocations: 137.7 kB / 4.246 GB, free: 139.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/8.379, allocations: 54.77 kB / 4.246 GB, free: 139.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/8.379, allocations: 35.98 kB / 4.246 GB, free: 139.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001263/8.38, allocations: 0.7031 MB / 4.247 GB, free: 138.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004791/8.385, allocations: 0.9451 MB / 4.248 GB, free: 137.4 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.003836/8.389, allocations: 2.634 MB / 4.25 GB, free: 135.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003497/8.392, allocations: 2.369 MB / 4.253 GB, free: 132.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.507e-06/8.392, allocations: 4 kB / 4.253 GB, free: 132.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009052/8.393, allocations: 0.6577 MB / 4.253 GB, free: 131.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003944/8.397, allocations: 0.696 MB / 4.254 GB, free: 131.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007891/8.405, allocations: 2.623 MB / 4.256 GB, free: 128.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001793/8.407, allocations: 1.484 MB / 4.258 GB, free: 127.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.242e-06/8.407, allocations: 4 kB / 4.258 GB, free: 127.1 MB / 1.151 GB Notification: Performance of Templates: time 0.07662/8.483, allocations: 49.69 MB / 4.306 GB, free: 77.88 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Validation_HeaterCooler_u.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Validation.HeaterCooler_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches