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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.006426/0.006426, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001379/0.001379, allocations: 192.9 kB / 16.79 MB, free: 5.809 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.405/1.405, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.927/2.927, allocations: 461.9 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 62.22 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3121, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002383/0.3145, allocations: 0.892 MB / 1.054 GB, free: 7.367 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001441/0.3147, allocations: 31.81 kB / 1.054 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.155e-05/0.3147, allocations: 0 / 1.054 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.18e-05/0.3148, allocations: 7.922 kB / 1.054 GB, free: 7.328 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.3149, allocations: 11.92 kB / 1.054 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.466e-05/0.315, allocations: 11.98 kB / 1.054 GB, free: 7.305 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00011/0.3151, allocations: 63.77 kB / 1.054 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.3153, allocations: 43.95 kB / 1.054 GB, free: 7.199 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.791e-05/0.3154, allocations: 19.88 kB / 1.054 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.119e-05/0.3154, allocations: 39.72 kB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.977e-05/0.3154, allocations: 4 kB / 1.054 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.053e-05/0.3155, allocations: 4 kB / 1.054 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.668e-05/0.3155, allocations: 4 kB / 1.054 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.987e-05/0.3155, allocations: 35.73 kB / 1.054 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.583e-05/0.3156, allocations: 56.17 kB / 1.054 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3156, allocations: 0 / 1.054 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3156, allocations: 0 / 1.054 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.3156, allocations: 0 / 1.054 GB, free: 7.039 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.0004521/0.3161, allocations: 383.3 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.3162, allocations: 8.031 kB / 1.054 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.358e-05/0.3162, allocations: 12.83 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.3164, allocations: 192.2 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.3164, allocations: 4.375 kB / 1.055 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.3165, allocations: 8.375 kB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.3166, allocations: 93.42 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.3167, allocations: 192 / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.3167, allocations: 11.94 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.3167, allocations: 0 / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.969e-05/0.3168, allocations: 43.91 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005644/0.3174, allocations: 432.5 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.99e-05/0.3174, allocations: 45.28 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.873e-05/0.3175, allocations: 17.84 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.678e-06/0.3175, allocations: 0 / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.3175, allocations: 38.56 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 2.375e-06/0.3175, allocations: 0 / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001884/0.3177, allocations: 65.41 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.3178, allocations: 81.11 kB / 1.055 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.3179, allocations: 165.1 kB / 1.055 GB, free: 5.254 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.318, allocations: 29.64 kB / 1.055 GB, free: 5.219 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.207e-05/0.318, allocations: 104 kB / 1.056 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.227e-06/0.318, allocations: 3.906 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.3181, allocations: 21.66 kB / 1.056 GB, free: 5.082 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.3182, allocations: 323.1 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.491e-05/0.3182, allocations: 4 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.614e-05/0.3182, allocations: 21.72 kB / 1.056 GB, free: 4.727 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.953e-05/0.3183, allocations: 25.7 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3183, allocations: 0 / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.864e-05/0.3184, allocations: 57.55 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.3184, allocations: 12.06 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3184, allocations: 3.938 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.3184, allocations: 0 / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.556e-05/0.3185, allocations: 7.984 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.3185, allocations: 4 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.124e-05/0.3186, allocations: 7.844 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-06/0.3186, allocations: 0 / 1.056 GB, free: 4.598 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 7.571e-05/0.3187, allocations: 113.8 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.45e-05/0.3187, allocations: 7.906 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.108e-05/0.3187, allocations: 19.81 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3187, allocations: 3.938 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.3188, allocations: 3.984 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3188, allocations: 8.078 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004019/0.3192, allocations: 462.8 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.3192, allocations: 3.938 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.899e-05/0.3192, allocations: 0 / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3192, allocations: 4.062 kB / 1.057 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.3192, allocations: 4 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3192, allocations: 0 / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.3193, allocations: 0 / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.277e-05/0.3193, allocations: 81.83 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.312e-05/0.3194, allocations: 85.02 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.3194, allocations: 3.938 kB / 1.057 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.088e-05/0.3195, allocations: 8.031 kB / 1.057 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.216e-05/0.3195, allocations: 7.984 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.3195, allocations: 3.938 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.519e-05/0.3196, allocations: 119.2 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3196, allocations: 0 / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001878/0.3198, allocations: 8 kB / 1.057 GB, free: 3.555 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.0001155/0.3199, allocations: 95.25 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.636e-05/0.32, allocations: 20 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.32, allocations: 0 / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.179e-05/0.32, allocations: 11.88 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001674/0.3202, allocations: 14.61 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003246/0.3205, allocations: 210.5 kB / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.3208, allocations: 0.6926 MB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.861e-05/0.3208, allocations: 11.44 kB / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of SimCode: time 3.5e-07/0.3208, allocations: 0 / 1.058 GB, free: 2.434 MB / 0.8106 GB Notification: Performance of Templates: time 0.002271/0.3231, allocations: 0.855 MB / 1.059 GB, free: 1.578 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/jenkins1/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