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.00798/0.00798, allocations: 96.5 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.002062/0.002062, allocations: 195.6 kB / 16.68 MB, free: 5.969 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.434/1.434, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.898/2.898, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 63.91 kB / 1.083 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2892, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002037/0.2913, allocations: 0.8254 MB / 1.242 GB, free: 9.375 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001127/0.2914, allocations: 35.8 kB / 1.242 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.93e-05/0.2914, allocations: 4 kB / 1.242 GB, free: 9.336 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.772e-05/0.2915, allocations: 11.88 kB / 1.242 GB, free: 9.324 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.361e-05/0.2916, allocations: 19.84 kB / 1.242 GB, free: 9.305 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 4.417e-05/0.2916, allocations: 19.92 kB / 1.242 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.2917, allocations: 55.84 kB / 1.242 GB, free: 9.23 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.2919, allocations: 47.97 kB / 1.242 GB, free: 9.184 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.585e-05/0.292, allocations: 23.86 kB / 1.242 GB, free: 9.16 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.548e-05/0.292, allocations: 35.73 kB / 1.243 GB, free: 9.125 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.183e-05/0.292, allocations: 4 kB / 1.243 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.213e-05/0.2921, allocations: 8 kB / 1.243 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.945e-05/0.2921, allocations: 7.984 kB / 1.243 GB, free: 9.105 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.28e-05/0.2921, allocations: 43.72 kB / 1.243 GB, free: 9.062 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.2923, allocations: 67.66 kB / 1.243 GB, free: 8.996 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2923, allocations: 0 / 1.243 GB, free: 8.996 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.025e-06/0.2923, allocations: 4 kB / 1.243 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.2923, allocations: 4 kB / 1.243 GB, free: 8.988 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.0004462/0.2927, allocations: 379.1 kB / 1.243 GB, free: 8.566 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.2928, allocations: 12.03 kB / 1.243 GB, free: 8.555 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.959e-05/0.2928, allocations: 38.69 kB / 1.243 GB, free: 8.508 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.665e-05/0.2929, allocations: 16.84 kB / 1.243 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.2931, allocations: 188.2 kB / 1.243 GB, free: 8.27 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.2931, allocations: 8.375 kB / 1.243 GB, free: 8.262 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.2931, allocations: 4.375 kB / 1.243 GB, free: 8.258 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/0.2933, allocations: 101 kB / 1.243 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.2933, allocations: 3.938 kB / 1.243 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.2933, allocations: 4 kB / 1.243 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.2933, allocations: 3.984 kB / 1.243 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.835e-05/0.2934, allocations: 31.98 kB / 1.243 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000547/0.294, allocations: 444.7 kB / 1.244 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.275e-05/0.294, allocations: 37.14 kB / 1.244 GB, free: 7.562 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.098e-05/0.2941, allocations: 21.94 kB / 1.244 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.435e-06/0.2941, allocations: 3.938 kB / 1.244 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.2941, allocations: 38.5 kB / 1.244 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.2941, allocations: 0 / 1.244 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.000158/0.2943, allocations: 61.52 kB / 1.244 GB, free: 7.418 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.2944, allocations: 77.11 kB / 1.244 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.2945, allocations: 164.6 kB / 1.244 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.2945, allocations: 25.7 kB / 1.244 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.2946, allocations: 96.09 kB / 1.244 GB, free: 7.027 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.101e-05/0.2946, allocations: 11.94 kB / 1.244 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.2947, allocations: 17.97 kB / 1.244 GB, free: 6.992 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.2948, allocations: 318.8 kB / 1.245 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.003e-05/0.2949, allocations: 15.92 kB / 1.245 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.458e-05/0.2949, allocations: 13.72 kB / 1.245 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.906e-05/0.2949, allocations: 29.66 kB / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.2949, allocations: 0 / 1.245 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.993e-05/0.295, allocations: 65.59 kB / 1.245 GB, free: 6.531 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2951, allocations: 11.94 kB / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.2951, allocations: 0 / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.2951, allocations: 0 / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.475e-05/0.2951, allocations: 11.94 kB / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.157e-06/0.2952, allocations: 0 / 1.245 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.166e-05/0.2952, allocations: 7.938 kB / 1.245 GB, free: 6.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.2952, allocations: 4 kB / 1.245 GB, free: 6.496 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 9.171e-05/0.2953, allocations: 118.4 kB / 1.245 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.631e-05/0.2954, allocations: 15.89 kB / 1.245 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.957e-05/0.2954, allocations: 3.875 kB / 1.245 GB, free: 6.348 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.2954, allocations: 4 kB / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.2954, allocations: 0 / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2954, allocations: 0 / 1.245 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004309/0.2958, allocations: 474.7 kB / 1.245 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2958, allocations: 4.062 kB / 1.245 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.283e-05/0.2959, allocations: 4 kB / 1.245 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2959, allocations: 3.984 kB / 1.245 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.029e-06/0.2959, allocations: 0 / 1.245 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.2959, allocations: 0 / 1.245 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.2959, allocations: 4 kB / 1.245 GB, free: 5.801 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.893e-05/0.296, allocations: 81.77 kB / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.61e-05/0.2961, allocations: 93.08 kB / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.2961, allocations: 4 kB / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.05e-05/0.2961, allocations: 0 / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.566e-06/0.2961, allocations: 0 / 1.246 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.2961, allocations: 4 kB / 1.246 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.31e-05/0.2962, allocations: 117.9 kB / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2962, allocations: 0 / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001883/0.2964, allocations: 8 kB / 1.246 GB, free: 5.461 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.0004226/0.2969, allocations: 0.621 MB / 1.246 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 7.906e-05/0.297, allocations: 12 kB / 1.246 GB, free: 4.797 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.297, allocations: 4 kB / 1.246 GB, free: 4.793 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.976e-05/0.297, allocations: 20.08 kB / 1.246 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.2971, allocations: 2.031 kB / 1.246 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2984, allocations: 1.335 MB / 1.248 GB, free: 3.34 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/0.2987, allocations: 0.6924 MB / 1.248 GB, free: 2.621 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.26e-05/0.2988, allocations: 12.42 kB / 1.248 GB, free: 2.609 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.2988, allocations: 27.38 kB / 1.248 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/0.2988, allocations: 0 / 1.248 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/0.3204, allocations: 1.582 MB / 1.25 GB, free: 1.105 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.677/7.998, allocations: 7.812 kB / 1.25 GB, free: 1.102 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_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_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.csv","/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