Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_Btu,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_Btu",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_Btu,fileNamePrefix="Buildings_9_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.0008884/0.0008884, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005624/0.005624, allocations: 172.4 kB / 16.27 MB, free: 6.648 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.356/1.356, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.217/2.217, allocations: 390.9 MB / 0.6664 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002866, allocations: 12 kB / 0.8161 GB, free: 13.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.51/0.5103, allocations: 142.4 MB / 0.9552 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_Btu): time 0.0007427/0.5111, allocations: 0.5334 MB / 0.9557 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 8.264e-05/0.5112, allocations: 41 kB / 0.9557 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.892e-05/0.5112, allocations: 2.594 kB / 0.9557 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.845e-05/0.5113, allocations: 7.875 kB / 0.9557 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.078e-05/0.5113, allocations: 3.984 kB / 0.9558 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.325e-05/0.5114, allocations: 12.25 kB / 0.9558 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.37e-05/0.5115, allocations: 58.84 kB / 0.9558 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.5116, allocations: 51.12 kB / 0.9559 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.245e-05/0.5116, allocations: 20.55 kB / 0.9559 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.901e-05/0.5116, allocations: 16.66 kB / 0.9559 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.5117, allocations: 1.25 kB / 0.9559 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.692e-06/0.5117, allocations: 5.219 kB / 0.9559 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.5117, allocations: 15.36 kB / 0.9559 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.867e-05/0.5117, allocations: 45.77 kB / 0.956 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.805e-05/0.5118, allocations: 71.19 kB / 0.956 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.5118, allocations: 0 / 0.956 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.843e-06/0.5118, allocations: 0 / 0.956 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.005e-06/0.5118, allocations: 5.188 kB / 0.956 GB, free: 6.992 MB / 0.7169 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.0002515/0.5121, allocations: 364.8 kB / 0.9564 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.5121, allocations: 9.219 kB / 0.9564 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.513e-05/0.5122, allocations: 45.41 kB / 0.9564 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.285e-05/0.5122, allocations: 14.03 kB / 0.9565 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.5123, allocations: 190.1 kB / 0.9566 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.973e-06/0.5123, allocations: 3.281 kB / 0.9566 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.5124, allocations: 10.09 kB / 0.9566 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.5125, allocations: 92.61 kB / 0.9567 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.5125, allocations: 4.5 kB / 0.9567 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.115e-06/0.5125, allocations: 1.062 kB / 0.9567 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.5125, allocations: 5.531 kB / 0.9567 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.607e-05/0.5126, allocations: 40.23 kB / 0.9568 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003556/0.513, allocations: 433.6 kB / 0.9572 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.602e-05/0.513, allocations: 41.06 kB / 0.9572 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.579e-05/0.513, allocations: 20.12 kB / 0.9573 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.877e-06/0.513, allocations: 1.094 kB / 0.9573 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.332e-05/0.5131, allocations: 35.91 kB / 0.9573 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.5131, allocations: 0 / 0.9573 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001329/0.5132, allocations: 62.88 kB / 0.9574 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.928e-05/0.5132, allocations: 78.42 kB / 0.9574 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.5133, allocations: 162.8 kB / 0.9576 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.982e-06/0.5134, allocations: 26.48 kB / 0.9576 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.624e-05/0.5134, allocations: 108 kB / 0.9577 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.981e-06/0.5134, allocations: 8.844 kB / 0.9577 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.846e-05/0.5134, allocations: 15.81 kB / 0.9577 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.45e-05/0.5135, allocations: 316.9 kB / 0.958 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.349e-05/0.5135, allocations: 11.31 kB / 0.958 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.594e-05/0.5135, allocations: 18 kB / 0.9581 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.121e-05/0.5135, allocations: 30.69 kB / 0.9581 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.5135, allocations: 0 / 0.9581 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.758e-05/0.5136, allocations: 62.94 kB / 0.9582 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.5136, allocations: 9.969 kB / 0.9582 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.5136, allocations: 4.062 kB / 0.9582 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.398e-06/0.5137, allocations: 0.875 kB / 0.9582 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.915e-05/0.5137, allocations: 5.719 kB / 0.9582 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.227e-06/0.5137, allocations: 1.094 kB / 0.9582 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.77e-05/0.5138, allocations: 6.344 kB / 0.9582 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.458e-06/0.5138, allocations: 5.109 kB / 0.9582 GB, free: 4.785 MB / 0.7169 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 4.181e-05/0.5138, allocations: 113.5 kB / 0.9583 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.075e-05/0.5139, allocations: 12.19 kB / 0.9583 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.686e-05/0.5139, allocations: 6.156 kB / 0.9583 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.5139, allocations: 5.156 kB / 0.9583 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.5139, allocations: 1.344 kB / 0.9583 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.5139, allocations: 0 / 0.9583 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.5141, allocations: 470.4 kB / 0.9588 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.5142, allocations: 5.047 kB / 0.9588 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.694e-05/0.5142, allocations: 2.188 kB / 0.9588 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.582e-06/0.5142, allocations: 1.094 kB / 0.9588 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.65e-06/0.5142, allocations: 9.25 kB / 0.9588 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.5142, allocations: 1.062 kB / 0.9588 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.5142, allocations: 0 / 0.9588 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.422e-05/0.5143, allocations: 83.06 kB / 0.9589 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.566e-05/0.5143, allocations: 91.56 kB / 0.959 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.5143, allocations: 0.9062 kB / 0.959 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.984e-05/0.5143, allocations: 1.031 kB / 0.959 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.348e-06/0.5143, allocations: 9.234 kB / 0.959 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.5144, allocations: 1.188 kB / 0.959 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.875e-05/0.5144, allocations: 119.7 kB / 0.9591 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.21e-07/0.5144, allocations: 0 / 0.9591 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001795/0.5146, allocations: 15.62 kB / 0.9591 GB, free: 3.836 MB / 0.7169 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.0001809/0.5148, allocations: 0.6149 MB / 0.9597 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 5.707e-05/0.5149, allocations: 19.11 kB / 0.9597 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.5149, allocations: 0 / 0.9597 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.082e-05/0.5149, allocations: 11.91 kB / 0.9597 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.515, allocations: 8.469 kB / 0.9597 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007798/0.5158, allocations: 1.344 MB / 0.961 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.155e-05/0.5159, allocations: 0.6996 MB / 0.9617 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.692e-05/0.5159, allocations: 4.406 kB / 0.9617 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.341e-05/0.516, allocations: 27.33 kB / 0.9618 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.516, allocations: 0 / 0.9618 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.00926/0.5252, allocations: 1.347 MB / 0.9631 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001219/0.5254, allocations: 216.8 kB / 0.9633 GB, free: 328 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.563/2.089, allocations: 0 / 0.9633 GB, free: 328 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_Btu_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_Btu.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_From_Btu.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_Btu.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches