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.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.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.01085/0.01085, allocations: 103.4 kB / 15.73 MB, free: 6.043 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.002964/0.002964, allocations: 194.1 kB / 16.68 MB, free: 5.965 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.758/2.758, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 75.83 kB / 1.054 GB, free: 7.672 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3613, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour): time 0.002189/0.3636, allocations: 0.8331 MB / 1.208 GB, free: 9.359 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0001397/0.3637, allocations: 39.78 kB / 1.208 GB, free: 9.32 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.478e-05/0.3638, allocations: 4 kB / 1.208 GB, free: 9.316 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.765e-05/0.3639, allocations: 7.875 kB / 1.208 GB, free: 9.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.652e-05/0.364, allocations: 7.875 kB / 1.208 GB, free: 9.301 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 5.987e-05/0.364, allocations: 27.97 kB / 1.208 GB, free: 9.273 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001124/0.3642, allocations: 59.84 kB / 1.208 GB, free: 9.215 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.3643, allocations: 47.91 kB / 1.208 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.799e-05/0.3644, allocations: 23.86 kB / 1.208 GB, free: 9.145 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.137e-05/0.3645, allocations: 27.86 kB / 1.208 GB, free: 9.117 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.883e-05/0.3645, allocations: 4 kB / 1.208 GB, free: 9.113 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.034e-05/0.3645, allocations: 8 kB / 1.208 GB, free: 9.105 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.3645, allocations: 19.91 kB / 1.208 GB, free: 9.086 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.163e-05/0.3646, allocations: 39.69 kB / 1.208 GB, free: 9.047 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.3647, allocations: 79.92 kB / 1.208 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3647, allocations: 0 / 1.208 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3647, allocations: 0 / 1.208 GB, free: 8.969 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.322e-06/0.3647, allocations: 0 / 1.208 GB, free: 8.969 MB / 0.9669 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.0004287/0.3652, allocations: 375.2 kB / 1.209 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3652, allocations: 8.625 kB / 1.209 GB, free: 8.543 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.3653, allocations: 42.73 kB / 1.209 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.917e-05/0.3653, allocations: 12.84 kB / 1.209 GB, free: 8.48 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002057/0.3655, allocations: 196.1 kB / 1.209 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.3655, allocations: 8.375 kB / 1.209 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.3656, allocations: 4.375 kB / 1.209 GB, free: 8.238 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/0.3657, allocations: 97.66 kB / 1.209 GB, free: 8.133 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3657, allocations: 7.875 kB / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.3658, allocations: 4 kB / 1.209 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.3658, allocations: 4 kB / 1.209 GB, free: 8.117 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.392e-05/0.3658, allocations: 35.98 kB / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005101/0.3664, allocations: 432.6 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.555e-05/0.3664, allocations: 41.22 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.446e-05/0.3665, allocations: 21.72 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.3665, allocations: 0 / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.3665, allocations: 38.48 kB / 1.21 GB, free: 7.473 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3665, allocations: 4 kB / 1.21 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0001657/0.3667, allocations: 49.55 kB / 1.21 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.3667, allocations: 81.05 kB / 1.21 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.3669, allocations: 166.4 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.3669, allocations: 25.7 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.265e-05/0.367, allocations: 103.9 kB / 1.21 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 9.027e-06/0.367, allocations: 4 kB / 1.21 GB, free: 7.004 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.367, allocations: 17.62 kB / 1.21 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3672, allocations: 326.8 kB / 1.21 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.806e-05/0.3672, allocations: 8 kB / 1.21 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.088e-05/0.3672, allocations: 17.7 kB / 1.211 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.114e-05/0.3672, allocations: 29.72 kB / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3673, allocations: 0 / 1.211 GB, free: 6.586 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.56e-05/0.3673, allocations: 57.55 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.3674, allocations: 7.938 kB / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3674, allocations: 0 / 1.211 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.3674, allocations: 3.984 kB / 1.211 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.498e-05/0.3675, allocations: 8 kB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.3675, allocations: 4.062 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.342e-05/0.3675, allocations: 11.94 kB / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-06/0.3675, allocations: 3.938 kB / 1.211 GB, free: 6.484 MB / 0.9669 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.225e-05/0.3676, allocations: 113.8 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.469e-05/0.3676, allocations: 11.84 kB / 1.211 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.5e-05/0.3677, allocations: 11.86 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3677, allocations: 4.078 kB / 1.211 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3677, allocations: 4 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3677, allocations: 0 / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003738/0.3681, allocations: 482.7 kB / 1.211 GB, free: 5.797 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3681, allocations: 0 / 1.211 GB, free: 5.797 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.119e-05/0.3681, allocations: 4 kB / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.3681, allocations: 0 / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-06/0.3681, allocations: 0 / 1.211 GB, free: 5.793 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.3681, allocations: 7.984 kB / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3682, allocations: 0 / 1.211 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.263e-05/0.3682, allocations: 85.83 kB / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.906e-05/0.3683, allocations: 89.02 kB / 1.211 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.3683, allocations: 3.984 kB / 1.211 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.988e-05/0.3683, allocations: 3.938 kB / 1.211 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.455e-05/0.3684, allocations: 0 / 1.211 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.3684, allocations: 4 kB / 1.211 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.335e-05/0.3685, allocations: 125.9 kB / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3685, allocations: 0 / 1.212 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0001835/0.3687, allocations: 4 kB / 1.212 GB, free: 5.438 MB / 0.9669 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.0003621/0.369, allocations: 0.6132 MB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 8.213e-05/0.3691, allocations: 27.88 kB / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3691, allocations: 0 / 1.212 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.17e-05/0.3691, allocations: 8 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001601/0.3693, allocations: 8 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.3705, allocations: 1.327 MB / 1.213 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.3707, allocations: 0.6963 MB / 1.214 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.154e-05/0.3707, allocations: 4.438 kB / 1.214 GB, free: 2.598 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.339e-05/0.3708, allocations: 27.42 kB / 1.214 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of SimCode: time 6.92e-07/0.3708, allocations: 0 / 1.214 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01886/0.3897, allocations: 1.602 MB / 1.216 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.362/7.752, allocations: 15.38 kB / 1.216 GB, free: 1.098 MB / 0.9669 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