Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_9_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.001445/0.001445, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001719/0.001719, allocations: 191 kB / 16.25 MB, free: 6.637 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.327/1.327, 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 9.1.3-maint.9.1.x/package.mo): time 2.303/2.303, allocations: 390.3 MB / 0.6644 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.89 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5257/0.527, allocations: 140.4 MB / 0.9492 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001773/0.5288, allocations: 0.8767 MB / 0.9501 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.153e-05/0.5289, allocations: 41.28 kB / 0.9501 GB, free: 8.387 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.439e-05/0.5289, allocations: 5.562 kB / 0.9501 GB, free: 8.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.639e-05/0.529, allocations: 7.922 kB / 0.9501 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.876e-05/0.5291, allocations: 1.531 kB / 0.9501 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.327e-05/0.5291, allocations: 14.86 kB / 0.9502 GB, free: 8.363 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.276e-05/0.5292, allocations: 64.73 kB / 0.9502 GB, free: 8.324 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.5293, allocations: 40.45 kB / 0.9503 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.664e-05/0.5294, allocations: 22.75 kB / 0.9503 GB, free: 8.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.987e-05/0.5294, allocations: 41.27 kB / 0.9503 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.5294, allocations: 5.5 kB / 0.9503 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.013e-05/0.5295, allocations: 6.875 kB / 0.9503 GB, free: 8.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.483e-05/0.5295, allocations: 13.31 kB / 0.9503 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.144e-05/0.5295, allocations: 30.67 kB / 0.9504 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.076e-05/0.5296, allocations: 71.72 kB / 0.9504 GB, free: 8.16 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.5296, allocations: 3.938 kB / 0.9504 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.383e-06/0.5296, allocations: 0 / 0.9504 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.5296, allocations: 0 / 0.9504 GB, free: 8.156 MB / 0.7169 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.000307/0.5299, allocations: 382.5 kB / 0.9508 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.53, allocations: 13.62 kB / 0.9508 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.503e-05/0.53, allocations: 37.5 kB / 0.9509 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.427e-05/0.53, allocations: 8.969 kB / 0.9509 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.5302, allocations: 199.2 kB / 0.9511 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.494e-06/0.5302, allocations: 3.125 kB / 0.9511 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/0.5302, allocations: 9.875 kB / 0.9511 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.5303, allocations: 88.64 kB / 0.9512 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.5304, allocations: 9.297 kB / 0.9512 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.5304, allocations: 8 kB / 0.9512 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.5304, allocations: 2.75 kB / 0.9512 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.518e-05/0.5305, allocations: 39.17 kB / 0.9512 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003669/0.5308, allocations: 432.6 kB / 0.9516 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.682e-05/0.5309, allocations: 41.31 kB / 0.9517 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.759e-05/0.5309, allocations: 20.59 kB / 0.9517 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.5309, allocations: 0 / 0.9517 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.111e-05/0.5309, allocations: 31.94 kB / 0.9517 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.5309, allocations: 0 / 0.9517 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001408/0.5311, allocations: 67.22 kB / 0.9518 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.054e-05/0.5311, allocations: 82.42 kB / 0.9519 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.5312, allocations: 159.4 kB / 0.952 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.08e-06/0.5312, allocations: 29.64 kB / 0.952 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.499e-05/0.5313, allocations: 112.7 kB / 0.9521 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.891e-06/0.5313, allocations: 3.906 kB / 0.9521 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.537e-05/0.5313, allocations: 17.38 kB / 0.9522 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.637e-05/0.5314, allocations: 325.4 kB / 0.9525 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.571e-05/0.5314, allocations: 4.156 kB / 0.9525 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.679e-05/0.5314, allocations: 21.84 kB / 0.9525 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.217e-05/0.5314, allocations: 26.66 kB / 0.9525 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.5314, allocations: 0 / 0.9525 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.909e-05/0.5315, allocations: 63.28 kB / 0.9526 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.5315, allocations: 13.22 kB / 0.9526 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.5315, allocations: 1.344 kB / 0.9526 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.5316, allocations: 0 / 0.9526 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.27e-05/0.5316, allocations: 5.906 kB / 0.9526 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.5316, allocations: 1.625 kB / 0.9526 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.656e-05/0.5317, allocations: 1.531 kB / 0.9526 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.5317, allocations: 5.516 kB / 0.9526 GB, free: 5.934 MB / 0.7169 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 4.515e-05/0.5317, allocations: 113.5 kB / 0.9527 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.065e-05/0.5318, allocations: 11.75 kB / 0.9527 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.813e-05/0.5318, allocations: 14.66 kB / 0.9527 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.5318, allocations: 1.312 kB / 0.9527 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.5318, allocations: 0 / 0.9527 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.5318, allocations: 1.25 kB / 0.9527 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002437/0.532, allocations: 473.8 kB / 0.9532 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5321, allocations: 5.297 kB / 0.9532 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.785e-05/0.5321, allocations: 2.469 kB / 0.9532 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.5321, allocations: 4.906 kB / 0.9532 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-06/0.5321, allocations: 1.406 kB / 0.9532 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.5321, allocations: 0 / 0.9532 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.5321, allocations: 0.875 kB / 0.9532 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.481e-05/0.5322, allocations: 82.91 kB / 0.9533 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.727e-05/0.5322, allocations: 91.81 kB / 0.9534 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.5322, allocations: 5.406 kB / 0.9534 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.981e-05/0.5322, allocations: 0 / 0.9534 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.394e-05/0.5323, allocations: 1.344 kB / 0.9534 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.5323, allocations: 5.062 kB / 0.9534 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.248e-05/0.5323, allocations: 125.4 kB / 0.9535 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5323, allocations: 1.156 kB / 0.9535 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001882/0.5325, allocations: 6.188 kB / 0.9535 GB, free: 4.984 MB / 0.7169 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.0002017/0.5327, allocations: 0.6253 MB / 0.9541 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.04e-05/0.5328, allocations: 18.33 kB / 0.9541 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5328, allocations: 0 / 0.9541 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.969e-06/0.5328, allocations: 9.031 kB / 0.9542 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.533, allocations: 6.531 kB / 0.9542 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007957/0.5338, allocations: 1.346 MB / 0.9555 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.04e-05/0.5339, allocations: 0.7019 MB / 0.9562 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.049e-05/0.5339, allocations: 4.812 kB / 0.9562 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.604e-05/0.534, allocations: 22.92 kB / 0.9562 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.534, allocations: 0 / 0.9562 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01016/0.5441, allocations: 1.466 MB / 0.9576 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001284/0.5443, allocations: 214.4 kB / 0.9578 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/2.167, allocations: 1.969 kB / 0.9578 GB, free: 1.355 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches