Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.From_ton,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_9_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.001399/0.001399, 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.001627/0.001627, allocations: 188.6 kB / 16.25 MB, free: 6.602 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.335/1.335, allocations: 222.9 MB / 239.9 MB, free: 4.5 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.281/2.281, allocations: 390.2 MB / 0.6644 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 63.91 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5565/0.5581, allocations: 140.3 MB / 0.9492 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.001755/0.5599, allocations: 0.8885 MB / 0.9501 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.188e-05/0.56, allocations: 40.78 kB / 0.9501 GB, free: 8.496 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.369e-05/0.56, allocations: 6.781 kB / 0.9501 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.418e-05/0.5601, allocations: 3.938 kB / 0.9501 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.161e-05/0.5601, allocations: 3.938 kB / 0.9502 GB, free: 8.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.697e-05/0.5602, allocations: 19.67 kB / 0.9502 GB, free: 8.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.763e-05/0.5603, allocations: 52.17 kB / 0.9502 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.5604, allocations: 44.33 kB / 0.9503 GB, free: 8.414 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.88e-05/0.5605, allocations: 26.69 kB / 0.9503 GB, free: 8.395 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.766e-05/0.5605, allocations: 33.28 kB / 0.9503 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.5605, allocations: 5.5 kB / 0.9503 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.398e-06/0.5605, allocations: 5.5 kB / 0.9503 GB, free: 8.367 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.596e-05/0.5606, allocations: 22.67 kB / 0.9504 GB, free: 8.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.167e-05/0.5606, allocations: 34.67 kB / 0.9504 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.808e-05/0.5607, allocations: 66.34 kB / 0.9504 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.5607, allocations: 1.375 kB / 0.9504 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.332e-06/0.5607, allocations: 0 / 0.9504 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.5607, allocations: 0 / 0.9504 GB, free: 8.27 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.0003007/0.561, allocations: 382.5 kB / 0.9508 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.561, allocations: 9.625 kB / 0.9508 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.502e-05/0.5611, allocations: 41.5 kB / 0.9509 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.24e-05/0.5611, allocations: 12.97 kB / 0.9509 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.5612, allocations: 199.1 kB / 0.9511 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-06/0.5613, allocations: 3.125 kB / 0.9511 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.416e-05/0.5613, allocations: 9.875 kB / 0.9511 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.5614, allocations: 90.58 kB / 0.9512 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.5614, allocations: 3.938 kB / 0.9512 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.5614, allocations: 5.312 kB / 0.9512 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.5614, allocations: 2.75 kB / 0.9512 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.221e-05/0.5615, allocations: 39.23 kB / 0.9512 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003741/0.5619, allocations: 432.8 kB / 0.9516 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.495e-05/0.5619, allocations: 45.16 kB / 0.9517 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.748e-05/0.562, allocations: 20.22 kB / 0.9517 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.951e-06/0.562, allocations: 0 / 0.9517 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.13e-05/0.562, allocations: 39.66 kB / 0.9517 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.562, allocations: 0 / 0.9517 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001384/0.5621, allocations: 55.78 kB / 0.9518 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.128e-05/0.5622, allocations: 85.3 kB / 0.9519 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.5623, allocations: 163.8 kB / 0.952 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.831e-06/0.5623, allocations: 26.89 kB / 0.952 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.791e-05/0.5623, allocations: 112 kB / 0.9521 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.193e-06/0.5624, allocations: 5.188 kB / 0.9522 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.547e-05/0.5624, allocations: 16.47 kB / 0.9522 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.833e-05/0.5624, allocations: 321.7 kB / 0.9525 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.514e-05/0.5624, allocations: 2.844 kB / 0.9525 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.639e-05/0.5625, allocations: 22.38 kB / 0.9525 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.128e-05/0.5625, allocations: 23.56 kB / 0.9525 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.5625, allocations: 0 / 0.9525 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.648e-05/0.5626, allocations: 63.56 kB / 0.9526 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.5626, allocations: 8.938 kB / 0.9526 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.5626, allocations: 0 / 0.9526 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.5626, allocations: 1.25 kB / 0.9526 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.306e-05/0.5627, allocations: 13 kB / 0.9526 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.5627, allocations: 1.562 kB / 0.9526 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.541e-05/0.5627, allocations: 1.438 kB / 0.9526 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.5627, allocations: 5.234 kB / 0.9526 GB, free: 6.051 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.38e-05/0.5628, allocations: 118 kB / 0.9527 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.985e-05/0.5628, allocations: 11.84 kB / 0.9527 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.8e-05/0.5628, allocations: 10.12 kB / 0.9527 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.5628, allocations: 1.531 kB / 0.9527 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5629, allocations: 5.438 kB / 0.9528 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.5629, allocations: 0 / 0.9528 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002454/0.5631, allocations: 473.6 kB / 0.9532 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.5631, allocations: 5.203 kB / 0.9532 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.793e-05/0.5631, allocations: 7.562 kB / 0.9532 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.5631, allocations: 0 / 0.9532 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-06/0.5632, allocations: 1.062 kB / 0.9532 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5632, allocations: 0.875 kB / 0.9532 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.5632, allocations: 5.312 kB / 0.9532 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.575e-05/0.5632, allocations: 83.2 kB / 0.9533 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.698e-05/0.5633, allocations: 91.5 kB / 0.9534 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.5633, allocations: 0 / 0.9534 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.028e-05/0.5633, allocations: 5.281 kB / 0.9534 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.36e-05/0.5633, allocations: 5.375 kB / 0.9534 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-06/0.5633, allocations: 5.438 kB / 0.9534 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.436e-05/0.5634, allocations: 121.1 kB / 0.9535 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5634, allocations: 3.938 kB / 0.9535 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001844/0.5636, allocations: 7.438 kB / 0.9535 GB, free: 5.09 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.0002107/0.5638, allocations: 0.6179 MB / 0.9541 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.258e-05/0.5639, allocations: 22.95 kB / 0.9542 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.5639, allocations: 0 / 0.9542 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.999e-06/0.5639, allocations: 4.25 kB / 0.9542 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.5641, allocations: 6.688 kB / 0.9542 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008132/0.5649, allocations: 1.346 MB / 0.9555 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.994e-05/0.565, allocations: 0.7019 MB / 0.9562 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.781e-05/0.565, allocations: 4.719 kB / 0.9562 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.75e-05/0.5651, allocations: 27.11 kB / 0.9562 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.5651, allocations: 0 / 0.9562 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009901/0.575, allocations: 1.465 MB / 0.9576 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001307/0.5751, allocations: 215.5 kB / 0.9578 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.562/2.137, allocations: 0 / 0.9578 GB, free: 1.469 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches