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.001482/0.001482, 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.001799/0.001799, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.536/1.536, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.017/3.017, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 61.3 kB / 0.8986 GB, free: 37.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.439/0.4406, allocations: 157.4 MB / 1.052 GB, free: 8.734 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.00274/0.4434, allocations: 0.8841 MB / 1.053 GB, free: 7.848 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000137/0.4435, allocations: 35.84 kB / 1.053 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.837e-05/0.4436, allocations: 4 kB / 1.053 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.868e-05/0.4437, allocations: 3.938 kB / 1.053 GB, free: 7.805 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.4438, allocations: 11.92 kB / 1.053 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.597e-05/0.4439, allocations: 12 kB / 1.053 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.444, allocations: 63.75 kB / 1.053 GB, free: 7.719 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.4442, allocations: 51.91 kB / 1.053 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.653e-05/0.4443, allocations: 27.84 kB / 1.053 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.973e-05/0.4443, allocations: 27.86 kB / 1.053 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.4443, allocations: 4 kB / 1.053 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.237e-05/0.4444, allocations: 8 kB / 1.053 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.526e-05/0.4444, allocations: 15.92 kB / 1.053 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.764e-05/0.4445, allocations: 35.75 kB / 1.053 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.4446, allocations: 68.03 kB / 1.053 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.4446, allocations: 4 kB / 1.054 GB, free: 7.48 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.984e-06/0.4446, allocations: 0 / 1.054 GB, free: 7.48 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.4446, allocations: 0 / 1.054 GB, free: 7.48 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.000521/0.4452, allocations: 375.2 kB / 1.054 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.4452, allocations: 12.62 kB / 1.054 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.065e-05/0.4453, allocations: 12.84 kB / 1.054 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.4455, allocations: 192.1 kB / 1.054 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.4456, allocations: 8.375 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.4456, allocations: 8.375 kB / 1.054 GB, free: 6.797 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001877/0.4458, allocations: 105.5 kB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.4458, allocations: 192 / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.4458, allocations: 7.938 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.433e-06/0.4458, allocations: 4 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.157e-05/0.4459, allocations: 35.92 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006201/0.4465, allocations: 444.5 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.185e-05/0.4466, allocations: 41.22 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.179e-05/0.4467, allocations: 13.78 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.436e-06/0.4467, allocations: 0 / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.4467, allocations: 46.59 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 7.91e-07/0.4467, allocations: 0 / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001966/0.4469, allocations: 57.47 kB / 1.055 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.447, allocations: 77.11 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001532/0.4471, allocations: 154.2 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.4472, allocations: 29.7 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/0.4473, allocations: 104.2 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.325e-05/0.4473, allocations: 15.89 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.4473, allocations: 13.72 kB / 1.055 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4474, allocations: 322.8 kB / 1.055 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.895e-05/0.4475, allocations: 4 kB / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.403e-05/0.4475, allocations: 17.72 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.406e-05/0.4475, allocations: 29.66 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4475, allocations: 0 / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.881e-05/0.4477, allocations: 61.59 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.4477, allocations: 4 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.4477, allocations: 3.938 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4477, allocations: 0 / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.841e-05/0.4478, allocations: 11.94 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.4478, allocations: 0 / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.763e-05/0.4478, allocations: 11.84 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.4478, allocations: 3.984 kB / 1.056 GB, free: 5.035 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 9.06e-05/0.4479, allocations: 117.9 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.338e-05/0.448, allocations: 7.906 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.786e-05/0.448, allocations: 15.81 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.448, allocations: 0 / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.448, allocations: 3.938 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.4481, allocations: 4.078 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/0.4485, allocations: 470.8 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.4485, allocations: 3.984 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.309e-05/0.4485, allocations: 4 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.4485, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.4485, allocations: 0 / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.4485, allocations: 4 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4485, allocations: 0 / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.769e-05/0.4486, allocations: 85.84 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.595e-05/0.4487, allocations: 89 kB / 1.056 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.4487, allocations: 7.938 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.01e-05/0.4488, allocations: 0 / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.395e-05/0.4488, allocations: 0 / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.4488, allocations: 4 kB / 1.056 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.105e-05/0.4489, allocations: 126.1 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4489, allocations: 0 / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001913/0.4491, allocations: 4 kB / 1.057 GB, free: 3.996 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.0001273/0.4492, allocations: 107.3 kB / 1.057 GB, free: 3.883 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 9.837e-05/0.4493, allocations: 15.94 kB / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4493, allocations: 0 / 1.057 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.195e-05/0.4493, allocations: 4 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001697/0.4495, allocations: 11.94 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003413/0.4499, allocations: 187.1 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.4501, allocations: 0.6931 MB / 1.058 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.714e-05/0.4502, allocations: 12.42 kB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.527e-05/0.4502, allocations: 15.38 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.4502, allocations: 0 / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of Templates: time 0.002849/0.4531, allocations: 449 kB / 1.058 GB, free: 2.453 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