Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.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_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",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.005292/0.005292, allocations: 97.41 kB / 15.73 MB, free: 6.047 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.001546/0.001546, allocations: 201.2 kB / 16.68 MB, free: 5.973 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.548/2.548, allocations: 482.6 MB / 0.755 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 76.09 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2871, allocations: 162.3 MB / 1.242 GB, free: 9.781 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.00188/0.289, allocations: 0.8328 MB / 1.243 GB, free: 8.949 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001006/0.2892, allocations: 39.78 kB / 1.243 GB, free: 8.91 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.617e-05/0.2892, allocations: 4 kB / 1.243 GB, free: 8.906 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.118e-05/0.2893, allocations: 7.875 kB / 1.243 GB, free: 8.898 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.794e-05/0.2893, allocations: 15.88 kB / 1.243 GB, free: 8.883 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 4.378e-05/0.2894, allocations: 19.97 kB / 1.243 GB, free: 8.863 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 9.374e-05/0.2895, allocations: 59.84 kB / 1.243 GB, free: 8.805 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.2896, allocations: 43.97 kB / 1.243 GB, free: 8.762 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.391e-05/0.2897, allocations: 35.78 kB / 1.243 GB, free: 8.727 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.667e-05/0.2897, allocations: 27.8 kB / 1.243 GB, free: 8.699 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.63e-05/0.2897, allocations: 4 kB / 1.243 GB, free: 8.695 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.381e-05/0.2898, allocations: 8 kB / 1.243 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.838e-05/0.2898, allocations: 11.92 kB / 1.243 GB, free: 8.676 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.947e-05/0.2898, allocations: 35.75 kB / 1.243 GB, free: 8.641 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.2899, allocations: 83.56 kB / 1.243 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.29, allocations: 0 / 1.243 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.012e-06/0.29, allocations: 0 / 1.243 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.29, allocations: 4 kB / 1.243 GB, free: 8.555 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.0004229/0.2904, allocations: 379.1 kB / 1.243 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2904, allocations: 8.031 kB / 1.243 GB, free: 8.125 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.866e-05/0.2905, allocations: 42.73 kB / 1.243 GB, free: 8.074 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.301e-05/0.2905, allocations: 8.891 kB / 1.243 GB, free: 8.066 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.2907, allocations: 184.3 kB / 1.244 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.23e-05/0.2907, allocations: 8.375 kB / 1.244 GB, free: 7.84 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.2907, allocations: 8.375 kB / 1.244 GB, free: 7.832 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.2909, allocations: 99.88 kB / 1.244 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.2909, allocations: 3.938 kB / 1.244 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.2909, allocations: 4 kB / 1.244 GB, free: 7.715 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.2909, allocations: 4 kB / 1.244 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.947e-05/0.291, allocations: 31.92 kB / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004956/0.2915, allocations: 440.7 kB / 1.244 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.171e-05/0.2916, allocations: 37.31 kB / 1.244 GB, free: 7.141 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.581e-05/0.2916, allocations: 25.7 kB / 1.244 GB, free: 7.109 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.766e-06/0.2916, allocations: 0 / 1.244 GB, free: 7.109 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.2917, allocations: 30.56 kB / 1.244 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.2917, allocations: 4 kB / 1.244 GB, free: 7.066 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001458/0.2918, allocations: 57.53 kB / 1.244 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.2919, allocations: 77.11 kB / 1.244 GB, free: 6.91 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.292, allocations: 162.2 kB / 1.245 GB, free: 6.742 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.2921, allocations: 25.7 kB / 1.245 GB, free: 6.711 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.113e-05/0.2921, allocations: 108.1 kB / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.943e-06/0.2922, allocations: 3.953 kB / 1.245 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.2922, allocations: 17.97 kB / 1.245 GB, free: 6.574 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.2923, allocations: 322.8 kB / 1.245 GB, free: 6.25 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.784e-05/0.2923, allocations: 11.94 kB / 1.245 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.349e-05/0.2924, allocations: 17.7 kB / 1.245 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.02e-05/0.2924, allocations: 29.66 kB / 1.245 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.2924, allocations: 0 / 1.245 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.718e-05/0.2925, allocations: 61.59 kB / 1.245 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2925, allocations: 17.42 kB / 1.245 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.2925, allocations: 0 / 1.245 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.2926, allocations: 0 / 1.245 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.324e-05/0.2926, allocations: 8 kB / 1.245 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.2926, allocations: 0 / 1.245 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.231e-05/0.2927, allocations: 15.89 kB / 1.245 GB, free: 6.074 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-06/0.2927, allocations: 0 / 1.245 GB, free: 6.074 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 7.713e-05/0.2928, allocations: 113.8 kB / 1.245 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.178e-05/0.2928, allocations: 15.95 kB / 1.245 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.152e-05/0.2928, allocations: 11.86 kB / 1.245 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.2928, allocations: 0 / 1.245 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2928, allocations: 4 kB / 1.245 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-06/0.2928, allocations: 0 / 1.245 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004106/0.2933, allocations: 474.7 kB / 1.246 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2933, allocations: 0 / 1.246 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.799e-05/0.2933, allocations: 8.062 kB / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.2933, allocations: 0 / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.459e-06/0.2933, allocations: 0 / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.2933, allocations: 4 kB / 1.246 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.2933, allocations: 3.938 kB / 1.246 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.303e-05/0.2934, allocations: 81.95 kB / 1.246 GB, free: 5.273 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.408e-05/0.2935, allocations: 93.08 kB / 1.246 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.2935, allocations: 4 kB / 1.246 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.905e-05/0.2935, allocations: 0 / 1.246 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.656e-06/0.2935, allocations: 0 / 1.246 GB, free: 5.16 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-06/0.2935, allocations: 4 kB / 1.246 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.275e-05/0.2936, allocations: 121.7 kB / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2936, allocations: 0 / 1.246 GB, free: 5.039 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001829/0.2938, allocations: 8 kB / 1.246 GB, free: 5.031 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.0003914/0.2942, allocations: 0.6176 MB / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.637e-05/0.2943, allocations: 16 kB / 1.247 GB, free: 4.367 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2943, allocations: 7.875 kB / 1.247 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.173e-05/0.2943, allocations: 8 kB / 1.247 GB, free: 4.352 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.2945, allocations: 8.281 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.2957, allocations: 1.331 MB / 1.248 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.296, allocations: 0.6963 MB / 1.249 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.009e-05/0.296, allocations: 8.438 kB / 1.249 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.2961, allocations: 31.36 kB / 1.249 GB, free: 2.152 MB / 0.9981 GB Notification: Performance of SimCode: time 2.1e-07/0.2961, allocations: 0 / 1.249 GB, free: 2.152 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8456/1.142, allocations: 1.576 MB / 1.25 GB, free: 0.6836 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.91, allocations: 4.562 kB / 1.25 GB, free: 0.6797 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches