Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.To_BtuPerHour,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_BtuPerHour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_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.001466/0.001466, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001723/0.001723, allocations: 190.2 kB / 16.25 MB, free: 6.637 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.761/1.761, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.23/4.23, allocations: 461.9 MB / 0.7343 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002473/0.002474, allocations: 74.89 kB / 0.8987 GB, free: 37.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4352/0.4377, allocations: 157.4 MB / 1.052 GB, free: 8.648 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour): time 0.003796/0.4416, allocations: 0.8879 MB / 1.053 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001953/0.4418, allocations: 47.78 kB / 1.053 GB, free: 7.711 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.593e-05/0.4419, allocations: 0 / 1.053 GB, free: 7.711 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.824e-05/0.442, allocations: 3.938 kB / 1.053 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.4422, allocations: 3.938 kB / 1.053 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 8.128e-05/0.4423, allocations: 19.98 kB / 1.053 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.4425, allocations: 59.84 kB / 1.053 GB, free: 7.625 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.4427, allocations: 47.95 kB / 1.053 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.045e-05/0.4428, allocations: 27.86 kB / 1.053 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.142e-05/0.4429, allocations: 27.86 kB / 1.054 GB, free: 7.523 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.941e-05/0.4429, allocations: 4 kB / 1.054 GB, free: 7.52 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.682e-05/0.443, allocations: 8 kB / 1.054 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.82e-05/0.443, allocations: 23.84 kB / 1.054 GB, free: 7.488 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.237e-05/0.4431, allocations: 39.75 kB / 1.054 GB, free: 7.449 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.4433, allocations: 63.98 kB / 1.054 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4433, allocations: 0 / 1.054 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.625e-06/0.4433, allocations: 0 / 1.054 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.046e-06/0.4433, allocations: 4 kB / 1.054 GB, free: 7.383 MB / 0.8106 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.0006592/0.444, allocations: 375.3 kB / 1.054 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.906e-05/0.4441, allocations: 12.62 kB / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.895e-05/0.4441, allocations: 42.67 kB / 1.054 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.4442, allocations: 8.844 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.4445, allocations: 196.1 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.4446, allocations: 8.281 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.391e-05/0.4446, allocations: 12.31 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.4449, allocations: 102.1 kB / 1.054 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.4449, allocations: 7.938 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.4449, allocations: 0 / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.4449, allocations: 0 / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.4451, allocations: 39.92 kB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000765/0.4459, allocations: 436.6 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.435e-05/0.446, allocations: 41.19 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.405e-05/0.446, allocations: 17.84 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.4461, allocations: 0 / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.4461, allocations: 42.55 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.674e-06/0.4461, allocations: 0 / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002591/0.4464, allocations: 57.48 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.4465, allocations: 77.11 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/0.4467, allocations: 164.2 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.4467, allocations: 25.7 kB / 1.055 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.357e-05/0.4468, allocations: 100 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.4469, allocations: 4.156 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.695e-05/0.4469, allocations: 21.72 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.4471, allocations: 322.8 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.269e-05/0.4472, allocations: 7.938 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.226e-05/0.4472, allocations: 21.7 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.003e-05/0.4473, allocations: 21.72 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.4473, allocations: 4 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000142/0.4475, allocations: 57.55 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.4475, allocations: 11.94 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.4475, allocations: 0 / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/0.4475, allocations: 3.984 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.045e-05/0.4477, allocations: 8 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.4477, allocations: 0 / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.035e-05/0.4477, allocations: 7.844 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.4478, allocations: 4.094 kB / 1.056 GB, free: 4.898 MB / 0.8106 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.0001234/0.4479, allocations: 119.4 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.788e-05/0.448, allocations: 15.83 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.925e-05/0.4481, allocations: 11.86 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.4481, allocations: 7.938 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4481, allocations: 3.938 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.4481, allocations: 0 / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000601/0.4487, allocations: 470.8 kB / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4487, allocations: 0 / 1.056 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.845e-05/0.4488, allocations: 7.938 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.4488, allocations: 0 / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.4488, allocations: 4 kB / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.4488, allocations: 0 / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4488, allocations: 0 / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.449, allocations: 85.86 kB / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.182e-05/0.4491, allocations: 81.02 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.4491, allocations: 7.984 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.063e-05/0.4492, allocations: 4 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.488e-05/0.4492, allocations: 4 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.4492, allocations: 0 / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001502/0.4494, allocations: 122.5 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.647e-06/0.4494, allocations: 0 / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003729/0.4498, allocations: 11.94 kB / 1.057 GB, free: 3.852 MB / 0.8106 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.0005183/0.4503, allocations: 0.6171 MB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001265/0.4505, allocations: 19.94 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4505, allocations: 0 / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.569e-05/0.4505, allocations: 8.156 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000274/0.4508, allocations: 4 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.4527, allocations: 1.35 MB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.4531, allocations: 0.6924 MB / 1.059 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.472e-05/0.4532, allocations: 8.422 kB / 1.059 GB, free: 1 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.502e-05/0.4532, allocations: 19.44 kB / 1.059 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of SimCode: time 5.11e-07/0.4533, allocations: 0 / 1.059 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9869/1.44, allocations: 1.489 MB / 1.061 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003493/1.441, allocations: 217.3 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/3.286, allocations: 6.094 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_BtuPerHour_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_BtuPerHour.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_BtuPerHour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_BtuPerHour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches