Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_11_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.004398/0.004398, allocations: 95.92 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.00128/0.00128, allocations: 198.9 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.945/2.945, allocations: 469.8 MB / 0.7425 GB, free: 7.32 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002572/0.002572, allocations: 72.11 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3275, allocations: 159.1 MB / 1.22 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.00207/0.3296, allocations: 0.8367 MB / 1.221 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.000112/0.3297, allocations: 39.73 kB / 1.221 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.355e-05/0.3298, allocations: 4 kB / 1.221 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.293e-05/0.3298, allocations: 11.86 kB / 1.221 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.264e-05/0.3299, allocations: 7.875 kB / 1.221 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 5.572e-05/0.33, allocations: 19.98 kB / 1.221 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000114/0.3301, allocations: 59.83 kB / 1.221 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.3303, allocations: 55.84 kB / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.871e-05/0.3303, allocations: 23.86 kB / 1.221 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.165e-05/0.3304, allocations: 27.86 kB / 1.221 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.3304, allocations: 8 kB / 1.221 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.3304, allocations: 8 kB / 1.221 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.637e-05/0.3305, allocations: 19.86 kB / 1.221 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.511e-05/0.3305, allocations: 35.75 kB / 1.221 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.3307, allocations: 71.64 kB / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3307, allocations: 0 / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.064e-06/0.3307, allocations: 0 / 1.221 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.3307, allocations: 4 kB / 1.221 GB, free: 13.07 MB / 0.9825 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.0004483/0.3311, allocations: 375.1 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3312, allocations: 16.03 kB / 1.222 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.573e-05/0.3312, allocations: 38.73 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.247e-05/0.3313, allocations: 16.84 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.3315, allocations: 188.2 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.3315, allocations: 8.375 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.3315, allocations: 4.375 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001595/0.3317, allocations: 101.7 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3317, allocations: 3.938 kB / 1.222 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.3317, allocations: 4 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.3317, allocations: 3.984 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.412e-05/0.3318, allocations: 35.98 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005517/0.3324, allocations: 436.7 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.542e-05/0.3324, allocations: 37.16 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.913e-05/0.3325, allocations: 25.84 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.3325, allocations: 0 / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.3325, allocations: 38.58 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.3325, allocations: 0 / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001717/0.3327, allocations: 57.53 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.3328, allocations: 81.36 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.3329, allocations: 162.2 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.333, allocations: 25.7 kB / 1.223 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.774e-05/0.333, allocations: 104 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.983e-06/0.3331, allocations: 3.953 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.3331, allocations: 21.67 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.3332, allocations: 322.8 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.709e-05/0.3333, allocations: 7.938 kB / 1.223 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.591e-05/0.3333, allocations: 25.7 kB / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.678e-05/0.3334, allocations: 33.64 kB / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3334, allocations: 0 / 1.223 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.252e-05/0.3334, allocations: 49.66 kB / 1.223 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3335, allocations: 11.94 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.3335, allocations: 0 / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.3335, allocations: 4.062 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.042e-05/0.3336, allocations: 11.98 kB / 1.224 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3336, allocations: 3.938 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.096e-05/0.3336, allocations: 3.938 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.3336, allocations: 4 kB / 1.224 GB, free: 10.57 MB / 0.9825 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.176e-05/0.3337, allocations: 113.8 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.595e-05/0.3338, allocations: 11.89 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.247e-05/0.3338, allocations: 11.86 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.3338, allocations: 4 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3338, allocations: 4 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.3338, allocations: 0 / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004154/0.3342, allocations: 474.7 kB / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3342, allocations: 0 / 1.224 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.975e-05/0.3343, allocations: 4 kB / 1.224 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3343, allocations: 0 / 1.224 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.3343, allocations: 4 kB / 1.224 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3343, allocations: 4.062 kB / 1.224 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3343, allocations: 0 / 1.224 GB, free: 9.883 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.015e-05/0.3344, allocations: 85.81 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.752e-05/0.3345, allocations: 85.06 kB / 1.224 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.3345, allocations: 4 kB / 1.224 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.181e-05/0.3345, allocations: 3.984 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.032e-05/0.3345, allocations: 4.031 kB / 1.224 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-06/0.3345, allocations: 0 / 1.224 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.691e-05/0.3346, allocations: 121.1 kB / 1.224 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3346, allocations: 0 / 1.224 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001904/0.3348, allocations: 8 kB / 1.224 GB, free: 9.539 MB / 0.9825 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.0004214/0.3353, allocations: 0.6215 MB / 1.225 GB, free: 8.887 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 7.784e-05/0.3353, allocations: 12 kB / 1.225 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3354, allocations: 11.88 kB / 1.225 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.517e-05/0.3354, allocations: 7.938 kB / 1.225 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.3355, allocations: 5.891 kB / 1.225 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001232/0.3368, allocations: 1.332 MB / 1.226 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.3371, allocations: 0.6967 MB / 1.227 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.91e-05/0.3371, allocations: 4.438 kB / 1.227 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.701e-05/0.3372, allocations: 23.42 kB / 1.227 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.3372, allocations: 0 / 1.227 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02181/0.359, allocations: 1.58 MB / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.718/8.077, allocations: 14.45 kB / 1.229 GB, free: 5.176 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_11_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches