Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_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.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_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.062/2.062, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001426/0.001426, allocations: 187.7 kB / 487 MB, free: 5.414 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.453/1.453, allocations: 221.3 MB / 0.7819 GB, free: 1.445 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.001028/0.001028, allocations: 103 kB / 0.9213 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.884e-06/7.905e-06, allocations: 4 kB / 1.066 GB, free: 168.4 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3082, allocations: 142.3 MB / 1.205 GB, free: 26.32 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.134/1.442, allocations: 445.5 MB / 1.64 GB, free: 10.41 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/1.442, allocations: 95.69 kB / 1.64 GB, free: 10.36 MB / 1.073 GB Notification: Performance of FrontEnd: time 4.226/5.668, allocations: 1.149 GB / 2.79 GB, free: 211.4 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0002249/5.669, allocations: 60.56 kB / 2.79 GB, free: 211.4 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.004866/5.674, allocations: 2.137 MB / 2.792 GB, free: 210.2 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/5.674, allocations: 14.69 kB / 2.792 GB, free: 210.2 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002448/5.676, allocations: 482 kB / 2.792 GB, free: 210.1 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00643/5.683, allocations: 2.514 MB / 2.795 GB, free: 209.6 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.547e-05/5.683, allocations: 39.25 kB / 2.795 GB, free: 209.6 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001907/5.683, allocations: 77.98 kB / 2.795 GB, free: 209.6 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001717/5.685, allocations: 0.879 MB / 2.796 GB, free: 209.6 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001801/5.686, allocations: 1.162 MB / 2.797 GB, free: 209.3 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.729e-05/5.686, allocations: 13.03 kB / 2.797 GB, free: 209.3 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/5.686, allocations: 0 / 2.797 GB, free: 209.3 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.714e-05/5.687, allocations: 50.05 kB / 2.797 GB, free: 209.3 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/5.697, allocations: 7.775 MB / 2.805 GB, free: 204.7 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007001/5.698, allocations: 477.4 kB / 2.805 GB, free: 204.7 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005298/5.698, allocations: 394.5 kB / 2.805 GB, free: 204.7 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004652/5.703, allocations: 2.541 MB / 2.808 GB, free: 203.4 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005927/5.704, allocations: 415.3 kB / 2.808 GB, free: 203.4 MB / 1.182 GB Notification: Performance of pre-optimization done (n=70): time 3.186e-06/5.704, allocations: 0 / 2.808 GB, free: 203.4 MB / 1.182 GB Notification: Performance of matching and sorting (n=70): time 0.002176/5.706, allocations: 0.8428 MB / 2.809 GB, free: 203.2 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/5.706, allocations: 167.4 kB / 2.809 GB, free: 203 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001756/5.708, allocations: 1.19 MB / 2.81 GB, free: 202.9 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 7.828e-05/5.708, allocations: 25.7 kB / 2.81 GB, free: 202.8 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005899/5.708, allocations: 0.5845 MB / 2.811 GB, free: 202.5 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002675/5.709, allocations: 236.7 kB / 2.811 GB, free: 202.4 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.402e-05/5.709, allocations: 0 / 2.811 GB, free: 202.4 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 9.61e-05/5.709, allocations: 348.2 kB / 2.812 GB, free: 202.1 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004105/5.709, allocations: 274.1 kB / 2.812 GB, free: 202 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00061/5.71, allocations: 0.6516 MB / 2.813 GB, free: 201.6 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/5.711, allocations: 472.9 kB / 2.813 GB, free: 201.6 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/5.711, allocations: 3.906 kB / 2.813 GB, free: 201.6 MB / 1.182 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002522/5.714, allocations: 1.099 MB / 2.814 GB, free: 201.4 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008497/5.714, allocations: 3.961 MB / 2.818 GB, free: 197.2 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/5.715, allocations: 13.22 kB / 2.818 GB, free: 197.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.991e-05/5.715, allocations: 16.62 kB / 2.818 GB, free: 197.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/5.716, allocations: 261.2 kB / 2.818 GB, free: 197.2 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.149e-05/5.716, allocations: 19.94 kB / 2.818 GB, free: 197.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/5.718, allocations: 162.4 kB / 2.818 GB, free: 197.1 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/5.718, allocations: 51.3 kB / 2.818 GB, free: 197.1 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/5.718, allocations: 4.422 kB / 2.818 GB, free: 197.1 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002255/5.72, allocations: 0.8789 MB / 2.819 GB, free: 197.1 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/5.72, allocations: 15.11 kB / 2.819 GB, free: 197.1 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/5.72, allocations: 16.72 kB / 2.819 GB, free: 197.1 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/5.721, allocations: 254.2 kB / 2.82 GB, free: 197.1 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.468e-05/5.721, allocations: 24.33 kB / 2.82 GB, free: 197.1 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/5.723, allocations: 138.9 kB / 2.82 GB, free: 197 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/5.723, allocations: 55.48 kB / 2.82 GB, free: 197 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 120 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003352/5.723, allocations: 142 kB / 2.82 GB, free: 196.9 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003021/5.724, allocations: 166.1 kB / 2.82 GB, free: 196.8 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003287/5.727, allocations: 1.062 MB / 2.821 GB, free: 196.7 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.139e-05/5.727, allocations: 13.05 kB / 2.821 GB, free: 196.7 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/5.727, allocations: 1.5 kB / 2.821 GB, free: 196.7 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001559/5.728, allocations: 0.709 MB / 2.822 GB, free: 196.6 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005073/5.734, allocations: 2.429 MB / 2.824 GB, free: 195.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/5.734, allocations: 1.938 kB / 2.824 GB, free: 195.7 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008807/5.734, allocations: 179.9 kB / 2.824 GB, free: 195.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001955/5.735, allocations: 36.08 kB / 2.824 GB, free: 195.7 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.36e-05/5.735, allocations: 16.3 kB / 2.824 GB, free: 195.7 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008509/5.736, allocations: 1.261 MB / 2.826 GB, free: 194.4 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/5.736, allocations: 5.656 kB / 2.826 GB, free: 194.4 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00264/5.738, allocations: 1.553 MB / 2.827 GB, free: 193.9 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008108/5.739, allocations: 369.5 kB / 2.827 GB, free: 193.6 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002292/5.739, allocations: 10.81 kB / 2.827 GB, free: 193.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/5.74, allocations: 89.84 kB / 2.828 GB, free: 193.6 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/5.741, allocations: 55.27 kB / 2.828 GB, free: 193.6 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.246e-05/5.741, allocations: 42.31 kB / 2.828 GB, free: 193.5 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.00158/5.742, allocations: 0.897 MB / 2.829 GB, free: 193.4 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.004989/5.747, allocations: 1.045 MB / 2.83 GB, free: 193.1 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002414/5.75, allocations: 1.1 MB / 2.831 GB, free: 192.7 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.002697/5.752, allocations: 1.317 MB / 2.832 GB, free: 192.1 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/5.752, allocations: 3.625 kB / 2.832 GB, free: 192.1 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.0008454/5.753, allocations: 495.8 kB / 2.832 GB, free: 191.9 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00374/5.757, allocations: 0.707 MB / 2.833 GB, free: 191.6 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005811/5.763, allocations: 2.434 MB / 2.835 GB, free: 190.4 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00149/5.764, allocations: 1.594 MB / 2.837 GB, free: 189.3 MB / 1.182 GB Notification: Performance of SimCode: time 1.022e-06/5.764, allocations: 0 / 2.837 GB, free: 189.3 MB / 1.182 GB Notification: Performance of Templates: time 0.07382/5.838, allocations: 38.92 MB / 2.875 GB, free: 165.4 MB / 1.182 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches