Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002086/0.002086, allocations: 194.2 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.624/1.624, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.954/2.954, allocations: 472.6 MB / 0.7448 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 62.73 kB / 0.9116 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3973/0.3986, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.002543/0.4012, allocations: 0.8825 MB / 1.069 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001249/0.4013, allocations: 39.8 kB / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.831e-05/0.4014, allocations: 0 / 1.069 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.193e-05/0.4015, allocations: 7.922 kB / 1.069 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.004e-05/0.4016, allocations: 7.922 kB / 1.069 GB, free: 9.852 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 7.157e-05/0.4017, allocations: 16 kB / 1.069 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.4018, allocations: 59.84 kB / 1.069 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.402, allocations: 39.97 kB / 1.069 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.661e-05/0.4021, allocations: 31.8 kB / 1.069 GB, free: 9.707 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.346e-05/0.4022, allocations: 23.86 kB / 1.069 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.596e-05/0.4022, allocations: 8 kB / 1.069 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.177e-05/0.4022, allocations: 8 kB / 1.069 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.869e-05/0.4022, allocations: 19.92 kB / 1.069 GB, free: 9.648 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.895e-05/0.4023, allocations: 35.75 kB / 1.069 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.4024, allocations: 68.03 kB / 1.069 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.456e-06/0.4024, allocations: 7.938 kB / 1.069 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.683e-06/0.4024, allocations: 0 / 1.069 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.4025, allocations: 0 / 1.069 GB, free: 9.539 MB / 0.8262 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.0004866/0.4029, allocations: 379.2 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.403, allocations: 8.031 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.408e-05/0.403, allocations: 20.81 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.4033, allocations: 192.2 kB / 1.07 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.4033, allocations: 4.375 kB / 1.07 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.4033, allocations: 8.375 kB / 1.07 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.4035, allocations: 91.89 kB / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.4035, allocations: 192 / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.4035, allocations: 7.938 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.4036, allocations: 3.938 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.614e-05/0.4037, allocations: 43.97 kB / 1.07 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000566/0.4042, allocations: 432.5 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.52e-05/0.4043, allocations: 45.28 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.672e-05/0.4043, allocations: 21.84 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.334e-06/0.4043, allocations: 0 / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.4044, allocations: 34.56 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.4044, allocations: 3.938 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001937/0.4046, allocations: 57.53 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.4046, allocations: 85.3 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.4048, allocations: 164.9 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.4048, allocations: 25.7 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.114e-05/0.4049, allocations: 104 kB / 1.071 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.414e-06/0.4049, allocations: 3.906 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.15e-05/0.4049, allocations: 17.72 kB / 1.071 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4051, allocations: 322.8 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.511e-05/0.4051, allocations: 0 / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.128e-05/0.4051, allocations: 25.72 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.896e-05/0.4052, allocations: 25.7 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4052, allocations: 0 / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.83e-05/0.4052, allocations: 57.55 kB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.4053, allocations: 8 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.4053, allocations: 3.938 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.4053, allocations: 4.062 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.27e-05/0.4054, allocations: 7.984 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.4054, allocations: 4 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.012e-05/0.4054, allocations: 7.844 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.4054, allocations: 8 kB / 1.071 GB, free: 7.094 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.882e-05/0.4055, allocations: 117.7 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.4056, allocations: 7.906 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.4056, allocations: 15.81 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.4056, allocations: 0 / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.4056, allocations: 15.92 kB / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.4056, allocations: 0 / 1.071 GB, free: 6.926 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003561/0.406, allocations: 466.8 kB / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.406, allocations: 0 / 1.072 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.172e-05/0.406, allocations: 8 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.406, allocations: 0 / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.406, allocations: 0 / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.406, allocations: 0 / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.406, allocations: 4.062 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.425e-05/0.4061, allocations: 77.83 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.338e-05/0.4062, allocations: 88.95 kB / 1.072 GB, free: 6.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.4062, allocations: 4 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.158e-05/0.4062, allocations: 4 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.467e-05/0.4063, allocations: 3.984 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-06/0.4063, allocations: 4.125 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.434e-05/0.4064, allocations: 122.1 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4064, allocations: 0 / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001929/0.4066, allocations: 11.91 kB / 1.072 GB, free: 6.047 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001196/0.4067, allocations: 95.25 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001027/0.4068, allocations: 19.94 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4068, allocations: 0 / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.192e-05/0.4068, allocations: 12.12 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001694/0.407, allocations: 13.33 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003439/0.4073, allocations: 182.9 kB / 1.072 GB, free: 5.691 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.4076, allocations: 0.6963 MB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.259e-05/0.4077, allocations: 8.422 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.658e-05/0.4077, allocations: 11.44 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.4077, allocations: 0 / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of Templates: time 0.002807/0.4105, allocations: 452.5 kB / 1.073 GB, free: 4.508 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches