Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_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.To_Btu,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_Btu,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006129/0.006129, allocations: 103.5 kB / 15.74 MB, free: 6.039 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.001244/0.001244, allocations: 201.3 kB / 16.68 MB, free: 5.965 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.512/1.512, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.93/2.93, allocations: 472.6 MB / 0.7453 GB, free: 4.547 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 60.12 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4205/0.4219, allocations: 159.9 MB / 1.226 GB, free: 9.133 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_Btu): time 0.002215/0.4242, allocations: 0.8274 MB / 1.226 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.000128/0.4243, allocations: 35.84 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.748e-05/0.4244, allocations: 7.938 kB / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.341e-05/0.4245, allocations: 11.92 kB / 1.226 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.88e-05/0.4246, allocations: 11.88 kB / 1.227 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 4.737e-05/0.4246, allocations: 15.98 kB / 1.227 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001218/0.4247, allocations: 59.84 kB / 1.227 GB, free: 8.164 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.4249, allocations: 59.83 kB / 1.227 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.681e-05/0.425, allocations: 23.88 kB / 1.227 GB, free: 8.082 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.704e-05/0.4251, allocations: 27.84 kB / 1.227 GB, free: 8.055 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.911e-05/0.4251, allocations: 4 kB / 1.227 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.214e-05/0.4251, allocations: 8 kB / 1.227 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.071e-05/0.4251, allocations: 7.938 kB / 1.227 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.782e-05/0.4252, allocations: 39.73 kB / 1.227 GB, free: 7.996 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000135/0.4253, allocations: 79.58 kB / 1.227 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4253, allocations: 0 / 1.227 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.054e-06/0.4254, allocations: 4 kB / 1.227 GB, free: 7.914 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.4254, allocations: 0 / 1.227 GB, free: 7.914 MB / 0.9825 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.0005017/0.4259, allocations: 383 kB / 1.227 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.4259, allocations: 8.031 kB / 1.227 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.426, allocations: 12.84 kB / 1.227 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.4262, allocations: 200.2 kB / 1.227 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.4262, allocations: 8.312 kB / 1.227 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.4262, allocations: 8.375 kB / 1.227 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.4264, allocations: 91.95 kB / 1.228 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.4264, allocations: 192 / 1.228 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.4264, allocations: 11.94 kB / 1.228 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.4265, allocations: 4 kB / 1.228 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.808e-05/0.4265, allocations: 35.92 kB / 1.228 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005976/0.4271, allocations: 444.7 kB / 1.228 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.336e-05/0.4272, allocations: 41.23 kB / 1.228 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.062e-05/0.4273, allocations: 17.78 kB / 1.228 GB, free: 6.496 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.4273, allocations: 4 kB / 1.228 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.4273, allocations: 30.56 kB / 1.228 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.4273, allocations: 4 kB / 1.228 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.000186/0.4275, allocations: 53.53 kB / 1.228 GB, free: 6.391 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.4276, allocations: 81.09 kB / 1.228 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.4277, allocations: 160.2 kB / 1.228 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.4277, allocations: 25.7 kB / 1.228 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.455e-05/0.4278, allocations: 104.1 kB / 1.228 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.107e-06/0.4278, allocations: 7.953 kB / 1.228 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.4279, allocations: 25.91 kB / 1.229 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.428, allocations: 314.8 kB / 1.229 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.025e-05/0.428, allocations: 15.92 kB / 1.229 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.084e-05/0.4281, allocations: 17.66 kB / 1.229 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.379e-05/0.4281, allocations: 29.72 kB / 1.229 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4281, allocations: 0 / 1.229 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.921e-05/0.4282, allocations: 61.58 kB / 1.229 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.4282, allocations: 4 kB / 1.229 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.4282, allocations: 7.938 kB / 1.229 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.4283, allocations: 0 / 1.229 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.456e-05/0.4283, allocations: 4 kB / 1.229 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.4283, allocations: 0 / 1.229 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.061e-05/0.4284, allocations: 7.938 kB / 1.229 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-06/0.4284, allocations: 4 kB / 1.229 GB, free: 5.469 MB / 0.9825 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.126e-05/0.4285, allocations: 114.8 kB / 1.229 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.36e-05/0.4285, allocations: 11.94 kB / 1.229 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.28e-05/0.4286, allocations: 15.81 kB / 1.229 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.4286, allocations: 0 / 1.229 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.4286, allocations: 0 / 1.229 GB, free: 5.316 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.4286, allocations: 4 kB / 1.229 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004062/0.429, allocations: 470.7 kB / 1.23 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.429, allocations: 8.062 kB / 1.23 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.674e-05/0.429, allocations: 0 / 1.23 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.429, allocations: 4 kB / 1.23 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.4291, allocations: 0 / 1.23 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.4291, allocations: 7.922 kB / 1.23 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4291, allocations: 0 / 1.23 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.881e-05/0.4292, allocations: 73.89 kB / 1.23 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.387e-05/0.4292, allocations: 97.08 kB / 1.23 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.4293, allocations: 0 / 1.23 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.071e-05/0.4293, allocations: 7.938 kB / 1.23 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.4293, allocations: 4 kB / 1.23 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.4293, allocations: 0 / 1.23 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001064/0.4294, allocations: 122.1 kB / 1.23 GB, free: 4.434 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4294, allocations: 0 / 1.23 GB, free: 4.434 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001843/0.4296, allocations: 8 kB / 1.23 GB, free: 4.426 MB / 0.9825 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.0001729/0.4298, allocations: 111.2 kB / 1.23 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001123/0.4299, allocations: 19.98 kB / 1.23 GB, free: 4.289 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4299, allocations: 3.938 kB / 1.23 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.196e-05/0.43, allocations: 7.938 kB / 1.23 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001742/0.4301, allocations: 13.81 kB / 1.23 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003707/0.4305, allocations: 154.6 kB / 1.23 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.4309, allocations: 0.6966 MB / 1.231 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.447e-05/0.4309, allocations: 8.422 kB / 1.231 GB, free: 3.348 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.381e-05/0.4309, allocations: 11.44 kB / 1.231 GB, free: 3.336 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.431, allocations: 0 / 1.231 GB, free: 3.336 MB / 0.9825 GB Notification: Performance of Templates: time 0.003516/0.4345, allocations: 460.5 kB / 1.231 GB, free: 2.887 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.sim & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_Btu.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches