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.001265/0.001269, allocations: 108 kB / 15.61 MB, free: 152 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.001285/0.001285, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.339/1.339, 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 9.1.3-maint.9.1.x/package.mo): time 2.328/2.328, allocations: 390.2 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.91 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5575/0.5589, allocations: 140.4 MB / 0.9497 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001809/0.5607, allocations: 0.8201 MB / 0.9505 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.235e-05/0.5608, allocations: 41.28 kB / 0.9506 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.326e-05/0.5609, allocations: 1.375 kB / 0.9506 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.311e-05/0.5609, allocations: 11.86 kB / 0.9506 GB, free: 8.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.527e-05/0.561, allocations: 9.312 kB / 0.9506 GB, free: 8.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 3.831e-05/0.561, allocations: 14.73 kB / 0.9506 GB, free: 8.484 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.988e-05/0.5611, allocations: 68.53 kB / 0.9507 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001203/0.5612, allocations: 44.45 kB / 0.9507 GB, free: 8.414 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.638e-05/0.5613, allocations: 24.17 kB / 0.9507 GB, free: 8.398 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.747e-05/0.5613, allocations: 27.92 kB / 0.9508 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.5613, allocations: 9.5 kB / 0.9508 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.271e-05/0.5614, allocations: 6.875 kB / 0.9508 GB, free: 8.371 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.527e-05/0.5614, allocations: 21.23 kB / 0.9508 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.842e-05/0.5614, allocations: 26.69 kB / 0.9508 GB, free: 8.332 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.806e-05/0.5615, allocations: 79.69 kB / 0.9509 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.5615, allocations: 0 / 0.9509 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.192e-06/0.5615, allocations: 0 / 0.9509 GB, free: 8.27 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.5615, allocations: 0 / 0.9509 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.0003002/0.5618, allocations: 378.5 kB / 0.9513 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.5619, allocations: 13.62 kB / 0.9513 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.62e-05/0.5619, allocations: 45.42 kB / 0.9513 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.446e-05/0.5619, allocations: 10.34 kB / 0.9513 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.5621, allocations: 185.8 kB / 0.9515 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.5621, allocations: 7.281 kB / 0.9515 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.5621, allocations: 13.17 kB / 0.9515 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.5622, allocations: 94.75 kB / 0.9516 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.5622, allocations: 3.938 kB / 0.9516 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.5622, allocations: 8.906 kB / 0.9516 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.5623, allocations: 2.875 kB / 0.9516 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.898e-05/0.5623, allocations: 31.33 kB / 0.9516 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003754/0.5627, allocations: 441.4 kB / 0.9521 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.591e-05/0.5628, allocations: 37.28 kB / 0.9521 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.864e-05/0.5628, allocations: 23.48 kB / 0.9521 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 6.382e-06/0.5628, allocations: 3.938 kB / 0.9521 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.281e-05/0.5628, allocations: 32 kB / 0.9522 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.694e-06/0.5628, allocations: 0 / 0.9522 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001379/0.563, allocations: 63.83 kB / 0.9522 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/0.563, allocations: 77.11 kB / 0.9523 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.5631, allocations: 164.3 kB / 0.9525 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.019e-06/0.5631, allocations: 25.7 kB / 0.9525 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.54e-05/0.5632, allocations: 111.9 kB / 0.9526 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.492e-06/0.5632, allocations: 5.406 kB / 0.9526 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.597e-05/0.5632, allocations: 17.14 kB / 0.9526 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.549e-05/0.5632, allocations: 326.1 kB / 0.9529 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.529e-05/0.5633, allocations: 6.906 kB / 0.9529 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.748e-05/0.5633, allocations: 22.92 kB / 0.9529 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.261e-05/0.5633, allocations: 25.41 kB / 0.953 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.5633, allocations: 1.625 kB / 0.953 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.016e-05/0.5634, allocations: 54.09 kB / 0.953 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.5634, allocations: 13.09 kB / 0.953 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.5634, allocations: 1.844 kB / 0.953 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.5634, allocations: 0 / 0.953 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.442e-05/0.5635, allocations: 17.44 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.5635, allocations: 1.156 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.866e-05/0.5635, allocations: 1.5 kB / 0.9531 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-06/0.5636, allocations: 1.438 kB / 0.9531 GB, free: 6.047 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.415e-05/0.5636, allocations: 114.4 kB / 0.9532 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.336e-05/0.5636, allocations: 11 kB / 0.9532 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.905e-05/0.5637, allocations: 15.61 kB / 0.9532 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.5637, allocations: 0 / 0.9532 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.5637, allocations: 1.281 kB / 0.9532 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.5637, allocations: 0 / 0.9532 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.5639, allocations: 474.7 kB / 0.9536 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.564, allocations: 0 / 0.9536 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.771e-05/0.564, allocations: 4.188 kB / 0.9536 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.564, allocations: 4.062 kB / 0.9537 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.564, allocations: 5.375 kB / 0.9537 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.564, allocations: 0 / 0.9537 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.564, allocations: 5.391 kB / 0.9537 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.778e-05/0.5641, allocations: 81.91 kB / 0.9537 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.903e-05/0.5641, allocations: 92.72 kB / 0.9538 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.5641, allocations: 5.344 kB / 0.9538 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.023e-05/0.5641, allocations: 4.031 kB / 0.9538 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-06/0.5642, allocations: 1.312 kB / 0.9538 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.5642, allocations: 1.375 kB / 0.9538 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.194e-05/0.5642, allocations: 120.1 kB / 0.954 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5642, allocations: 0 / 0.954 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001928/0.5644, allocations: 11.12 kB / 0.954 GB, free: 5.094 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.0002059/0.5646, allocations: 0.616 MB / 0.9546 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.761e-05/0.5647, allocations: 14 kB / 0.9546 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.542e-06/0.5647, allocations: 1.344 kB / 0.9546 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.1e-05/0.5647, allocations: 11.34 kB / 0.9546 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001501/0.5649, allocations: 13.45 kB / 0.9546 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008046/0.5657, allocations: 1.314 MB / 0.9559 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.644e-05/0.5658, allocations: 0.7021 MB / 0.9566 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.058e-05/0.5659, allocations: 14.06 kB / 0.9566 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.629e-05/0.5659, allocations: 21.91 kB / 0.9566 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of SimCode: time 2.81e-07/0.5659, allocations: 1.188 kB / 0.9566 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01557/0.5815, allocations: 1.54 MB / 0.9581 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.274/7.856, allocations: 6.672 kB / 0.9581 GB, free: 1.637 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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