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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.276/2.276, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001094/0.001094, allocations: 180.2 kB / 498.1 MB, free: 5.715 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.5/1.5, allocations: 223.2 MB / 0.7948 GB, free: 17.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008901/0.0008903, allocations: 100.3 kB / 0.9346 GB, free: 6.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003614/0.0003616, allocations: 15 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2938, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1844/0.4783, allocations: 148.8 MB / 1.368 GB, free: 13.17 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.4786, allocations: 63.97 kB / 1.368 GB, free: 13.11 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002469/0.4811, allocations: 1.088 MB / 1.369 GB, free: 12.02 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4811, allocations: 4 kB / 1.369 GB, free: 12.01 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.003e-06/0.4811, allocations: 0 / 1.369 GB, free: 12.01 MB / 0.8698 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.0003395/0.4815, allocations: 371.5 kB / 1.37 GB, free: 11.61 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.4815, allocations: 8.031 kB / 1.37 GB, free: 11.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.756e-05/0.4816, allocations: 11.86 kB / 1.37 GB, free: 11.59 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.4817, allocations: 186.8 kB / 1.37 GB, free: 11.36 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.4817, allocations: 8 kB / 1.37 GB, free: 11.36 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.4818, allocations: 8 kB / 1.37 GB, free: 11.35 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.4819, allocations: 95.31 kB / 1.37 GB, free: 11.24 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.4819, allocations: 0 / 1.37 GB, free: 11.24 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.4819, allocations: 4 kB / 1.37 GB, free: 11.24 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.482, allocations: 4 kB / 1.37 GB, free: 11.23 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.219e-05/0.482, allocations: 39.92 kB / 1.37 GB, free: 11.2 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005438/0.4826, allocations: 448.6 kB / 1.37 GB, free: 10.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.267e-05/0.4826, allocations: 37.19 kB / 1.37 GB, free: 10.65 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.4827, allocations: 4 kB / 1.37 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.4827, allocations: 38.69 kB / 1.371 GB, free: 10.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.4827, allocations: 0 / 1.371 GB, free: 10.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0001604/0.4829, allocations: 49.55 kB / 1.371 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.4829, allocations: 77.11 kB / 1.371 GB, free: 10.45 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.483, allocations: 147.4 kB / 1.371 GB, free: 10.3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.4831, allocations: 25.95 kB / 1.371 GB, free: 10.27 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.041e-05/0.4831, allocations: 112.2 kB / 1.371 GB, free: 10.16 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.09e-05/0.4831, allocations: 7.906 kB / 1.371 GB, free: 10.15 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-06/0.4832, allocations: 3.938 kB / 1.371 GB, free: 10.14 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 9.931e-05/0.4833, allocations: 318.8 kB / 1.371 GB, free: 9.824 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.631e-05/0.4833, allocations: 4 kB / 1.371 GB, free: 9.82 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.355e-05/0.4833, allocations: 21.66 kB / 1.371 GB, free: 9.793 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.169e-05/0.4833, allocations: 19.95 kB / 1.371 GB, free: 9.773 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.4834, allocations: 0 / 1.371 GB, free: 9.773 MB / 0.8698 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.638e-05/0.4834, allocations: 57.59 kB / 1.371 GB, free: 9.711 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.4835, allocations: 8 kB / 1.371 GB, free: 9.703 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.4835, allocations: 0 / 1.371 GB, free: 9.703 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.4835, allocations: 0 / 1.371 GB, free: 9.703 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.579e-05/0.4836, allocations: 7.938 kB / 1.371 GB, free: 9.695 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.4836, allocations: 4 kB / 1.371 GB, free: 9.691 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.757e-05/0.4836, allocations: 3.906 kB / 1.371 GB, free: 9.688 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.4836, allocations: 7.938 kB / 1.371 GB, free: 9.68 MB / 0.8698 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 () * Number of clocked 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 7.475e-05/0.4837, allocations: 117.9 kB / 1.371 GB, free: 9.555 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/0.4838, allocations: 11.89 kB / 1.371 GB, free: 9.543 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.925e-05/0.4838, allocations: 11.88 kB / 1.372 GB, free: 9.531 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.4838, allocations: 0 / 1.372 GB, free: 9.531 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4838, allocations: 4 kB / 1.372 GB, free: 9.527 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.4838, allocations: 0 / 1.372 GB, free: 9.527 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003398/0.4842, allocations: 478.7 kB / 1.372 GB, free: 8.996 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4842, allocations: 4 kB / 1.372 GB, free: 8.992 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.125e-05/0.4842, allocations: 11.98 kB / 1.372 GB, free: 8.98 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.4842, allocations: 0 / 1.372 GB, free: 8.98 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.4842, allocations: 0 / 1.372 GB, free: 8.98 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.4842, allocations: 0 / 1.372 GB, free: 8.98 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.4842, allocations: 0 / 1.372 GB, free: 8.98 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.905e-05/0.4843, allocations: 91.58 kB / 1.372 GB, free: 8.863 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.754e-05/0.4844, allocations: 93 kB / 1.372 GB, free: 8.754 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.4844, allocations: 4 kB / 1.372 GB, free: 8.75 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.919e-05/0.4844, allocations: 0 / 1.372 GB, free: 8.75 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.557e-05/0.4845, allocations: 0 / 1.372 GB, free: 8.75 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-06/0.4845, allocations: 0 / 1.372 GB, free: 8.75 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 8.273e-05/0.4845, allocations: 121.7 kB / 1.372 GB, free: 8.633 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4846, allocations: 0 / 1.372 GB, free: 8.633 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001741/0.4847, allocations: 23.89 kB / 1.372 GB, free: 8.609 MB / 0.8698 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 () * Number of clocked 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.0001225/0.4849, allocations: 107 kB / 1.372 GB, free: 8.492 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 8.38e-05/0.4849, allocations: 19.94 kB / 1.372 GB, free: 8.473 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.485, allocations: 0 / 1.372 GB, free: 8.473 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 1.017e-05/0.485, allocations: 4 kB / 1.372 GB, free: 8.469 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001131/0.4851, allocations: 8.781 kB / 1.372 GB, free: 8.461 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000352/0.4855, allocations: 186.8 kB / 1.373 GB, free: 8.238 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.4857, allocations: 0.6936 MB / 1.373 GB, free: 7.52 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.103e-05/0.4857, allocations: 16.45 kB / 1.373 GB, free: 7.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.144e-05/0.4858, allocations: 11.44 kB / 1.373 GB, free: 7.492 MB / 0.8698 GB Notification: Performance of SimCode: time 2.3e-07/0.4858, allocations: 0 / 1.373 GB, free: 7.492 MB / 0.8698 GB Notification: Performance of Templates: time 0.002243/0.488, allocations: 407.9 kB / 1.374 GB, free: 7.094 MB / 0.8698 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