Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_BtuPerHour,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_BtuPerHour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour,fileNamePrefix="Buildings_latest_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.001326/0.001326, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001458/0.001459, allocations: 195 kB / 16.14 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.27/1.27, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.511/2.511, allocations: 461.8 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 66.53 kB / 0.8985 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2329, allocations: 157.4 MB / 1.052 GB, free: 8.219 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour): time 0.001806/0.2348, allocations: 0.8821 MB / 1.053 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 8.757e-05/0.2349, allocations: 43.84 kB / 1.053 GB, free: 7.293 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.362e-05/0.2349, allocations: 0 / 1.053 GB, free: 7.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.551e-05/0.235, allocations: 3.938 kB / 1.053 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.718e-05/0.235, allocations: 7.922 kB / 1.053 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 3.553e-05/0.2351, allocations: 16 kB / 1.053 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.79e-05/0.2352, allocations: 59.78 kB / 1.053 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.2353, allocations: 51.94 kB / 1.053 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.127e-05/0.2353, allocations: 27.86 kB / 1.053 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.53e-05/0.2354, allocations: 27.8 kB / 1.053 GB, free: 7.102 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.709e-05/0.2354, allocations: 4 kB / 1.053 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.997e-06/0.2354, allocations: 4 kB / 1.053 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.2355, allocations: 11.92 kB / 1.053 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.507e-05/0.2355, allocations: 35.75 kB / 1.053 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.469e-05/0.2356, allocations: 71.97 kB / 1.053 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.2356, allocations: 0 / 1.053 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.71e-07/0.2356, allocations: 0 / 1.053 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.597e-06/0.2356, allocations: 0 / 1.053 GB, free: 6.977 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.0003964/0.236, allocations: 380.7 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.236, allocations: 8.031 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.791e-05/0.2361, allocations: 46.73 kB / 1.054 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.288e-05/0.2361, allocations: 8.844 kB / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.2363, allocations: 188.2 kB / 1.054 GB, free: 6.262 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.2363, allocations: 12.28 kB / 1.054 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.2363, allocations: 4.375 kB / 1.054 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.2365, allocations: 95.88 kB / 1.054 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.2365, allocations: 11.88 kB / 1.054 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.2365, allocations: 4 kB / 1.054 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.2365, allocations: 0 / 1.054 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.56e-05/0.2366, allocations: 35.98 kB / 1.054 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004577/0.237, allocations: 436.5 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.996e-05/0.2371, allocations: 41.16 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.625e-05/0.2371, allocations: 29.86 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.392e-06/0.2371, allocations: 0 / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.825e-05/0.2372, allocations: 30.56 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.2372, allocations: 0 / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001439/0.2373, allocations: 57.48 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.2374, allocations: 81.11 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.2375, allocations: 169.6 kB / 1.055 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.291e-05/0.2375, allocations: 25.7 kB / 1.055 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.131e-05/0.2376, allocations: 100 kB / 1.055 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.016e-05/0.2376, allocations: 7.906 kB / 1.055 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.763e-05/0.2376, allocations: 17.7 kB / 1.055 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.2377, allocations: 323.1 kB / 1.055 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.538e-05/0.2378, allocations: 4 kB / 1.055 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.524e-05/0.2378, allocations: 25.69 kB / 1.055 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.773e-05/0.2378, allocations: 29.66 kB / 1.055 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2378, allocations: 0 / 1.055 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.425e-05/0.2379, allocations: 53.66 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.2379, allocations: 25.06 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.2379, allocations: 0 / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.238, allocations: 0 / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.329e-05/0.238, allocations: 4 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.238, allocations: 4 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.78e-05/0.2381, allocations: 7.844 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-06/0.2381, allocations: 0 / 1.056 GB, free: 4.488 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 7.152e-05/0.2381, allocations: 113.8 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.127e-05/0.2382, allocations: 11.84 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.254e-05/0.2382, allocations: 19.86 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.2382, allocations: 0 / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.2382, allocations: 4 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.2382, allocations: 3.938 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.2386, allocations: 470.8 kB / 1.056 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2386, allocations: 0 / 1.056 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.814e-05/0.2387, allocations: 4 kB / 1.056 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.2387, allocations: 4.062 kB / 1.056 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.909e-06/0.2387, allocations: 0 / 1.056 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.2387, allocations: 4 kB / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2387, allocations: 0 / 1.056 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.673e-05/0.2388, allocations: 81.77 kB / 1.056 GB, free: 3.691 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.728e-05/0.2388, allocations: 93 kB / 1.056 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.2389, allocations: 8.031 kB / 1.056 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.991e-05/0.2389, allocations: 0 / 1.056 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-06/0.2389, allocations: 0 / 1.056 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-06/0.2389, allocations: 0 / 1.056 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.94e-05/0.239, allocations: 119.2 kB / 1.056 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.239, allocations: 0 / 1.056 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001787/0.2392, allocations: 8 kB / 1.056 GB, free: 3.449 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.0003594/0.2395, allocations: 0.6209 MB / 1.057 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.353e-05/0.2396, allocations: 12 kB / 1.057 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2396, allocations: 0 / 1.057 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.378e-06/0.2396, allocations: 7.938 kB / 1.057 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.2398, allocations: 8.281 kB / 1.057 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.2408, allocations: 1.344 MB / 1.058 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002212/0.2411, allocations: 0.7004 MB / 1.059 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.282e-05/0.2411, allocations: 8.422 kB / 1.059 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.9e-05/0.2411, allocations: 27.38 kB / 1.059 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.2411, allocations: 0 / 1.059 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009614/0.2508, allocations: 1.427 MB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/0.251, allocations: 230 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/1.839, allocations: 1 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_BtuPerHour_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_From_BtuPerHour.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_From_BtuPerHour.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches