Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.009076/0.009076, allocations: 96.86 kB / 15.73 MB, free: 6.055 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.002045/0.002045, allocations: 194.5 kB / 16.67 MB, free: 5.977 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.614/1.614, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.846/2.846, allocations: 437 MB / 0.7105 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.91 kB / 1.019 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.4002, allocations: 151.6 MB / 1.167 GB, free: 6.852 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002161/0.4024, allocations: 0.8255 MB / 1.167 GB, free: 6.02 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0001185/0.4025, allocations: 51.78 kB / 1.167 GB, free: 5.969 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.4026, allocations: 3.938 kB / 1.167 GB, free: 5.965 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.803e-05/0.4026, allocations: 7.875 kB / 1.167 GB, free: 5.957 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.441e-05/0.4027, allocations: 7.938 kB / 1.167 GB, free: 5.949 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 5.145e-05/0.4028, allocations: 15.98 kB / 1.168 GB, free: 5.934 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000118/0.4029, allocations: 67.81 kB / 1.168 GB, free: 5.867 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.4031, allocations: 39.98 kB / 1.168 GB, free: 5.828 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.278e-05/0.4031, allocations: 27.86 kB / 1.168 GB, free: 5.801 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.775e-05/0.4032, allocations: 27.8 kB / 1.168 GB, free: 5.773 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.074e-05/0.4032, allocations: 8 kB / 1.168 GB, free: 5.766 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.086e-05/0.4032, allocations: 4 kB / 1.168 GB, free: 5.762 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.458e-05/0.4033, allocations: 19.92 kB / 1.168 GB, free: 5.742 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.16e-05/0.4033, allocations: 35.75 kB / 1.168 GB, free: 5.707 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.4034, allocations: 71.58 kB / 1.168 GB, free: 5.637 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4035, allocations: 7.984 kB / 1.168 GB, free: 5.629 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.944e-06/0.4035, allocations: 0 / 1.168 GB, free: 5.629 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.4035, allocations: 0 / 1.168 GB, free: 5.629 MB / 0.92 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.0005912/0.4041, allocations: 379.1 kB / 1.168 GB, free: 5.207 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.4041, allocations: 12.03 kB / 1.168 GB, free: 5.195 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.005e-05/0.4042, allocations: 12.84 kB / 1.168 GB, free: 5.184 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.4044, allocations: 200.1 kB / 1.168 GB, free: 4.949 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.4044, allocations: 4.375 kB / 1.168 GB, free: 4.945 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.756e-05/0.4044, allocations: 12.38 kB / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001716/0.4046, allocations: 87.95 kB / 1.168 GB, free: 4.836 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.4046, allocations: 192 / 1.168 GB, free: 4.836 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.4047, allocations: 7.938 kB / 1.168 GB, free: 4.828 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.4047, allocations: 4 kB / 1.168 GB, free: 4.824 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.483e-05/0.4047, allocations: 39.92 kB / 1.169 GB, free: 4.785 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005561/0.4053, allocations: 440.6 kB / 1.169 GB, free: 4.301 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 5.154e-05/0.4054, allocations: 33.41 kB / 1.169 GB, free: 4.25 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.582e-05/0.4054, allocations: 25.66 kB / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 9.818e-06/0.4054, allocations: 0 / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.4055, allocations: 34.56 kB / 1.169 GB, free: 4.176 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.4055, allocations: 4 kB / 1.169 GB, free: 4.172 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0001899/0.4057, allocations: 61.52 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.4057, allocations: 77.11 kB / 1.169 GB, free: 4.012 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.4059, allocations: 156.3 kB / 1.169 GB, free: 3.852 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.4059, allocations: 25.7 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.205e-05/0.406, allocations: 104 kB / 1.169 GB, free: 3.715 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.104e-05/0.406, allocations: 16.12 kB / 1.169 GB, free: 3.699 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/0.406, allocations: 17.72 kB / 1.169 GB, free: 3.676 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.4062, allocations: 318.8 kB / 1.17 GB, free: 3.355 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.956e-05/0.4062, allocations: 8 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.231e-05/0.4062, allocations: 17.72 kB / 1.17 GB, free: 3.324 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.069e-05/0.4063, allocations: 25.72 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.4063, allocations: 4 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.807e-05/0.4064, allocations: 69.53 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.4064, allocations: 4 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.4064, allocations: 3.938 kB / 1.17 GB, free: 3.207 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.4064, allocations: 0 / 1.17 GB, free: 3.207 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.56e-05/0.4065, allocations: 8 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.4065, allocations: 0 / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.011e-05/0.4065, allocations: 4 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-06/0.4065, allocations: 0 / 1.17 GB, free: 3.195 MB / 0.92 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 8.443e-05/0.4066, allocations: 121.9 kB / 1.17 GB, free: 3.066 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.4067, allocations: 15.83 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.671e-05/0.4067, allocations: 11.81 kB / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.4067, allocations: 0 / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4067, allocations: 0 / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.4067, allocations: 0 / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004754/0.4072, allocations: 478.7 kB / 1.171 GB, free: 2.504 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4072, allocations: 0 / 1.171 GB, free: 2.504 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.01e-05/0.4073, allocations: 7.984 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.4073, allocations: 96 / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.4073, allocations: 3.984 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.4073, allocations: 4 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4073, allocations: 0 / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.536e-05/0.4074, allocations: 81.95 kB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.906e-05/0.4074, allocations: 89.05 kB / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.4075, allocations: 0 / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.866e-05/0.4075, allocations: 0 / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.946e-05/0.4075, allocations: 3.938 kB / 1.171 GB, free: 2.277 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-06/0.4075, allocations: 7.938 kB / 1.171 GB, free: 2.27 MB / 0.92 GB Notification: Performance of sorting global known variables: time 9.167e-05/0.4076, allocations: 120.7 kB / 1.171 GB, free: 2.152 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.4076, allocations: 0 / 1.171 GB, free: 2.152 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000208/0.4078, allocations: 11.94 kB / 1.171 GB, free: 2.141 MB / 0.92 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.0001314/0.408, allocations: 103.3 kB / 1.171 GB, free: 2.031 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 9.78e-05/0.4081, allocations: 19.98 kB / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.4081, allocations: 4 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.224e-05/0.4081, allocations: 7.938 kB / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001606/0.4083, allocations: 7.938 kB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003255/0.4086, allocations: 168.5 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.4089, allocations: 0.6924 MB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 4.327e-05/0.4089, allocations: 8.422 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.857e-05/0.409, allocations: 11.44 kB / 1.172 GB, free: 1.055 MB / 0.92 GB Notification: Performance of SimCode: time 2e-07/0.409, allocations: 0 / 1.172 GB, free: 1.055 MB / 0.92 GB Notification: Performance of Templates: time 0.002902/0.4119, allocations: 461.9 kB / 1.172 GB, free: 0.6055 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & ./Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches