Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.From_Btu,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.From_Btu,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001413, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 198 kB / 16.54 MB, free: 6.672 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.526/1.526, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.019/3.019, allocations: 472.7 MB / 0.7452 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 61.64 kB / 0.9121 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3654, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_Btu): time 0.002571/0.368, allocations: 0.8216 MB / 1.069 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001677/0.3682, allocations: 43.78 kB / 1.069 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.826e-05/0.3683, allocations: 4 kB / 1.069 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.93e-05/0.3684, allocations: 11.86 kB / 1.069 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.224e-05/0.3685, allocations: 3.938 kB / 1.069 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 6.049e-05/0.3685, allocations: 19.98 kB / 1.069 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001177/0.3687, allocations: 63.78 kB / 1.069 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.3688, allocations: 43.97 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.717e-05/0.3689, allocations: 31.84 kB / 1.069 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.295e-05/0.369, allocations: 23.86 kB / 1.069 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.369, allocations: 8 kB / 1.069 GB, free: 9.348 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.066e-05/0.369, allocations: 4 kB / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.287e-05/0.3691, allocations: 15.92 kB / 1.069 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.915e-05/0.3691, allocations: 31.75 kB / 1.069 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.3692, allocations: 72.05 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.3693, allocations: 7.984 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.452e-06/0.3693, allocations: 3.938 kB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.3693, allocations: 0 / 1.069 GB, free: 9.215 MB / 0.8262 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.0004635/0.3697, allocations: 383.1 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.3698, allocations: 8.031 kB / 1.07 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.158e-05/0.3698, allocations: 8.844 kB / 1.07 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.3701, allocations: 192.2 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.842e-05/0.3701, allocations: 8.375 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.3702, allocations: 8.375 kB / 1.07 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001621/0.3703, allocations: 97.39 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.3703, allocations: 192 / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.3704, allocations: 7.938 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3704, allocations: 0 / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.04e-05/0.3705, allocations: 35.98 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006563/0.3711, allocations: 440.5 kB / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.3713, allocations: 37.16 kB / 1.071 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.242e-05/0.3713, allocations: 25.88 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.688e-06/0.3713, allocations: 0 / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.3714, allocations: 34.56 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.3714, allocations: 0 / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.000212/0.3716, allocations: 57.47 kB / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.3716, allocations: 81.11 kB / 1.071 GB, free: 7.609 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.3718, allocations: 164.7 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.3718, allocations: 25.7 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.257e-05/0.3719, allocations: 104.2 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.295e-05/0.3719, allocations: 15.88 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/0.372, allocations: 13.72 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.3721, allocations: 322.8 kB / 1.071 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.018e-05/0.3721, allocations: 8 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.841e-05/0.3722, allocations: 17.72 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.374e-05/0.3722, allocations: 33.66 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3722, allocations: 0 / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.858e-05/0.3723, allocations: 53.59 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.3723, allocations: 8 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.3723, allocations: 7.875 kB / 1.072 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.3724, allocations: 0 / 1.072 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.603e-05/0.3724, allocations: 4 kB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/0.3724, allocations: 4 kB / 1.072 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.309e-05/0.3725, allocations: 7.844 kB / 1.072 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.3725, allocations: 8.062 kB / 1.072 GB, free: 6.777 MB / 0.8262 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 0.0001284/0.3726, allocations: 114.4 kB / 1.072 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.792e-05/0.3727, allocations: 11.91 kB / 1.072 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.827e-05/0.3727, allocations: 11.81 kB / 1.072 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3727, allocations: 3.938 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3727, allocations: 3.938 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3727, allocations: 8.078 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004461/0.3732, allocations: 474.8 kB / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3732, allocations: 0 / 1.072 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.061e-05/0.3732, allocations: 3.984 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3732, allocations: 4 kB / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.3732, allocations: 0 / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3733, allocations: 0 / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3733, allocations: 0 / 1.072 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.901e-05/0.3734, allocations: 81.84 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.3734, allocations: 93 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.3734, allocations: 0 / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.987e-05/0.3735, allocations: 4 kB / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.822e-05/0.3735, allocations: 0 / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.3735, allocations: 0 / 1.072 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.426e-05/0.3736, allocations: 121.7 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.7e-07/0.3736, allocations: 0 / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000194/0.3738, allocations: 15.94 kB / 1.072 GB, free: 5.73 MB / 0.8262 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.0001218/0.3739, allocations: 99.25 kB / 1.073 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.157e-05/0.374, allocations: 23.92 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.374, allocations: 0 / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.071e-05/0.374, allocations: 4 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.3742, allocations: 14.34 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003338/0.3746, allocations: 171 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.3748, allocations: 0.6885 MB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.133e-05/0.3749, allocations: 12.42 kB / 1.073 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.491e-05/0.3749, allocations: 11.44 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of SimCode: time 1.9e-07/0.3749, allocations: 0 / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of Templates: time 0.002762/0.3777, allocations: 452.4 kB / 1.074 GB, free: 4.207 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.sim & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_Btu.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches