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.001242/0.001242, allocations: 115.3 kB / 15.34 MB, free: 0.5078 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.001264/0.001264, allocations: 191.1 kB / 16.25 MB, free: 6.586 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.212/1.212, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.285/2.285, allocations: 437 MB / 0.7101 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 63.89 kB / 0.8689 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4868/0.488, allocations: 151.6 MB / 1.017 GB, free: 2.723 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001789/0.4899, allocations: 0.8897 MB / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 9.067e-05/0.49, allocations: 39.78 kB / 1.018 GB, free: 1.797 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.468e-05/0.49, allocations: 8 kB / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.667e-05/0.4901, allocations: 7.922 kB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.7e-05/0.4902, allocations: 3.938 kB / 1.018 GB, free: 1.777 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 3.961e-05/0.4902, allocations: 19.98 kB / 1.018 GB, free: 1.758 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.073e-05/0.4903, allocations: 55.86 kB / 1.018 GB, free: 1.703 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001184/0.4904, allocations: 43.95 kB / 1.018 GB, free: 1.66 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.922e-05/0.4905, allocations: 31.8 kB / 1.018 GB, free: 1.629 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.939e-05/0.4905, allocations: 27.84 kB / 1.018 GB, free: 1.602 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.4905, allocations: 8 kB / 1.018 GB, free: 1.594 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.706e-06/0.4905, allocations: 4 kB / 1.018 GB, free: 1.59 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.749e-05/0.4906, allocations: 15.94 kB / 1.018 GB, free: 1.574 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.544e-05/0.4906, allocations: 31.8 kB / 1.018 GB, free: 1.543 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 8.345e-05/0.4907, allocations: 73.95 kB / 1.018 GB, free: 1.473 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.4907, allocations: 0 / 1.018 GB, free: 1.473 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.512e-06/0.4907, allocations: 4 kB / 1.018 GB, free: 1.469 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.4907, allocations: 0 / 1.018 GB, free: 1.469 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.0003406/0.4911, allocations: 388.7 kB / 1.019 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.4911, allocations: 8.031 kB / 1.019 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.563e-05/0.4911, allocations: 38.75 kB / 1.019 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.229e-05/0.4912, allocations: 8.844 kB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.4913, allocations: 192.1 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.466e-06/0.4913, allocations: 4.375 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.4914, allocations: 20.31 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001306/0.4915, allocations: 94.05 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.4915, allocations: 3.938 kB / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.4915, allocations: 0 / 1.019 GB, free: 0.6211 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.4915, allocations: 4 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.437e-05/0.4916, allocations: 43.86 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004212/0.492, allocations: 432.6 kB / 1.019 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 4.367e-05/0.4921, allocations: 41.34 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.834e-05/0.4921, allocations: 13.78 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 5.811e-06/0.4921, allocations: 0 / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.4922, allocations: 42.56 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 8.81e-07/0.4922, allocations: 0 / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001476/0.4923, allocations: 57.47 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.4924, allocations: 77.11 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.4925, allocations: 171.7 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/0.4925, allocations: 25.7 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.995e-05/0.4926, allocations: 108.2 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.005e-06/0.4926, allocations: 11.89 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.4926, allocations: 17.72 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.514e-05/0.4927, allocations: 318.8 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.47e-05/0.4927, allocations: 4 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.139e-05/0.4927, allocations: 25.7 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.421e-05/0.4928, allocations: 25.72 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.4928, allocations: 4 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.237e-05/0.4929, allocations: 61.53 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.4929, allocations: 7.938 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.4929, allocations: 0 / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.4929, allocations: 4 kB / 1.02 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.082e-05/0.493, allocations: 4 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.493, allocations: 0 / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.665e-05/0.493, allocations: 7.906 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-06/0.493, allocations: 4.062 kB / 1.02 GB, free: 14.97 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.106e-05/0.4931, allocations: 122.3 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.9e-05/0.4931, allocations: 11.84 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.115e-05/0.4931, allocations: 11.88 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.4932, allocations: 0 / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.4932, allocations: 0 / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.4932, allocations: 0 / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.4935, allocations: 470.8 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.4935, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.902e-05/0.4935, allocations: 15.86 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.4935, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.4935, allocations: 4 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4935, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4935, allocations: 0 / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.88e-05/0.4936, allocations: 81.91 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.4937, allocations: 92.94 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.4937, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.037e-05/0.4937, allocations: 0 / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.078e-05/0.4937, allocations: 11.94 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-06/0.4937, allocations: 0 / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.291e-05/0.4938, allocations: 121.3 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4938, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001744/0.494, allocations: 12.03 kB / 1.021 GB, free: 13.93 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.0002805/0.4943, allocations: 0.6093 MB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.767e-05/0.4943, allocations: 23.92 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4944, allocations: 4.156 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.417e-06/0.4944, allocations: 4 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.4945, allocations: 8 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009346/0.4954, allocations: 1.346 MB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/0.4956, allocations: 0.6885 MB / 1.024 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.806e-05/0.4957, allocations: 8.422 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.563e-05/0.4957, allocations: 23.42 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.4957, allocations: 0 / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8566/1.352, allocations: 1.479 MB / 1.025 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/1.353, allocations: 201 kB / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.633/2.985, allocations: 4 kB / 1.026 GB, free: 9.441 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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