Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.To_Btu,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_Btu",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_Btu,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_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.005777/0.005777, allocations: 99.69 kB / 15.73 MB, free: 6.039 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.001317/0.001317, allocations: 192.3 kB / 16.67 MB, free: 5.949 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.908/2.908, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 63.91 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.286, allocations: 162.2 MB / 1.241 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_Btu): time 0.00186/0.2879, allocations: 0.8253 MB / 1.242 GB, free: 9.359 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001116/0.288, allocations: 43.78 kB / 1.242 GB, free: 9.316 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.274e-05/0.2881, allocations: 4 kB / 1.242 GB, free: 9.312 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.61e-05/0.2881, allocations: 7.875 kB / 1.242 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.051e-05/0.2882, allocations: 7.938 kB / 1.242 GB, free: 9.297 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 4.481e-05/0.2883, allocations: 19.97 kB / 1.242 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.2884, allocations: 67.78 kB / 1.242 GB, free: 9.211 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.2885, allocations: 39.97 kB / 1.242 GB, free: 9.172 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.536e-05/0.2886, allocations: 31.84 kB / 1.242 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.599e-05/0.2886, allocations: 23.86 kB / 1.243 GB, free: 9.117 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.2887, allocations: 8 kB / 1.243 GB, free: 9.109 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.789e-06/0.2887, allocations: 4 kB / 1.243 GB, free: 9.105 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.198e-05/0.2887, allocations: 19.92 kB / 1.243 GB, free: 9.086 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.758e-05/0.2887, allocations: 27.75 kB / 1.243 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.2889, allocations: 87.56 kB / 1.243 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.2889, allocations: 0 / 1.243 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2889, allocations: 0 / 1.243 GB, free: 8.973 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.638e-06/0.2889, allocations: 0 / 1.243 GB, free: 8.973 MB / 0.9981 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.0004292/0.2893, allocations: 379.1 kB / 1.243 GB, free: 8.551 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2894, allocations: 8.031 kB / 1.243 GB, free: 8.543 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.2894, allocations: 42.73 kB / 1.243 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.591e-05/0.2894, allocations: 12.84 kB / 1.243 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.2897, allocations: 196.1 kB / 1.243 GB, free: 8.25 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.2897, allocations: 8.375 kB / 1.243 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.68e-05/0.2897, allocations: 16.36 kB / 1.243 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.2899, allocations: 89.34 kB / 1.243 GB, free: 8.129 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2899, allocations: 3.938 kB / 1.243 GB, free: 8.125 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.2899, allocations: 4 kB / 1.243 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.2899, allocations: 4 kB / 1.243 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.089e-05/0.29, allocations: 39.86 kB / 1.243 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005339/0.2905, allocations: 436.7 kB / 1.244 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.425e-05/0.2906, allocations: 37.34 kB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.623e-05/0.2906, allocations: 21.77 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.217e-06/0.2907, allocations: 4 kB / 1.244 GB, free: 7.512 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.2907, allocations: 34.56 kB / 1.244 GB, free: 7.469 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.2907, allocations: 0 / 1.244 GB, free: 7.469 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001579/0.2909, allocations: 53.53 kB / 1.244 GB, free: 7.41 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.2909, allocations: 77.11 kB / 1.244 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.2911, allocations: 164.8 kB / 1.244 GB, free: 7.148 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.2911, allocations: 25.95 kB / 1.244 GB, free: 7.117 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.521e-05/0.2912, allocations: 116.1 kB / 1.244 GB, free: 7 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.468e-06/0.2912, allocations: 3.953 kB / 1.244 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.2912, allocations: 17.66 kB / 1.244 GB, free: 6.973 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.2914, allocations: 322.8 kB / 1.245 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.095e-05/0.2914, allocations: 12 kB / 1.245 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.678e-05/0.2914, allocations: 21.7 kB / 1.245 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.436e-05/0.2915, allocations: 29.72 kB / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2915, allocations: 0 / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.139e-05/0.2916, allocations: 61.53 kB / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.2916, allocations: 7.938 kB / 1.245 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.2916, allocations: 0 / 1.245 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.2916, allocations: 4 kB / 1.245 GB, free: 6.496 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.508e-05/0.2917, allocations: 8 kB / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2917, allocations: 0 / 1.245 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.437e-05/0.2917, allocations: 12 kB / 1.245 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-06/0.2917, allocations: 0 / 1.245 GB, free: 6.477 MB / 0.9981 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 8.127e-05/0.2918, allocations: 114.4 kB / 1.245 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.472e-05/0.2919, allocations: 11.89 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.619e-05/0.2919, allocations: 11.86 kB / 1.245 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2919, allocations: 0 / 1.245 GB, free: 6.328 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2919, allocations: 3.938 kB / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.2919, allocations: 0 / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004198/0.2923, allocations: 474.8 kB / 1.245 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2924, allocations: 0 / 1.245 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.775e-05/0.2924, allocations: 7.938 kB / 1.245 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2924, allocations: 0 / 1.245 GB, free: 5.789 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-06/0.2924, allocations: 4 kB / 1.245 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2924, allocations: 0 / 1.245 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2924, allocations: 0 / 1.245 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.083e-05/0.2925, allocations: 85.94 kB / 1.246 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.2926, allocations: 89.05 kB / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.2926, allocations: 3.938 kB / 1.246 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.028e-05/0.2926, allocations: 0 / 1.246 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.135e-05/0.2926, allocations: 4 kB / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.2926, allocations: 0 / 1.246 GB, free: 5.566 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.503e-05/0.2927, allocations: 125.6 kB / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2928, allocations: 0 / 1.246 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001978/0.293, allocations: 16.03 kB / 1.246 GB, free: 5.43 MB / 0.9981 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.0004071/0.2934, allocations: 0.6093 MB / 1.246 GB, free: 4.789 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.532e-05/0.2935, allocations: 23.97 kB / 1.246 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2935, allocations: 0 / 1.246 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.328e-05/0.2935, allocations: 8 kB / 1.246 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001494/0.2936, allocations: 11.28 kB / 1.246 GB, free: 4.75 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.2949, allocations: 1.331 MB / 1.248 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.2952, allocations: 0.6963 MB / 1.248 GB, free: 2.598 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.984e-05/0.2952, allocations: 8.516 kB / 1.248 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.542e-05/0.2953, allocations: 27.42 kB / 1.248 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of SimCode: time 2.51e-07/0.2953, allocations: 0 / 1.248 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02032/0.3156, allocations: 1.572 MB / 1.25 GB, free: 1.094 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/7.945, allocations: 13.73 kB / 1.25 GB, free: 1.086 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_Btu.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_Btu.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_Btu.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches