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.001216/0.001216, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.409/1.409, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.835/2.835, allocations: 469.4 MB / 0.742 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 72.31 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2846, allocations: 159.1 MB / 1.064 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour): time 0.002038/0.2866, allocations: 0.8274 MB / 1.064 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001244/0.2868, allocations: 43.84 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.642e-05/0.2869, allocations: 0 / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.376e-05/0.2869, allocations: 7.875 kB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.23e-05/0.287, allocations: 7.875 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 4.842e-05/0.2871, allocations: 19.97 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.024e-05/0.2872, allocations: 63.86 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.2873, allocations: 51.88 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.504e-05/0.2873, allocations: 23.88 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.369e-05/0.2874, allocations: 31.84 kB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.2874, allocations: 4 kB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.176e-05/0.2874, allocations: 8 kB / 1.065 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.918e-05/0.2875, allocations: 11.94 kB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.825e-05/0.2875, allocations: 43.72 kB / 1.065 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.698e-05/0.2876, allocations: 68 kB / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2876, allocations: 0 / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2876, allocations: 0 / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.2876, allocations: 3.938 kB / 1.065 GB, free: 13.32 MB / 0.8262 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.0004072/0.2881, allocations: 371.3 kB / 1.065 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.2881, allocations: 12.03 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.2882, allocations: 34.75 kB / 1.065 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.785e-05/0.2882, allocations: 16.69 kB / 1.065 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/0.2884, allocations: 204.2 kB / 1.065 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.778e-06/0.2884, allocations: 4.375 kB / 1.065 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.2884, allocations: 8.375 kB / 1.065 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.2886, allocations: 93.86 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.2886, allocations: 3.938 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.2886, allocations: 8 kB / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2886, allocations: 0 / 1.066 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.334e-05/0.2887, allocations: 35.98 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005085/0.2892, allocations: 444.5 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.921e-05/0.2893, allocations: 33.16 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.565e-05/0.2893, allocations: 25.84 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.797e-06/0.2893, allocations: 96 / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.285e-05/0.2894, allocations: 34.5 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.2894, allocations: 0 / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001683/0.2895, allocations: 61.47 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.2896, allocations: 81.11 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.2897, allocations: 164.9 kB / 1.066 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.2898, allocations: 25.7 kB / 1.066 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.74e-05/0.2898, allocations: 104 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.594e-06/0.2898, allocations: 3.906 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.2899, allocations: 17.72 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.29, allocations: 322.8 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.492e-05/0.29, allocations: 0 / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.392e-05/0.29, allocations: 21.72 kB / 1.067 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.933e-05/0.2901, allocations: 29.66 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2901, allocations: 0 / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.389e-05/0.2902, allocations: 57.59 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.2902, allocations: 11.94 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2902, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.2902, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.888e-05/0.2903, allocations: 7.938 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.2903, allocations: 8.062 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.174e-05/0.2903, allocations: 7.844 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.2903, allocations: 7.984 kB / 1.067 GB, free: 10.83 MB / 0.8262 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.472e-05/0.2904, allocations: 109.8 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.568e-05/0.2905, allocations: 15.78 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.331e-05/0.2905, allocations: 11.88 kB / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.2905, allocations: 0 / 1.067 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2905, allocations: 7.938 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-06/0.2905, allocations: 0 / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003819/0.2909, allocations: 470.8 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2909, allocations: 3.984 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.123e-05/0.291, allocations: 4 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.291, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-06/0.291, allocations: 96 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.291, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.291, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.775e-05/0.2911, allocations: 89.83 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.2911, allocations: 89 kB / 1.068 GB, free: 9.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.2911, allocations: 4 kB / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.058e-05/0.2912, allocations: 0 / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.487e-06/0.2912, allocations: 0 / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.2912, allocations: 4 kB / 1.068 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.959e-05/0.2913, allocations: 127.3 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2913, allocations: 0 / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001925/0.2915, allocations: 8 kB / 1.068 GB, free: 9.793 MB / 0.8262 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.0003451/0.2918, allocations: 0.623 MB / 1.069 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.53e-05/0.2919, allocations: 20.02 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2919, allocations: 4 kB / 1.069 GB, free: 9.117 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.237e-05/0.292, allocations: 7.938 kB / 1.069 GB, free: 9.109 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.2921, allocations: 4 kB / 1.069 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.2932, allocations: 1.316 MB / 1.07 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.2934, allocations: 0.6963 MB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.24e-05/0.2935, allocations: 8.438 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/0.2935, allocations: 27.42 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2935, allocations: 3.938 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.3125, allocations: 1.565 MB / 1.072 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.14/7.452, allocations: 8.438 kB / 1.072 GB, free: 5.484 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.From_BtuPerHour_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_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.csv","/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