Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.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.From_BtuPerHour,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour") [: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.316/1.316, allocations: 249.4 MB / 256.7 MB, free: 6.949 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.001032/0.001032, allocations: 177.2 kB / 316 MB, free: 3.539 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.514/1.514, allocations: 205.1 MB / 0.5667 GB, free: 15.62 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.0009557/0.0009557, allocations: 93.2 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.726e-06/8.787e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2162, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6482/0.8645, allocations: 131.7 MB / 1.013 GB, free: 7.039 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.8648, allocations: 66.64 kB / 1.013 GB, free: 7.004 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002638/0.8674, allocations: 0.8443 MB / 1.014 GB, free: 6.312 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.318e-06/0.8675, allocations: 0 / 1.014 GB, free: 6.312 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.0003728/0.8678, allocations: 369.8 kB / 1.014 GB, free: 5.914 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.8679, allocations: 12.03 kB / 1.014 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.888e-05/0.8679, allocations: 7.906 kB / 1.014 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001974/0.8681, allocations: 178.9 kB / 1.015 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.8682, allocations: 2.562 kB / 1.015 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.8682, allocations: 8 kB / 1.015 GB, free: 5.672 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.791e-05/0.8683, allocations: 34.97 kB / 1.015 GB, free: 5.648 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.8684, allocations: 81.2 kB / 1.015 GB, free: 5.57 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.8684, allocations: 3.938 kB / 1.015 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.8685, allocations: 4 kB / 1.015 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.8685, allocations: 0 / 1.015 GB, free: 5.562 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005742/0.869, allocations: 417.5 kB / 1.015 GB, free: 5.145 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.933e-05/0.8691, allocations: 37.2 kB / 1.015 GB, free: 5.09 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.529e-05/0.8691, allocations: 25 kB / 1.015 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.8692, allocations: 0 / 1.015 GB, free: 5.062 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.8692, allocations: 34.47 kB / 1.015 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.8692, allocations: 2.734 kB / 1.015 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001886/0.8694, allocations: 41.27 kB / 1.015 GB, free: 4.977 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.8695, allocations: 84.95 kB / 1.015 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.8696, allocations: 119.4 kB / 1.015 GB, free: 4.758 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.8696, allocations: 29.7 kB / 1.015 GB, free: 4.723 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.036e-05/0.8697, allocations: 107.1 kB / 1.016 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 9.036e-06/0.8697, allocations: 11.89 kB / 1.016 GB, free: 4.609 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.8697, allocations: 0.8438 kB / 1.016 GB, free: 4.609 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.8698, allocations: 314.7 kB / 1.016 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.803e-05/0.8699, allocations: 4 kB / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.524e-05/0.8699, allocations: 20.66 kB / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.65e-05/0.8699, allocations: 15.98 kB / 1.016 GB, free: 4.258 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.8699, allocations: 3.906 kB / 1.016 GB, free: 4.254 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.019e-05/0.87, allocations: 52.95 kB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.87, allocations: 6.344 kB / 1.016 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.8701, allocations: 0 / 1.016 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.8701, allocations: 11.84 kB / 1.016 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.282e-05/0.8702, allocations: 7.984 kB / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.8702, allocations: 0 / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.02e-05/0.8702, allocations: 7.938 kB / 1.016 GB, free: 4.172 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-06/0.8702, allocations: 4.062 kB / 1.016 GB, free: 4.168 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 0.0001133/0.8703, allocations: 103.4 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.8704, allocations: 7.906 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.127e-05/0.8704, allocations: 14.48 kB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.8704, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.8705, allocations: 4.125 kB / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.8705, allocations: 4.078 kB / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.8709, allocations: 458.5 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.8709, allocations: 4 kB / 1.017 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.576e-05/0.8709, allocations: 7.984 kB / 1.017 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.8709, allocations: 0 / 1.017 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.8709, allocations: 4 kB / 1.017 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.8709, allocations: 0 / 1.017 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.8709, allocations: 0 / 1.017 GB, free: 3.539 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.221e-05/0.871, allocations: 91.44 kB / 1.017 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.796e-05/0.8711, allocations: 89 kB / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.8711, allocations: 0 / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.183e-05/0.8711, allocations: 0 / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.885e-05/0.8712, allocations: 3.906 kB / 1.017 GB, free: 3.32 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.8712, allocations: 4 kB / 1.017 GB, free: 3.316 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.288e-05/0.8712, allocations: 101.5 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001752/0.8714, allocations: 16.03 kB / 1.017 GB, free: 3.211 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.0001267/0.8716, allocations: 95.25 kB / 1.017 GB, free: 3.109 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.274e-05/0.8717, allocations: 19.81 kB / 1.017 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.8717, allocations: 0 / 1.017 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.308e-05/0.8717, allocations: 7.688 kB / 1.017 GB, free: 3.09 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001124/0.8718, allocations: 3.906 kB / 1.017 GB, free: 3.086 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002893/0.8721, allocations: 115.5 kB / 1.017 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003463/0.8725, allocations: 0.7075 MB / 1.018 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of SimCode: time 2.31e-07/0.8725, allocations: 0 / 1.018 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of Templates: time 0.002205/0.8747, allocations: 378.7 kB / 1.018 GB, free: 1.863 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_UnitConversions_Validation_From_BtuPerHour.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches