Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_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.From_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_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.001283/0.001284, 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.001341/0.001341, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.433/2.433, allocations: 437 MB / 0.7104 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 63.91 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.505/0.5064, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001814/0.5082, allocations: 0.8289 MB / 1.018 GB, free: 1.664 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 9.24e-05/0.5083, allocations: 39.8 kB / 1.018 GB, free: 1.625 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.5084, allocations: 0 / 1.018 GB, free: 1.625 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.094e-05/0.5084, allocations: 11.86 kB / 1.018 GB, free: 1.613 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.895e-05/0.5085, allocations: 11.86 kB / 1.018 GB, free: 1.602 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 4.63e-05/0.5085, allocations: 27.92 kB / 1.018 GB, free: 1.574 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.977e-05/0.5086, allocations: 59.84 kB / 1.018 GB, free: 1.516 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.5087, allocations: 39.97 kB / 1.018 GB, free: 1.477 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.174e-05/0.5088, allocations: 31.8 kB / 1.018 GB, free: 1.445 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.757e-05/0.5088, allocations: 27.86 kB / 1.018 GB, free: 1.418 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.5088, allocations: 8 kB / 1.018 GB, free: 1.41 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-06/0.5089, allocations: 4 kB / 1.018 GB, free: 1.406 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.803e-05/0.5089, allocations: 15.92 kB / 1.018 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.471e-05/0.5089, allocations: 31.81 kB / 1.019 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.456e-05/0.509, allocations: 77.94 kB / 1.019 GB, free: 1.285 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.509, allocations: 0 / 1.019 GB, free: 1.285 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.213e-06/0.509, allocations: 0 / 1.019 GB, free: 1.285 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.509, allocations: 0 / 1.019 GB, free: 1.285 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.0003276/0.5094, allocations: 383.2 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.5094, allocations: 8.031 kB / 1.019 GB, free: 0.8516 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.049e-05/0.5094, allocations: 42.73 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.133e-05/0.5095, allocations: 8.844 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.5096, allocations: 192.2 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.5096, allocations: 4.375 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.5097, allocations: 8.375 kB / 1.019 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.5098, allocations: 95.84 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.5098, allocations: 7.938 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.906e-06/0.5098, allocations: 4 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.5098, allocations: 4 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.283e-05/0.5099, allocations: 35.92 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000425/0.5103, allocations: 432.6 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.371e-05/0.5104, allocations: 45.28 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.032e-05/0.5104, allocations: 21.77 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.5104, allocations: 4 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.476e-05/0.5104, allocations: 30.56 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 2.184e-06/0.5105, allocations: 4 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001376/0.5106, allocations: 53.48 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.5106, allocations: 81.11 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.5108, allocations: 166.1 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.5108, allocations: 29.7 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.927e-05/0.5108, allocations: 108 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.382e-06/0.5108, allocations: 3.906 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/0.5109, allocations: 13.97 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.11e-05/0.511, allocations: 326.8 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.575e-05/0.511, allocations: 11.94 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.145e-05/0.511, allocations: 25.69 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.305e-05/0.5111, allocations: 25.72 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.5111, allocations: 0 / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.591e-05/0.5111, allocations: 57.55 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.5112, allocations: 11.92 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.5112, allocations: 4 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.966e-06/0.5112, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.052e-05/0.5112, allocations: 8 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.5112, allocations: 0 / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.935e-05/0.5113, allocations: 7.906 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-06/0.5113, allocations: 0 / 1.021 GB, free: 14.79 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 5.968e-05/0.5113, allocations: 119.3 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.261e-05/0.5114, allocations: 15.91 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.923e-05/0.5114, allocations: 11.86 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.5114, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.5114, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.5114, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003137/0.5118, allocations: 470.8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.5118, allocations: 8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.669e-05/0.5118, allocations: 64 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.5118, allocations: 8 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.5118, allocations: 3.938 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.5118, allocations: 0 / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5118, allocations: 0 / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.653e-05/0.5119, allocations: 81.83 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.426e-05/0.5119, allocations: 92.94 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.512, allocations: 4.031 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.158e-05/0.512, allocations: 0 / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.191e-05/0.512, allocations: 7.938 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-06/0.512, allocations: 0 / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.346e-05/0.5121, allocations: 122.1 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5121, allocations: 0 / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001856/0.5123, allocations: 12 kB / 1.022 GB, free: 13.74 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.0002753/0.5126, allocations: 0.6132 MB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.471e-05/0.5126, allocations: 15.94 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.582e-06/0.5126, allocations: 0 / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.097e-05/0.5127, allocations: 8 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.5128, allocations: 11.06 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.5139, allocations: 1.326 MB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.5141, allocations: 0.6963 MB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.578e-05/0.5141, allocations: 8.422 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.801e-05/0.5142, allocations: 23.44 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.5142, allocations: 0 / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01457/0.5287, allocations: 1.541 MB / 1.026 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.559/7.088, allocations: 17.27 kB / 1.026 GB, free: 9.41 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_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_From_ton.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches