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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001833/0.001833, 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.002339/0.002339, allocations: 194.9 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 2.64/2.64, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.787/4.787, allocations: 461.9 MB / 0.7343 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00275/0.00275, allocations: 65.75 kB / 0.8987 GB, free: 37.21 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4493/0.4521, allocations: 157.4 MB / 1.052 GB, free: 8.645 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.002178/0.4543, allocations: 0.8919 MB / 1.053 GB, free: 7.75 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001167/0.4544, allocations: 39.8 kB / 1.053 GB, free: 7.711 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.344e-05/0.4545, allocations: 4 kB / 1.053 GB, free: 7.707 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.559e-05/0.4546, allocations: 7.922 kB / 1.053 GB, free: 7.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.476e-05/0.4546, allocations: 3.938 kB / 1.053 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 4.916e-05/0.4547, allocations: 19.98 kB / 1.053 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.639e-05/0.4548, allocations: 59.84 kB / 1.053 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.4549, allocations: 51.95 kB / 1.053 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.659e-05/0.455, allocations: 23.81 kB / 1.053 GB, free: 7.543 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.794e-05/0.4551, allocations: 31.84 kB / 1.054 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.86e-05/0.4551, allocations: 8 kB / 1.054 GB, free: 7.504 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.728e-06/0.4551, allocations: 7.938 kB / 1.054 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.4551, allocations: 11.94 kB / 1.054 GB, free: 7.484 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.821e-05/0.4552, allocations: 43.73 kB / 1.054 GB, free: 7.441 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.4553, allocations: 71.98 kB / 1.054 GB, free: 7.371 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4553, allocations: 0 / 1.054 GB, free: 7.371 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4553, allocations: 0 / 1.054 GB, free: 7.371 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.4553, allocations: 0 / 1.054 GB, free: 7.371 MB / 0.8106 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.000393/0.4557, allocations: 375.3 kB / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.4557, allocations: 8.625 kB / 1.054 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.593e-05/0.4558, allocations: 38.75 kB / 1.054 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.904e-05/0.4558, allocations: 12.83 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.456, allocations: 204 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.456, allocations: 12.28 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.4561, allocations: 4.375 kB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001429/0.4562, allocations: 93.52 kB / 1.054 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.4562, allocations: 3.938 kB / 1.054 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.4562, allocations: 4 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.4562, allocations: 4 kB / 1.054 GB, free: 6.52 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.255e-05/0.4563, allocations: 35.92 kB / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004839/0.4568, allocations: 444.5 kB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.113e-05/0.4569, allocations: 41.34 kB / 1.055 GB, free: 5.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.397e-05/0.4569, allocations: 21.78 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-06/0.4569, allocations: 0 / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.457, allocations: 34.56 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 2.044e-06/0.457, allocations: 0 / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001633/0.4571, allocations: 57.47 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.4572, allocations: 81.05 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.4573, allocations: 166.4 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.4573, allocations: 25.7 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.599e-05/0.4574, allocations: 100 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.071e-05/0.4574, allocations: 11.91 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.789e-05/0.4575, allocations: 13.72 kB / 1.055 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.897e-05/0.4575, allocations: 318.8 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.856e-05/0.4576, allocations: 8 kB / 1.056 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.938e-05/0.4576, allocations: 17.72 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.828e-05/0.4576, allocations: 25.72 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.4576, allocations: 4 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.612e-05/0.4577, allocations: 57.53 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.4577, allocations: 7.938 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.4578, allocations: 0 / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.4578, allocations: 7.938 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.736e-05/0.4578, allocations: 4.062 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.86e-06/0.4578, allocations: 4 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.993e-05/0.4579, allocations: 11.84 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-06/0.4579, allocations: 0 / 1.056 GB, free: 4.887 MB / 0.8106 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 7.231e-05/0.458, allocations: 121.8 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.458, allocations: 15.78 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.244e-05/0.458, allocations: 11.88 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.458, allocations: 0 / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.458, allocations: 0 / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.4581, allocations: 0 / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003307/0.4584, allocations: 474.8 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4584, allocations: 0 / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.342e-05/0.4584, allocations: 11.98 kB / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.4584, allocations: 0 / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.4584, allocations: 4 kB / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4584, allocations: 0 / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.4585, allocations: 0 / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.082e-05/0.4585, allocations: 77.91 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.4586, allocations: 93 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.4586, allocations: 3.938 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.833e-05/0.4586, allocations: 0 / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.111e-05/0.4586, allocations: 4 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-06/0.4586, allocations: 0 / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.759e-05/0.4587, allocations: 126.1 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4587, allocations: 0 / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0001808/0.4589, allocations: 8 kB / 1.057 GB, free: 3.844 MB / 0.8106 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.0003224/0.4592, allocations: 0.6132 MB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.57e-05/0.4593, allocations: 23.92 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4593, allocations: 0 / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.232e-05/0.4594, allocations: 4 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001659/0.4595, allocations: 10.2 kB / 1.057 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.4606, allocations: 1.343 MB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002006/0.4608, allocations: 0.6924 MB / 1.059 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.316e-05/0.4608, allocations: 12.42 kB / 1.059 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.26e-05/0.4609, allocations: 27.42 kB / 1.059 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of SimCode: time 2.01e-07/0.4609, allocations: 0 / 1.059 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9333/1.394, allocations: 1.471 MB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003494/1.395, allocations: 214.6 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.338/4.733, allocations: 5.312 kB / 1.061 GB, free: 15.36 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_UnitConversions_Validation_To_ton_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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