Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_10_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.001251/0.001251, allocations: 108 kB / 15.6 MB, free: 132 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.001173/0.001173, allocations: 195.9 kB / 16.53 MB, free: 6.672 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.351/1.351, 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 10.1.1-maint.10.0.x/package.mo): time 2.652/2.652, allocations: 437.1 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 63.91 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5467/0.5484, allocations: 151.6 MB / 1.017 GB, free: 2.617 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001952/0.5504, allocations: 0.8308 MB / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0001062/0.5505, allocations: 43.78 kB / 1.018 GB, free: 1.746 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.68e-05/0.5506, allocations: 4 kB / 1.018 GB, free: 1.742 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.796e-05/0.5506, allocations: 11.86 kB / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.652e-05/0.5507, allocations: 7.875 kB / 1.018 GB, free: 1.723 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 4.276e-05/0.5508, allocations: 19.98 kB / 1.018 GB, free: 1.703 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.593e-05/0.5508, allocations: 63.84 kB / 1.018 GB, free: 1.641 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.551, allocations: 39.91 kB / 1.018 GB, free: 1.602 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.237e-05/0.551, allocations: 31.86 kB / 1.018 GB, free: 1.57 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.478e-05/0.5511, allocations: 27.8 kB / 1.018 GB, free: 1.543 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.5511, allocations: 4 kB / 1.018 GB, free: 1.539 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 1.335e-05/0.5511, allocations: 8 kB / 1.018 GB, free: 1.531 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.34e-05/0.5512, allocations: 23.91 kB / 1.018 GB, free: 1.508 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.425e-05/0.5512, allocations: 23.81 kB / 1.019 GB, free: 1.484 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.51e-05/0.5513, allocations: 73.95 kB / 1.019 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.5513, allocations: 4 kB / 1.019 GB, free: 1.41 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.473e-06/0.5513, allocations: 0 / 1.019 GB, free: 1.41 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.5513, allocations: 0 / 1.019 GB, free: 1.41 MB / 0.7637 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.0003702/0.5517, allocations: 383.2 kB / 1.019 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.5517, allocations: 8.031 kB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.525e-05/0.5518, allocations: 42.73 kB / 1.019 GB, free: 0.9258 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.552e-05/0.5518, allocations: 8.844 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001666/0.552, allocations: 196.1 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.552, allocations: 4.375 kB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.552, allocations: 8.375 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000141/0.5522, allocations: 101.2 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.5522, allocations: 3.938 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.5522, allocations: 4 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.5522, allocations: 8 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.162e-05/0.5523, allocations: 39.86 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004544/0.5527, allocations: 432.6 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 5.974e-05/0.5528, allocations: 41.34 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.203e-05/0.5529, allocations: 17.77 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.5529, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.5529, allocations: 34.56 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.5529, allocations: 4 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001546/0.5531, allocations: 57.48 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.5531, allocations: 77.11 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.5532, allocations: 163.6 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.5533, allocations: 29.7 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.178e-05/0.5533, allocations: 104 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.228e-06/0.5533, allocations: 7.906 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.101e-05/0.5534, allocations: 21.91 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.385e-05/0.5535, allocations: 326.8 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.552e-05/0.5535, allocations: 4 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.31e-05/0.5535, allocations: 21.7 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.588e-05/0.5535, allocations: 21.72 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.5536, allocations: 3.938 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.906e-05/0.5536, allocations: 65.55 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.5537, allocations: 11.92 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.5537, allocations: 0 / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.5537, allocations: 0 / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.665e-05/0.5537, allocations: 8 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.5538, allocations: 0 / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.074e-05/0.5538, allocations: 7.906 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.607e-06/0.5538, allocations: 0 / 1.021 GB, free: 14.91 MB / 0.7794 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 6.469e-05/0.5539, allocations: 117.9 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.554e-05/0.5539, allocations: 11.84 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.397e-05/0.5539, allocations: 15.86 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.554, allocations: 3.938 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.554, allocations: 0 / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.554, allocations: 0 / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.5543, allocations: 462.8 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.5543, allocations: 8 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.191e-05/0.5543, allocations: 7.938 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.5543, allocations: 96 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.019e-06/0.5544, allocations: 0 / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.145e-06/0.5544, allocations: 4 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.5544, allocations: 3.984 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.816e-05/0.5545, allocations: 81.83 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.487e-05/0.5545, allocations: 96.97 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.5545, allocations: 0 / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.069e-05/0.5546, allocations: 0 / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.238e-05/0.5546, allocations: 4 kB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.5546, allocations: 7.938 kB / 1.022 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.617e-05/0.5547, allocations: 124.9 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5547, allocations: 0 / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000189/0.5549, allocations: 4 kB / 1.022 GB, free: 13.87 MB / 0.7794 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.000301/0.5552, allocations: 0.6171 MB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.443e-05/0.5552, allocations: 19.94 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.5553, allocations: 0 / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.189e-05/0.5553, allocations: 8.219 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.5554, allocations: 8 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.5565, allocations: 1.33 MB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001836/0.5567, allocations: 0.6923 MB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.136e-05/0.5567, allocations: 8.422 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.01e-05/0.5567, allocations: 19.44 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of SimCode: time 4.5e-07/0.5567, allocations: 0 / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01707/0.5738, allocations: 1.535 MB / 1.026 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.479/8.053, allocations: 16.05 kB / 1.026 GB, free: 9.535 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches