Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.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: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_BtuPerHour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_BtuPerHour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006843/0.006843, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001645/0.001645, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.513/2.513, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 59.91 kB / 1.018 GB, free: 9.914 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8994/0.9007, allocations: 151.6 MB / 1.166 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour): time 0.002079/0.9028, allocations: 0.8256 MB / 1.167 GB, free: 2.965 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.000137/0.903, allocations: 43.78 kB / 1.167 GB, free: 2.922 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.328e-05/0.9031, allocations: 4 kB / 1.167 GB, free: 2.918 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.978e-05/0.9031, allocations: 7.875 kB / 1.167 GB, free: 2.91 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.765e-05/0.9032, allocations: 7.922 kB / 1.167 GB, free: 2.902 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 4.869e-05/0.9033, allocations: 19.98 kB / 1.167 GB, free: 2.883 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.847e-05/0.9034, allocations: 63.78 kB / 1.167 GB, free: 2.82 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.9035, allocations: 47.95 kB / 1.167 GB, free: 2.773 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.696e-05/0.9036, allocations: 27.86 kB / 1.167 GB, free: 2.746 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.889e-05/0.9037, allocations: 23.86 kB / 1.167 GB, free: 2.723 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.9037, allocations: 4 kB / 1.167 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.465e-05/0.9037, allocations: 8 kB / 1.167 GB, free: 2.711 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.601e-05/0.9037, allocations: 15.92 kB / 1.167 GB, free: 2.695 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.328e-05/0.9038, allocations: 35.8 kB / 1.167 GB, free: 2.66 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.9039, allocations: 75.3 kB / 1.167 GB, free: 2.59 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.9039, allocations: 4 kB / 1.167 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.617e-06/0.904, allocations: 0 / 1.167 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.261e-05/0.904, allocations: 3.938 kB / 1.167 GB, free: 2.582 MB / 0.8887 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.0004992/0.9045, allocations: 379.1 kB / 1.168 GB, free: 2.16 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.9045, allocations: 12.61 kB / 1.168 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.698e-05/0.9046, allocations: 42.75 kB / 1.168 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.711e-05/0.9046, allocations: 12.84 kB / 1.168 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002871/0.9049, allocations: 196.1 kB / 1.168 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.905, allocations: 4.375 kB / 1.168 GB, free: 1.852 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.905, allocations: 12.38 kB / 1.168 GB, free: 1.84 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001931/0.9052, allocations: 98.33 kB / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.9052, allocations: 3.938 kB / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.9052, allocations: 0 / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.066e-06/0.9052, allocations: 4 kB / 1.168 GB, free: 1.727 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.227e-05/0.9053, allocations: 35.92 kB / 1.168 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006445/0.906, allocations: 444.6 kB / 1.169 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 6.253e-05/0.9061, allocations: 45.39 kB / 1.169 GB, free: 1.141 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.411e-05/0.9061, allocations: 17.72 kB / 1.169 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 8.776e-06/0.9061, allocations: 0 / 1.169 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.9062, allocations: 38.56 kB / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.9062, allocations: 0 / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001992/0.9064, allocations: 57.53 kB / 1.169 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.9064, allocations: 81.09 kB / 1.169 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.9066, allocations: 156.5 kB / 1.169 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.9066, allocations: 29.69 kB / 1.169 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 9.67e-05/0.9067, allocations: 96.09 kB / 1.169 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.9068, allocations: 16.12 kB / 1.169 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.008e-05/0.9068, allocations: 17.72 kB / 1.169 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.907, allocations: 318.8 kB / 1.169 GB, free: 264 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.045e-05/0.907, allocations: 7.984 kB / 1.169 GB, free: 256 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.775e-05/0.9071, allocations: 17.72 kB / 1.169 GB, free: 232 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.877e-05/0.9071, allocations: 21.72 kB / 1.169 GB, free: 204 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.9071, allocations: 4 kB / 1.169 GB, free: 200 kB / 0.8887 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001619/0.9073, allocations: 69.53 kB / 1.169 GB, free: 124 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.9073, allocations: 11.88 kB / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.9073, allocations: 0 / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.9074, allocations: 0 / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.706e-05/0.9074, allocations: 8 kB / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.9074, allocations: 0 / 1.17 GB, free: 104 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.624e-05/0.9075, allocations: 3.938 kB / 1.17 GB, free: 100 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.9075, allocations: 4 kB / 1.17 GB, free: 96 kB / 0.8887 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.0001246/0.9076, allocations: 120.1 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.379e-05/0.9077, allocations: 15.88 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.9077, allocations: 11.81 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.9078, allocations: 4 kB / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.9078, allocations: 0 / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.9078, allocations: 96 / 1.17 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004645/0.9082, allocations: 474.7 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.9083, allocations: 3.984 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.207e-05/0.9083, allocations: 4 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.9083, allocations: 3.938 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.9083, allocations: 7.984 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.9083, allocations: 4 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.9083, allocations: 0 / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.824e-05/0.9084, allocations: 77.95 kB / 1.17 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.379e-05/0.9085, allocations: 89.05 kB / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.9085, allocations: 0 / 1.17 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.261e-05/0.9086, allocations: 4 kB / 1.17 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.584e-05/0.9086, allocations: 3.938 kB / 1.17 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/0.9086, allocations: 4 kB / 1.17 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001014/0.9087, allocations: 121.9 kB / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.5e-07/0.9087, allocations: 0 / 1.17 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002335/0.9089, allocations: 4 kB / 1.17 GB, free: 15.04 MB / 0.9044 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.0004202/0.9094, allocations: 0.6172 MB / 1.171 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 9.048e-05/0.9095, allocations: 19.94 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.9095, allocations: 160 / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.14e-05/0.9095, allocations: 11.98 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001575/0.9097, allocations: 8 kB / 1.171 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.9109, allocations: 1.343 MB / 1.172 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.9112, allocations: 0.7001 MB / 1.173 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.499e-05/0.9112, allocations: 8.422 kB / 1.173 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.015e-05/0.9113, allocations: 23.44 kB / 1.173 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of SimCode: time 2.9e-07/0.9113, allocations: 0 / 1.173 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.9298, allocations: 1.579 MB / 1.175 GB, free: 10.69 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.431/8.361, allocations: 10.84 kB / 1.175 GB, free: 10.69 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_BtuPerHour.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_From_BtuPerHour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches