Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.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.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") [: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 1.773/1.773, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.0008897/0.0008897, allocations: 184.4 kB / 487 MB, free: 5.355 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.142/1.142, allocations: 221.3 MB / 0.7819 GB, free: 1.375 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.0008656/0.0008656, allocations: 98.86 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.773e-06/6.803e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1925, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4971/0.6896, allocations: 148 MB / 1.35 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001716/0.6898, allocations: 62.16 kB / 1.35 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002024/0.6919, allocations: 0.772 MB / 1.351 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.6919, allocations: 2.062 kB / 1.351 GB, free: 15.8 MB / 0.8073 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.0002213/0.6921, allocations: 356.6 kB / 1.351 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.6922, allocations: 9.469 kB / 1.351 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.255e-05/0.6922, allocations: 9.172 kB / 1.351 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.918e-05/0.6923, allocations: 177.1 kB / 1.351 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.6923, allocations: 3.094 kB / 1.351 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.6923, allocations: 4.812 kB / 1.351 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.174e-05/0.6924, allocations: 39.69 kB / 1.351 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.5e-05/0.6925, allocations: 82.75 kB / 1.351 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.6926, allocations: 4 kB / 1.351 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-06/0.6926, allocations: 0 / 1.351 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.6926, allocations: 1.938 kB / 1.351 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003655/0.6929, allocations: 409.2 kB / 1.352 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.484e-05/0.693, allocations: 41.92 kB / 1.352 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.66e-05/0.693, allocations: 19.25 kB / 1.352 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 6.002e-06/0.693, allocations: 0 / 1.352 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.257e-05/0.6931, allocations: 41.27 kB / 1.352 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.6931, allocations: 0 / 1.352 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0001233/0.6932, allocations: 43.41 kB / 1.352 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.031e-05/0.6932, allocations: 77.11 kB / 1.352 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.284e-05/0.6933, allocations: 117.9 kB / 1.352 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 6.281e-06/0.6933, allocations: 25.7 kB / 1.352 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.224e-05/0.6933, allocations: 116 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.999e-06/0.6934, allocations: 5.375 kB / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-06/0.6934, allocations: 0 / 1.352 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.588e-05/0.6934, allocations: 317.2 kB / 1.352 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.382e-05/0.6934, allocations: 3.531 kB / 1.352 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.628e-05/0.6934, allocations: 19.19 kB / 1.352 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.91e-05/0.6935, allocations: 8.594 kB / 1.352 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.6935, allocations: 7.938 kB / 1.352 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.412e-05/0.6935, allocations: 55.33 kB / 1.352 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.356e-06/0.6936, allocations: 4.188 kB / 1.352 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.6936, allocations: 1.125 kB / 1.352 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.6936, allocations: 0.9062 kB / 1.352 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.613e-05/0.6936, allocations: 7.859 kB / 1.352 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.6936, allocations: 0 / 1.352 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.269e-05/0.6937, allocations: 10.28 kB / 1.352 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.6937, allocations: 2 kB / 1.352 GB, free: 13.98 MB / 0.8073 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 3.572e-05/0.6937, allocations: 111.8 kB / 1.353 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.243e-05/0.6938, allocations: 9.047 kB / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.092e-05/0.6938, allocations: 8.562 kB / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.6938, allocations: 3.719 kB / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.6938, allocations: 0 / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.6938, allocations: 1.406 kB / 1.353 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.694, allocations: 434 kB / 1.353 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.6941, allocations: 8.938 kB / 1.353 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.909e-05/0.6941, allocations: 6.453 kB / 1.353 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.6941, allocations: 1 kB / 1.353 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-06/0.6941, allocations: 224 / 1.353 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.6941, allocations: 1.344 kB / 1.353 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.6941, allocations: 6.453 kB / 1.353 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.355e-05/0.6942, allocations: 86.91 kB / 1.353 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.462e-05/0.6942, allocations: 85.39 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.6942, allocations: 1.062 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.801e-05/0.6942, allocations: 1.188 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.999e-06/0.6942, allocations: 6.656 kB / 1.353 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.6943, allocations: 5.062 kB / 1.353 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.583e-05/0.6943, allocations: 100.6 kB / 1.353 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001658/0.6945, allocations: 8.125 kB / 1.353 GB, free: 13.14 MB / 0.8073 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 7.598e-05/0.6945, allocations: 105.2 kB / 1.353 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 5.854e-05/0.6946, allocations: 14.06 kB / 1.353 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.6946, allocations: 0 / 1.353 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.897e-06/0.6946, allocations: 7.062 kB / 1.353 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.748e-05/0.6947, allocations: 8.312 kB / 1.353 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001903/0.6949, allocations: 106.5 kB / 1.354 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.6952, allocations: 0.7096 MB / 1.354 GB, free: 28.25 MB / 0.823 GB Notification: Performance of SimCode: time 2.5e-07/0.6952, allocations: 0 / 1.354 GB, free: 28.25 MB / 0.823 GB Notification: Performance of Templates: time 0.001792/0.697, allocations: 332.1 kB / 1.355 GB, free: 28.19 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & ./Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches