Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,fileNamePrefix="Buildings_latest_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.006515/0.006515, allocations: 98.55 kB / 15.73 MB, free: 6.047 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.001526/0.001526, allocations: 194 kB / 16.67 MB, free: 5.969 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.757/2.757, allocations: 469.4 MB / 0.7422 GB, free: 7.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 72.11 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.264, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001891/0.2659, allocations: 0.8304 MB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0001158/0.2661, allocations: 39.78 kB / 1.221 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.853e-05/0.2661, allocations: 4 kB / 1.221 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.658e-05/0.2662, allocations: 7.875 kB / 1.221 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.839e-05/0.2663, allocations: 11.86 kB / 1.221 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 4.981e-05/0.2663, allocations: 19.98 kB / 1.221 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.26e-05/0.2664, allocations: 63.84 kB / 1.221 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.2666, allocations: 47.84 kB / 1.221 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.527e-05/0.2666, allocations: 31.8 kB / 1.221 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.11e-05/0.2667, allocations: 31.8 kB / 1.221 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.631e-05/0.2667, allocations: 4 kB / 1.221 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.278e-06/0.2667, allocations: 8 kB / 1.221 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.234e-05/0.2668, allocations: 19.92 kB / 1.221 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.969e-05/0.2668, allocations: 35.73 kB / 1.221 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000117/0.2669, allocations: 75.58 kB / 1.221 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2669, allocations: 4 kB / 1.221 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2669, allocations: 0 / 1.221 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.267, allocations: 0 / 1.221 GB, free: 13.46 MB / 0.9825 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.0003818/0.2673, allocations: 383.1 kB / 1.221 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.2674, allocations: 8.031 kB / 1.221 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.52e-05/0.2674, allocations: 38.75 kB / 1.221 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.2675, allocations: 12.84 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.2676, allocations: 188.2 kB / 1.222 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.587e-06/0.2677, allocations: 8.375 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.2677, allocations: 4.375 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001481/0.2678, allocations: 99.8 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.2678, allocations: 7.938 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.2679, allocations: 0 / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.2679, allocations: 4 kB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.439e-05/0.268, allocations: 39.92 kB / 1.222 GB, free: 12.57 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004837/0.2684, allocations: 432.7 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.122e-05/0.2685, allocations: 49.23 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.781e-05/0.2686, allocations: 21.77 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 5.841e-06/0.2686, allocations: 0 / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.2686, allocations: 34.56 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.2686, allocations: 0 / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001637/0.2688, allocations: 61.61 kB / 1.222 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.2688, allocations: 77.11 kB / 1.222 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.2689, allocations: 164.2 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.269, allocations: 25.7 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/0.269, allocations: 96.09 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.243e-05/0.269, allocations: 11.94 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.348e-05/0.2691, allocations: 21.67 kB / 1.223 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.896e-05/0.2692, allocations: 318.9 kB / 1.223 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.772e-05/0.2692, allocations: 11.98 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.061e-05/0.2692, allocations: 17.72 kB / 1.223 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.994e-05/0.2693, allocations: 29.66 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2693, allocations: 0 / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.658e-05/0.2694, allocations: 61.58 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.2694, allocations: 13.81 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.2694, allocations: 4 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.2694, allocations: 4 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.609e-05/0.2695, allocations: 4 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2695, allocations: 4 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.323e-05/0.2695, allocations: 7.938 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.2695, allocations: 3.984 kB / 1.223 GB, free: 10.96 MB / 0.9825 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.81e-05/0.2696, allocations: 119.2 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.684e-05/0.2697, allocations: 11.89 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.449e-05/0.2697, allocations: 15.88 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.2697, allocations: 0 / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2697, allocations: 0 / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.2697, allocations: 0 / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003616/0.2701, allocations: 474.7 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2701, allocations: 0 / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.196e-05/0.2701, allocations: 4 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.2701, allocations: 3.984 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.04e-06/0.2701, allocations: 4.062 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.2702, allocations: 4 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2702, allocations: 3.938 kB / 1.224 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.378e-05/0.2702, allocations: 73.89 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.2703, allocations: 89.05 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.2703, allocations: 4 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.239e-05/0.2703, allocations: 4.031 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.087e-05/0.2704, allocations: 4 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.2704, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.171e-05/0.2705, allocations: 122.1 kB / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2705, allocations: 0 / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0001968/0.2707, allocations: 8 kB / 1.224 GB, free: 9.926 MB / 0.9825 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.0003505/0.271, allocations: 0.6171 MB / 1.225 GB, free: 9.277 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 7.903e-05/0.2711, allocations: 23.88 kB / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2711, allocations: 0 / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.311e-05/0.2711, allocations: 7.984 kB / 1.225 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.2713, allocations: 8 kB / 1.225 GB, free: 9.238 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.2724, allocations: 1.335 MB / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.2726, allocations: 0.6885 MB / 1.227 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.068e-05/0.2726, allocations: 8.422 kB / 1.227 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.042e-05/0.2727, allocations: 23.38 kB / 1.227 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of SimCode: time 3.8e-07/0.2727, allocations: 4 kB / 1.227 GB, free: 7.055 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.289, allocations: 1.579 MB / 1.228 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.14/7.429, allocations: 4.516 kB / 1.228 GB, free: 5.578 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton.fmu > Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_UnitConversions_Validation_To_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches