Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.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.Controls.OBC.UnitConversions.Validation.To_Btu,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_Btu,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu") [: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 7.0.3-maint.7.0.x/package.mo): time 1.434/1.434, allocations: 249.4 MB / 256.7 MB, free: 6.945 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.001054/0.001054, allocations: 184.8 kB / 316 MB, free: 3.523 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.1 MB / 0.5667 GB, free: 15.7 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.0009634/0.0009635, allocations: 94.12 kB / 0.671 GB, free: 4.828 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.186e-06/8.226e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2206, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6192/0.8398, allocations: 131.7 MB / 1.013 GB, free: 7.07 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001764/0.8401, allocations: 77.5 kB / 1.013 GB, free: 7.023 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002518/0.8426, allocations: 0.8475 MB / 1.014 GB, free: 6.328 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.985e-06/0.8426, allocations: 3.938 kB / 1.014 GB, free: 6.324 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0003525/0.843, allocations: 365.5 kB / 1.014 GB, free: 5.926 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.843, allocations: 12.02 kB / 1.014 GB, free: 5.914 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.8431, allocations: 7.906 kB / 1.014 GB, free: 5.906 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001688/0.8433, allocations: 177.6 kB / 1.015 GB, free: 5.695 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.8433, allocations: 8 kB / 1.015 GB, free: 5.688 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.446e-05/0.8433, allocations: 4 kB / 1.015 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001001/0.8434, allocations: 41.72 kB / 1.015 GB, free: 5.656 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.8435, allocations: 79.14 kB / 1.015 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.8436, allocations: 0 / 1.015 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.8436, allocations: 0 / 1.015 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.8436, allocations: 0 / 1.015 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005375/0.8441, allocations: 416.9 kB / 1.015 GB, free: 5.156 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.635e-05/0.8442, allocations: 45.14 kB / 1.015 GB, free: 5.094 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.011e-05/0.8442, allocations: 16.97 kB / 1.015 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 8.055e-06/0.8442, allocations: 0 / 1.015 GB, free: 5.074 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.8443, allocations: 34.47 kB / 1.015 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.8443, allocations: 2.734 kB / 1.015 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001634/0.8445, allocations: 45.39 kB / 1.015 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.8445, allocations: 85.08 kB / 1.015 GB, free: 4.883 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.8447, allocations: 124.5 kB / 1.015 GB, free: 4.766 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.8447, allocations: 25.7 kB / 1.015 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.054e-05/0.8447, allocations: 107.9 kB / 1.016 GB, free: 4.629 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 8.607e-06/0.8448, allocations: 7.891 kB / 1.016 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.8448, allocations: 0 / 1.016 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.8449, allocations: 314.7 kB / 1.016 GB, free: 4.309 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.786e-05/0.8449, allocations: 7.938 kB / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.487e-05/0.8449, allocations: 25.34 kB / 1.016 GB, free: 4.277 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.53e-05/0.845, allocations: 11.92 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.845, allocations: 3.906 kB / 1.016 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.799e-05/0.8451, allocations: 49.33 kB / 1.016 GB, free: 4.215 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.8451, allocations: 4 kB / 1.016 GB, free: 4.211 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.8451, allocations: 4 kB / 1.016 GB, free: 4.207 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.8451, allocations: 3.906 kB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.45e-05/0.8452, allocations: 8.062 kB / 1.016 GB, free: 4.195 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.8452, allocations: 3.984 kB / 1.016 GB, free: 4.191 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.071e-05/0.8452, allocations: 7.938 kB / 1.016 GB, free: 4.184 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.8453, allocations: 0 / 1.016 GB, free: 4.184 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 6.771e-05/0.8453, allocations: 110.5 kB / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.571e-05/0.8454, allocations: 7.906 kB / 1.016 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.689e-05/0.8454, allocations: 14.98 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.8454, allocations: 0 / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.8454, allocations: 12.16 kB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.8455, allocations: 7.984 kB / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004032/0.8459, allocations: 455.5 kB / 1.017 GB, free: 3.559 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.8459, allocations: 4 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.204e-05/0.8459, allocations: 0 / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.269e-05/0.8459, allocations: 4 kB / 1.017 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.043e-06/0.8459, allocations: 3.984 kB / 1.017 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.8459, allocations: 0 / 1.017 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.8459, allocations: 0 / 1.017 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.962e-05/0.846, allocations: 86.38 kB / 1.017 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.8461, allocations: 89 kB / 1.017 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.8461, allocations: 0 / 1.017 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.204e-05/0.8462, allocations: 0 / 1.017 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.744e-05/0.8462, allocations: 7.906 kB / 1.017 GB, free: 3.328 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.8462, allocations: 4.031 kB / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.19e-05/0.8463, allocations: 111 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001754/0.8465, allocations: 8 kB / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001265/0.8466, allocations: 95.25 kB / 1.017 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 7.904e-05/0.8467, allocations: 18.06 kB / 1.017 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.8467, allocations: 0 / 1.017 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.294e-05/0.8467, allocations: 4 kB / 1.017 GB, free: 3.102 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.8468, allocations: 12.03 kB / 1.017 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002885/0.8471, allocations: 111.3 kB / 1.017 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003115/0.8474, allocations: 0.7075 MB / 1.018 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of SimCode: time 2.5e-07/0.8474, allocations: 0 / 1.018 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of Templates: time 0.002288/0.8497, allocations: 379.5 kB / 1.018 GB, free: 1.867 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_UnitConversions_Validation_To_Btu.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches