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") [: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 9.1.1-maint.9.1.x/package.mo): time 2.023/2.023, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.001282/0.001282, allocations: 185.2 kB / 487 MB, free: 5.336 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.672/1.672, allocations: 221.3 MB / 0.7819 GB, free: 1.348 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.001052/0.001052, allocations: 97.48 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.427e-06/9.457e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3102, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.882/5.192, allocations: 1.931 GB / 3.136 GB, free: 372.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/5.192, allocations: 95.89 kB / 3.136 GB, free: 372.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.111/8.303, allocations: 1.051 GB / 4.187 GB, free: 172.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001566/8.304, allocations: 47.67 kB / 4.187 GB, free: 172.1 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.004552/8.308, allocations: 2.081 MB / 4.189 GB, free: 170 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/8.308, allocations: 8.031 kB / 4.189 GB, free: 170 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004415/8.313, allocations: 0.6531 MB / 4.19 GB, free: 169.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003423/8.316, allocations: 1.454 MB / 4.191 GB, free: 167.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003536/8.316, allocations: 130.2 kB / 4.191 GB, free: 167.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002256/8.317, allocations: 75.91 kB / 4.191 GB, free: 167.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001839/8.319, allocations: 1.031 MB / 4.192 GB, free: 166.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001803/8.32, allocations: 1.223 MB / 4.193 GB, free: 165.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.328e-05/8.32, allocations: 0 / 4.193 GB, free: 165.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/8.321, allocations: 4 kB / 4.193 GB, free: 165.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-05/8.321, allocations: 42.22 kB / 4.193 GB, free: 165.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008479/8.329, allocations: 6.058 MB / 4.199 GB, free: 159 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008297/8.33, allocations: 0.591 MB / 4.2 GB, free: 158.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005744/8.331, allocations: 496.1 kB / 4.2 GB, free: 157.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006196/8.331, allocations: 482 kB / 4.201 GB, free: 157.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006947/8.332, allocations: 0.5513 MB / 4.201 GB, free: 156.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=87): time 3.657e-06/8.332, allocations: 0 / 4.201 GB, free: 156.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=94): time 0.00834/8.34, allocations: 3.097 MB / 4.204 GB, free: 153.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/8.34, allocations: 192.7 kB / 4.205 GB, free: 153.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/8.342, allocations: 0.929 MB / 4.206 GB, free: 152.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.000136/8.342, allocations: 29.7 kB / 4.206 GB, free: 152.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003619/8.342, allocations: 481.6 kB / 4.206 GB, free: 152 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002708/8.343, allocations: 311.4 kB / 4.206 GB, free: 151.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.081e-05/8.343, allocations: 7.281 kB / 4.206 GB, free: 151.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.548e-05/8.343, allocations: 334 kB / 4.207 GB, free: 151.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005035/8.343, allocations: 381.9 kB / 4.207 GB, free: 151 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006027/8.344, allocations: 0.5888 MB / 4.208 GB, free: 150.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.004101/8.348, allocations: 1.408 MB / 4.209 GB, free: 148.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/8.348, allocations: 8 kB / 4.209 GB, free: 148.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.003798/8.352, allocations: 1.585 MB / 4.21 GB, free: 147.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002621/8.352, allocations: 1.247 MB / 4.212 GB, free: 146 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/8.352, allocations: 11.98 kB / 4.212 GB, free: 146 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009547/8.353, allocations: 382.9 kB / 4.212 GB, free: 145.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008178/8.354, allocations: 183.8 kB / 4.212 GB, free: 145.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005816/8.36, allocations: 6.166 MB / 4.218 GB, free: 138.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/8.361, allocations: 127.7 kB / 4.218 GB, free: 138.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/8.362, allocations: 40.05 kB / 4.218 GB, free: 138.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 7.795e-06/8.362, allocations: 4 kB / 4.218 GB, free: 138.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003515/8.365, allocations: 1.386 MB / 4.22 GB, free: 137.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/8.365, allocations: 4 kB / 4.22 GB, free: 137.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009784/8.366, allocations: 395.1 kB / 4.22 GB, free: 136.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008361/8.367, allocations: 183.8 kB / 4.22 GB, free: 136.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00733/8.374, allocations: 7.024 MB / 4.227 GB, free: 129.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002285/8.377, allocations: 123.9 kB / 4.227 GB, free: 129.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/8.377, allocations: 40.05 kB / 4.227 GB, free: 129.1 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.0005095/8.377, allocations: 166.4 kB / 4.228 GB, free: 128.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/8.378, allocations: 150.2 kB / 4.228 GB, free: 128.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00369/8.381, allocations: 1.413 MB / 4.229 GB, free: 127.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/8.381, allocations: 8 kB / 4.229 GB, free: 127.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/8.381, allocations: 4 kB / 4.229 GB, free: 127.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002696/8.384, allocations: 1.276 MB / 4.23 GB, free: 126 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006528/8.391, allocations: 3.096 MB / 4.233 GB, free: 122.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/8.391, allocations: 4 kB / 4.233 GB, free: 122.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009414/8.392, allocations: 196.2 kB / 4.234 GB, free: 122.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004127/8.392, allocations: 189.9 kB / 4.234 GB, free: 122.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.92e-05/8.392, allocations: 19.98 kB / 4.234 GB, free: 122.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/8.395, allocations: 2.406 MB / 4.236 GB, free: 119.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/8.395, allocations: 7.938 kB / 4.236 GB, free: 119.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004086/8.399, allocations: 2.363 MB / 4.238 GB, free: 117.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009336/8.4, allocations: 347.2 kB / 4.239 GB, free: 117 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002371/8.4, allocations: 16 kB / 4.239 GB, free: 117 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/8.401, allocations: 127.8 kB / 4.239 GB, free: 116.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/8.401, allocations: 56.48 kB / 4.239 GB, free: 116.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.711e-05/8.402, allocations: 43.98 kB / 4.239 GB, free: 116.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0009689/8.402, allocations: 0.6992 MB / 4.24 GB, free: 116.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004003/8.406, allocations: 0.9482 MB / 4.241 GB, free: 115.1 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.00364/8.41, allocations: 2.643 MB / 4.243 GB, free: 112.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003204/8.413, allocations: 2.369 MB / 4.245 GB, free: 110.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/8.413, allocations: 4 kB / 4.245 GB, free: 110.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008325/8.414, allocations: 0.6511 MB / 4.246 GB, free: 109.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003698/8.418, allocations: 0.6948 MB / 4.247 GB, free: 108.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006147/8.424, allocations: 2.608 MB / 4.249 GB, free: 106.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/8.425, allocations: 1.492 MB / 4.251 GB, free: 104.5 MB / 1.151 GB Notification: Performance of SimCode: time 3.406e-06/8.425, allocations: 0 / 4.251 GB, free: 104.5 MB / 1.151 GB Notification: Performance of Templates: time 0.07357/8.499, allocations: 49.69 MB / 4.299 GB, free: 55.21 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