Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.From_ton,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.UnitConversions.Validation.From_ton,fileNamePrefix="Buildings_10_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.0009181/0.0009181, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005461/0.005461, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.253/1.253, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.375/2.375, allocations: 437.8 MB / 0.7121 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003055, allocations: 8 kB / 0.8729 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5506/0.5509, allocations: 153.8 MB / 1.023 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.From_ton): time 0.0008957/0.5518, allocations: 0.5432 MB / 1.024 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0001089/0.5519, allocations: 35.84 kB / 1.024 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.717e-05/0.552, allocations: 7.938 kB / 1.024 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.013e-05/0.552, allocations: 0 / 1.024 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.335e-05/0.5521, allocations: 3.938 kB / 1.024 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 5.273e-05/0.5522, allocations: 19.98 kB / 1.024 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.732e-05/0.5522, allocations: 55.78 kB / 1.024 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.5524, allocations: 43.97 kB / 1.024 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.927e-05/0.5524, allocations: 15.81 kB / 1.024 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.989e-05/0.5525, allocations: 19.86 kB / 1.024 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.5525, allocations: 4 kB / 1.024 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.342e-06/0.5525, allocations: 0 / 1.024 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.69e-05/0.5525, allocations: 7.938 kB / 1.024 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.708e-05/0.5526, allocations: 65.42 kB / 1.024 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 8.474e-05/0.5527, allocations: 58.02 kB / 1.024 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.5527, allocations: 4 kB / 1.024 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.633e-06/0.5527, allocations: 0 / 1.024 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.5527, allocations: 0 / 1.024 GB, free: 14.93 MB / 0.7794 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.0003537/0.5531, allocations: 367.2 kB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.5531, allocations: 12.03 kB / 1.024 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.957e-05/0.5532, allocations: 42.67 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.56e-05/0.5532, allocations: 8.844 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001807/0.5534, allocations: 196.2 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.5534, allocations: 8.375 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.5534, allocations: 4.375 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000148/0.5536, allocations: 93.77 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.5536, allocations: 3.938 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.5536, allocations: 11.94 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.5536, allocations: 0 / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.865e-05/0.5537, allocations: 31.98 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004681/0.5542, allocations: 452.5 kB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.653e-05/0.5542, allocations: 37.14 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.634e-05/0.5543, allocations: 29.88 kB / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.5543, allocations: 0 / 1.025 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.5543, allocations: 30.56 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.5543, allocations: 0 / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001529/0.5545, allocations: 57.48 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.5545, allocations: 85.34 kB / 1.025 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.5546, allocations: 158.9 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 9.928e-06/0.5547, allocations: 25.7 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.929e-05/0.5547, allocations: 108 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.903e-06/0.5547, allocations: 3.906 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.412e-05/0.5548, allocations: 17.7 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.5549, allocations: 314.8 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.518e-05/0.5549, allocations: 4 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.433e-05/0.5549, allocations: 25.7 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.398e-05/0.555, allocations: 25.66 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.555, allocations: 4 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.327e-05/0.5551, allocations: 61.53 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.5551, allocations: 7.938 kB / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.5551, allocations: 0 / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.5551, allocations: 7.938 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.453e-05/0.5552, allocations: 8.062 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.5552, allocations: 0 / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.998e-05/0.5552, allocations: 7.906 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-06/0.5552, allocations: 0 / 1.026 GB, free: 12.45 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.819e-05/0.5553, allocations: 114.4 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.365e-05/0.5553, allocations: 11.84 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.292e-05/0.5554, allocations: 15.86 kB / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.5554, allocations: 0 / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.5554, allocations: 0 / 1.026 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.5554, allocations: 4 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003325/0.5557, allocations: 474.7 kB / 1.027 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.5557, allocations: 0 / 1.027 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.033e-05/0.5558, allocations: 4 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.5558, allocations: 0 / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.5558, allocations: 4 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5558, allocations: 0 / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.5558, allocations: 3.984 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.797e-05/0.5559, allocations: 81.84 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/0.5559, allocations: 92.94 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.5559, allocations: 4 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.926e-05/0.556, allocations: 0 / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.556, allocations: 4 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.556, allocations: 4.031 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.556e-05/0.5561, allocations: 121.5 kB / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5561, allocations: 0 / 1.027 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001802/0.5563, allocations: 8 kB / 1.027 GB, free: 11.41 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.0003017/0.5566, allocations: 0.6209 MB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.753e-05/0.5567, allocations: 16 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5567, allocations: 0 / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.217e-05/0.5567, allocations: 7.938 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001525/0.5568, allocations: 10.67 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.5579, allocations: 1.338 MB / 1.029 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001991/0.5581, allocations: 0.6887 MB / 1.03 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.932e-05/0.5581, allocations: 24.23 kB / 1.03 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/0.5581, allocations: 23.44 kB / 1.03 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.5582, allocations: 0 / 1.03 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01003/0.5682, allocations: 1.364 MB / 1.031 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000167/0.5684, allocations: 209.7 kB / 1.031 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.488/2.056, allocations: 0 / 1.031 GB, free: 7.027 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_UnitConversions_Validation_From_ton.fmu > Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_UnitConversions_Validation_From_ton.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.UnitConversions.Validation.From_ton.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches