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: "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_Btu,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_Btu",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_Btu,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_Btu",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.008491/0.008491, allocations: 100.2 kB / 15.73 MB, free: 6.047 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.001774/0.001774, allocations: 195.2 kB / 16.67 MB, free: 5.949 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.445/1.445, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.752/2.752, allocations: 472.7 MB / 0.7453 GB, free: 420 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 63.91 kB / 1.069 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9496/0.9517, allocations: 159.9 MB / 1.225 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_Btu): time 0.002218/0.9539, allocations: 0.835 MB / 1.226 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0001511/0.9541, allocations: 39.78 kB / 1.226 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.919e-05/0.9542, allocations: 4 kB / 1.226 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.657e-05/0.9543, allocations: 7.875 kB / 1.226 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.238e-05/0.9544, allocations: 3.938 kB / 1.226 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 5.051e-05/0.9544, allocations: 19.98 kB / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.9545, allocations: 63.77 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.9547, allocations: 51.88 kB / 1.226 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 6.014e-05/0.9548, allocations: 23.84 kB / 1.226 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.682e-05/0.9548, allocations: 27.86 kB / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.622e-05/0.9548, allocations: 4 kB / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.049e-05/0.9549, allocations: 8 kB / 1.226 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.174e-05/0.9549, allocations: 19.92 kB / 1.226 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.831e-05/0.9549, allocations: 39.69 kB / 1.226 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.9551, allocations: 75.34 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.9551, allocations: 4 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.493e-06/0.9551, allocations: 0 / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.9551, allocations: 0 / 1.226 GB, free: 12.21 MB / 0.9512 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.000386/0.9555, allocations: 371.2 kB / 1.227 GB, free: 11.79 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.9555, allocations: 12.03 kB / 1.227 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.577e-05/0.9556, allocations: 42.73 kB / 1.227 GB, free: 11.73 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.937e-05/0.9556, allocations: 16.84 kB / 1.227 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.9558, allocations: 192.1 kB / 1.227 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.9558, allocations: 16.28 kB / 1.227 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.9558, allocations: 4.375 kB / 1.227 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001431/0.956, allocations: 97.03 kB / 1.227 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.956, allocations: 3.938 kB / 1.227 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.956, allocations: 0 / 1.227 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.956, allocations: 4 kB / 1.227 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.223e-05/0.9561, allocations: 39.92 kB / 1.227 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005105/0.9566, allocations: 428.7 kB / 1.228 GB, free: 10.84 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.841e-05/0.9567, allocations: 45.28 kB / 1.228 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.665e-05/0.9567, allocations: 25.84 kB / 1.228 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.186e-05/0.9567, allocations: 3.938 kB / 1.228 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.9568, allocations: 34.55 kB / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.623e-06/0.9568, allocations: 0 / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001773/0.957, allocations: 57.53 kB / 1.228 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.957, allocations: 81.05 kB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.9572, allocations: 164.7 kB / 1.228 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.9572, allocations: 25.7 kB / 1.228 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.479e-05/0.9573, allocations: 104.1 kB / 1.228 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.049e-05/0.9573, allocations: 7.953 kB / 1.228 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/0.9573, allocations: 17.67 kB / 1.228 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.9574, allocations: 322.8 kB / 1.228 GB, free: 9.883 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.046e-05/0.9575, allocations: 11.94 kB / 1.228 GB, free: 9.871 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.271e-05/0.9575, allocations: 17.7 kB / 1.228 GB, free: 9.848 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.977e-05/0.9575, allocations: 29.72 kB / 1.228 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.9576, allocations: 0 / 1.228 GB, free: 9.812 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.993e-05/0.9576, allocations: 57.59 kB / 1.229 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.9577, allocations: 9.812 kB / 1.229 GB, free: 9.742 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.9577, allocations: 0 / 1.229 GB, free: 9.742 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.9577, allocations: 3.984 kB / 1.229 GB, free: 9.738 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.501e-05/0.9578, allocations: 8 kB / 1.229 GB, free: 9.73 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.9578, allocations: 4.062 kB / 1.229 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.074e-05/0.9578, allocations: 3.938 kB / 1.229 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.9578, allocations: 8 kB / 1.229 GB, free: 9.715 MB / 0.9512 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.315e-05/0.9579, allocations: 114.3 kB / 1.229 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.958, allocations: 15.89 kB / 1.229 GB, free: 9.578 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.327e-05/0.958, allocations: 7.859 kB / 1.229 GB, free: 9.566 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.958, allocations: 4 kB / 1.229 GB, free: 9.562 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.958, allocations: 0 / 1.229 GB, free: 9.562 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.958, allocations: 0 / 1.229 GB, free: 9.562 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003857/0.9584, allocations: 478.7 kB / 1.229 GB, free: 9.031 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.9584, allocations: 0 / 1.229 GB, free: 9.031 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.076e-05/0.9584, allocations: 4 kB / 1.229 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.9585, allocations: 0 / 1.229 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.9585, allocations: 0 / 1.229 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.9585, allocations: 0 / 1.229 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.9585, allocations: 4.094 kB / 1.229 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.236e-05/0.9586, allocations: 85.92 kB / 1.229 GB, free: 8.918 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.553e-05/0.9586, allocations: 89.06 kB / 1.229 GB, free: 8.812 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.775e-05/0.9586, allocations: 7.984 kB / 1.229 GB, free: 8.805 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.939e-05/0.9587, allocations: 3.938 kB / 1.229 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.479e-05/0.9587, allocations: 0 / 1.229 GB, free: 8.801 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.9587, allocations: 4 kB / 1.229 GB, free: 8.797 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.746e-05/0.9588, allocations: 124 kB / 1.229 GB, free: 8.676 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9588, allocations: 4 kB / 1.229 GB, free: 8.672 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001859/0.959, allocations: 4 kB / 1.229 GB, free: 8.668 MB / 0.9512 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.0003643/0.9594, allocations: 0.6172 MB / 1.23 GB, free: 8.02 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 8.85e-05/0.9595, allocations: 19.94 kB / 1.23 GB, free: 8 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.9595, allocations: 3.938 kB / 1.23 GB, free: 7.996 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.35e-05/0.9595, allocations: 8 kB / 1.23 GB, free: 7.988 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001527/0.9596, allocations: 4 kB / 1.23 GB, free: 7.984 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.9609, allocations: 1.338 MB / 1.231 GB, free: 6.547 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.9612, allocations: 0.7002 MB / 1.232 GB, free: 5.82 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.06e-05/0.9612, allocations: 4.438 kB / 1.232 GB, free: 5.816 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.706e-05/0.9613, allocations: 27.42 kB / 1.232 GB, free: 5.789 MB / 0.9512 GB Notification: Performance of SimCode: time 2.3e-07/0.9613, allocations: 0 / 1.232 GB, free: 5.789 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01647/0.9778, allocations: 1.574 MB / 1.234 GB, free: 4.324 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.314/8.292, allocations: 16.19 kB / 1.234 GB, free: 4.312 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_Btu.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_Btu.csv","/var/lib/jenkins1/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