Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001734/0.001734, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.478/1.478, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.728/2.728, allocations: 461.9 MB / 0.7342 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 66.98 kB / 0.8984 GB, free: 37.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3738, allocations: 157.4 MB / 1.052 GB, free: 8.926 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002161/0.376, allocations: 0.8803 MB / 1.053 GB, free: 8.043 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001121/0.3761, allocations: 39.78 kB / 1.053 GB, free: 8.004 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.296e-05/0.3762, allocations: 4 kB / 1.053 GB, free: 8 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.483e-05/0.3763, allocations: 3.938 kB / 1.053 GB, free: 7.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.234e-05/0.3764, allocations: 7.984 kB / 1.053 GB, free: 7.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.618e-05/0.3764, allocations: 12 kB / 1.053 GB, free: 7.977 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.528e-05/0.3765, allocations: 67.69 kB / 1.053 GB, free: 7.91 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.3767, allocations: 39.97 kB / 1.053 GB, free: 7.871 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.225e-05/0.3767, allocations: 23.86 kB / 1.053 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.067e-05/0.3768, allocations: 31.8 kB / 1.053 GB, free: 7.816 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/0.3768, allocations: 4 kB / 1.053 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.08e-05/0.3768, allocations: 4 kB / 1.053 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.555e-05/0.3768, allocations: 15.97 kB / 1.053 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.126e-05/0.3769, allocations: 35.69 kB / 1.053 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.675e-05/0.377, allocations: 67.98 kB / 1.053 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.377, allocations: 4 kB / 1.053 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.92e-07/0.377, allocations: 0 / 1.053 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.576e-06/0.377, allocations: 0 / 1.053 GB, free: 7.688 MB / 0.8106 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.0004077/0.3774, allocations: 375.3 kB / 1.054 GB, free: 7.27 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.3775, allocations: 12.03 kB / 1.054 GB, free: 7.258 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.3775, allocations: 12.78 kB / 1.054 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.3777, allocations: 196.2 kB / 1.054 GB, free: 7.016 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.141e-05/0.3777, allocations: 4.375 kB / 1.054 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.425e-05/0.3778, allocations: 12.38 kB / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001497/0.3779, allocations: 95.8 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3779, allocations: 192 / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.3779, allocations: 11.94 kB / 1.054 GB, free: 6.883 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.378, allocations: 4 kB / 1.054 GB, free: 6.879 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.059e-05/0.378, allocations: 35.92 kB / 1.054 GB, free: 6.844 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005187/0.3786, allocations: 436.6 kB / 1.054 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.502e-05/0.3786, allocations: 41.22 kB / 1.054 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.61e-05/0.3787, allocations: 21.81 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.422e-06/0.3787, allocations: 0 / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.3787, allocations: 34.56 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.3787, allocations: 0 / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001736/0.3789, allocations: 61.47 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.482e-05/0.379, allocations: 77.11 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.3791, allocations: 161.3 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.3791, allocations: 25.7 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.372e-05/0.3792, allocations: 108 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 8.727e-06/0.3792, allocations: 7.906 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/0.3792, allocations: 13.72 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3793, allocations: 323.1 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.061e-05/0.3794, allocations: 8 kB / 1.055 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.112e-05/0.3794, allocations: 17.7 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.134e-05/0.3794, allocations: 33.66 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3795, allocations: 0 / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.451e-05/0.3795, allocations: 57.53 kB / 1.055 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.3796, allocations: 8.062 kB / 1.055 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3796, allocations: 3.938 kB / 1.055 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3796, allocations: 4 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.034e-05/0.3797, allocations: 4 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3797, allocations: 7.922 kB / 1.055 GB, free: 5.258 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.282e-05/0.3797, allocations: 19.78 kB / 1.055 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-06/0.3797, allocations: 0 / 1.055 GB, free: 5.238 MB / 0.8106 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 6.938e-05/0.3798, allocations: 113.8 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.3798, allocations: 7.906 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.424e-05/0.3799, allocations: 15.81 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.3799, allocations: 0 / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3799, allocations: 0 / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3799, allocations: 0 / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003529/0.3802, allocations: 474.8 kB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3803, allocations: 0 / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.882e-05/0.3803, allocations: 4 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3803, allocations: 4.062 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.3803, allocations: 4 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3803, allocations: 0 / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3803, allocations: 0 / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.85e-05/0.3804, allocations: 81.77 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.735e-05/0.3804, allocations: 89.02 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.3805, allocations: 4 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.024e-05/0.3805, allocations: 4.031 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.245e-05/0.3805, allocations: 4 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.3805, allocations: 3.984 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.766e-05/0.3806, allocations: 115.3 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3806, allocations: 0 / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001858/0.3808, allocations: 8 kB / 1.056 GB, free: 4.211 MB / 0.8106 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.0001059/0.3809, allocations: 103.2 kB / 1.056 GB, free: 4.102 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.373e-05/0.381, allocations: 23.94 kB / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.381, allocations: 0 / 1.056 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.959e-06/0.381, allocations: 4 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.3812, allocations: 7.938 kB / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002931/0.3815, allocations: 192.6 kB / 1.057 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.3817, allocations: 0.6887 MB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.309e-05/0.3818, allocations: 8.422 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.325e-05/0.3818, allocations: 11.44 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of SimCode: time 3.4e-07/0.3818, allocations: 0 / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of Templates: time 0.002474/0.3843, allocations: 440.6 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches