Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001421/0.001421, allocations: 107 kB / 15.99 MB, free: 6.359 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.001418/0.001418, allocations: 193.8 kB / 16.91 MB, free: 6.195 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.358/1.358, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.54/2.54, allocations: 469.8 MB / 0.7427 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 72.73 kB / 0.9087 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3048, allocations: 159.1 MB / 1.064 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002193/0.307, allocations: 0.8789 MB / 1.065 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0001369/0.3071, allocations: 43.78 kB / 1.065 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.353e-05/0.3072, allocations: 0 / 1.065 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 5.22e-05/0.3073, allocations: 7.922 kB / 1.065 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.231e-05/0.3074, allocations: 4 kB / 1.065 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 5.276e-05/0.3074, allocations: 16 kB / 1.065 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.3075, allocations: 63.78 kB / 1.065 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.3077, allocations: 43.95 kB / 1.065 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.887e-05/0.3078, allocations: 27.86 kB / 1.065 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.256e-05/0.3078, allocations: 23.86 kB / 1.065 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.3078, allocations: 4 kB / 1.065 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.198e-05/0.3078, allocations: 11.94 kB / 1.065 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.968e-05/0.3079, allocations: 11.98 kB / 1.065 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.271e-05/0.3079, allocations: 39.75 kB / 1.065 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 8.246e-05/0.308, allocations: 52.17 kB / 1.065 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.308, allocations: 3.984 kB / 1.065 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.332e-06/0.308, allocations: 0 / 1.065 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.308, allocations: 0 / 1.065 GB, free: 13.87 MB / 0.8419 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.0004485/0.3085, allocations: 379.2 kB / 1.066 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3085, allocations: 8.031 kB / 1.066 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.298e-05/0.3086, allocations: 12.75 kB / 1.066 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.3088, allocations: 200.1 kB / 1.066 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.156e-06/0.3088, allocations: 8.375 kB / 1.066 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.3089, allocations: 12.36 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001538/0.309, allocations: 87.89 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.309, allocations: 192 / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.309, allocations: 11.94 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3091, allocations: 0 / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.562e-05/0.3091, allocations: 35.98 kB / 1.066 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005492/0.3097, allocations: 444.5 kB / 1.066 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 6.265e-05/0.3098, allocations: 33.16 kB / 1.067 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.955e-05/0.3098, allocations: 21.94 kB / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 9.699e-06/0.3098, allocations: 7.938 kB / 1.067 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.3098, allocations: 30.56 kB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3099, allocations: 0 / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0001703/0.31, allocations: 65.47 kB / 1.067 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.3101, allocations: 77.11 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.3102, allocations: 160.5 kB / 1.067 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.3103, allocations: 33.64 kB / 1.067 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 8.489e-05/0.3104, allocations: 108 kB / 1.067 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.548e-06/0.3104, allocations: 7.891 kB / 1.067 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.643e-05/0.3104, allocations: 17.72 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3106, allocations: 318.8 kB / 1.067 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.558e-05/0.3106, allocations: 4 kB / 1.067 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.581e-05/0.3106, allocations: 21.72 kB / 1.067 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.932e-05/0.3107, allocations: 29.66 kB / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3107, allocations: 0 / 1.067 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.705e-05/0.3108, allocations: 57.59 kB / 1.067 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.3108, allocations: 10.34 kB / 1.067 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3108, allocations: 3.938 kB / 1.067 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.3108, allocations: 0 / 1.067 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.469e-05/0.3109, allocations: 7.938 kB / 1.067 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.3109, allocations: 8.062 kB / 1.067 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.84e-05/0.3109, allocations: 7.844 kB / 1.067 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.481e-06/0.3109, allocations: 4 kB / 1.067 GB, free: 11.42 MB / 0.8419 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.267e-05/0.311, allocations: 113.8 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.3111, allocations: 7.906 kB / 1.068 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.25e-05/0.3111, allocations: 11.81 kB / 1.068 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3111, allocations: 0 / 1.068 GB, free: 11.28 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3111, allocations: 4 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.793e-06/0.3111, allocations: 0 / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000414/0.3116, allocations: 478.7 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.3116, allocations: 0 / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.01e-05/0.3116, allocations: 7.984 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3116, allocations: 0 / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.3116, allocations: 0 / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.3116, allocations: 0 / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3116, allocations: 0 / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001003/0.3117, allocations: 89.84 kB / 1.068 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.3118, allocations: 85 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.3118, allocations: 4 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.915e-05/0.3118, allocations: 0 / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.3118, allocations: 0 / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.764e-06/0.3119, allocations: 3.938 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001008/0.312, allocations: 126.3 kB / 1.068 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.312, allocations: 0 / 1.068 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001817/0.3122, allocations: 12 kB / 1.068 GB, free: 10.38 MB / 0.8419 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.000108/0.3123, allocations: 95.25 kB / 1.068 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 7.946e-05/0.3123, allocations: 23.92 kB / 1.068 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3124, allocations: 0 / 1.068 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.788e-06/0.3124, allocations: 4 kB / 1.068 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001493/0.3125, allocations: 12.19 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003341/0.3129, allocations: 216.5 kB / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.3132, allocations: 0.6963 MB / 1.069 GB, free: 9.27 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.482e-05/0.3132, allocations: 11.44 kB / 1.069 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.3132, allocations: 0 / 1.069 GB, free: 9.258 MB / 0.8419 GB Notification: Performance of Templates: time 0.002223/0.3155, allocations: 0.8677 MB / 1.07 GB, free: 8.387 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile (rm -f Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & ./Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches