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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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: translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") translateModel(Buildings.Controls.OBC.UnitConversions.Validation.To_ton,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sub.y|sub1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001461/0.001461, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.347/1.347, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.651/2.651, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 62.84 kB / 0.9245 GB, free: 24 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7338/0.7357, allocations: 162.2 MB / 1.083 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.UnitConversions.Validation.To_ton): time 0.001944/0.7377, allocations: 0.8234 MB / 1.084 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 9.317e-05/0.7378, allocations: 40.91 kB / 1.084 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.806e-05/0.7379, allocations: 5.781 kB / 1.084 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.909e-05/0.7379, allocations: 9.281 kB / 1.084 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.775e-05/0.738, allocations: 10.05 kB / 1.084 GB, free: 1.074 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 4.904e-05/0.7381, allocations: 20.84 kB / 1.084 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.89e-05/0.7382, allocations: 58.25 kB / 1.084 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.7383, allocations: 41.69 kB / 1.084 GB, free: 1.016 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.263e-05/0.7383, allocations: 25.8 kB / 1.084 GB, free: 1 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.192e-05/0.7384, allocations: 25.75 kB / 1.084 GB, free: 0.9844 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.7384, allocations: 10.84 kB / 1.084 GB, free: 0.9805 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.063e-05/0.7384, allocations: 5.281 kB / 1.084 GB, free: 0.9805 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.79e-05/0.7385, allocations: 16.52 kB / 1.084 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.327e-05/0.7385, allocations: 36.8 kB / 1.084 GB, free: 0.9414 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.494e-05/0.7386, allocations: 68.41 kB / 1.084 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.7386, allocations: 1.125 kB / 1.084 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7386, allocations: 4 kB / 1.084 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.7386, allocations: 0 / 1.084 GB, free: 0.9102 MB / 0.8262 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.0003201/0.7389, allocations: 385.4 kB / 1.084 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.739, allocations: 8.656 kB / 1.084 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.895e-05/0.739, allocations: 9.562 kB / 1.084 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.7392, allocations: 200.4 kB / 1.085 GB, free: 300 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.7392, allocations: 3.969 kB / 1.085 GB, free: 300 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/0.7392, allocations: 9.969 kB / 1.085 GB, free: 296 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.7394, allocations: 90.2 kB / 1.085 GB, free: 228 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.7394, allocations: 4.672 kB / 1.085 GB, free: 224 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.7394, allocations: 8.469 kB / 1.085 GB, free: 216 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-06/0.7394, allocations: 3.188 kB / 1.085 GB, free: 216 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.915e-05/0.7395, allocations: 38.97 kB / 1.085 GB, free: 200 kB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005021/0.74, allocations: 442.8 kB / 1.085 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 6.349e-05/0.7401, allocations: 42 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.099e-05/0.7401, allocations: 17.47 kB / 1.085 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.033e-05/0.7401, allocations: 0 / 1.085 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.7402, allocations: 40.73 kB / 1.085 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/0.7402, allocations: 0 / 1.085 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0001709/0.7403, allocations: 56.62 kB / 1.085 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.7404, allocations: 78.98 kB / 1.085 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.7406, allocations: 158.5 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.7406, allocations: 27.19 kB / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.635e-05/0.7407, allocations: 103 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.055e-06/0.7407, allocations: 9.719 kB / 1.086 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.7407, allocations: 18.88 kB / 1.086 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.7409, allocations: 323.9 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.907e-05/0.7409, allocations: 3.828 kB / 1.086 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.395e-05/0.7409, allocations: 24.7 kB / 1.086 GB, free: 14.91 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.937e-05/0.741, allocations: 26.59 kB / 1.086 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.741, allocations: 1.406 kB / 1.086 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.566e-05/0.7411, allocations: 60.08 kB / 1.086 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.7411, allocations: 9.391 kB / 1.086 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.7411, allocations: 3.938 kB / 1.086 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.7411, allocations: 1.312 kB / 1.086 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.65e-05/0.7412, allocations: 10.52 kB / 1.086 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.7412, allocations: 0.7188 kB / 1.086 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.103e-05/0.7412, allocations: 6.188 kB / 1.086 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-06/0.7412, allocations: 1.125 kB / 1.086 GB, free: 14.82 MB / 0.8419 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 0.0001058/0.7413, allocations: 120.2 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.456e-05/0.7414, allocations: 7.938 kB / 1.086 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.7414, allocations: 16.31 kB / 1.086 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.7414, allocations: 1.188 kB / 1.086 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.7414, allocations: 1.375 kB / 1.086 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.7414, allocations: 0.7031 kB / 1.086 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004207/0.7419, allocations: 470.6 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.7419, allocations: 0.5 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.306e-05/0.7419, allocations: 7.734 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.7419, allocations: 5.812 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-06/0.7419, allocations: 1.062 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.7419, allocations: 0 / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.7419, allocations: 1.094 kB / 1.087 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.075e-05/0.742, allocations: 84.75 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.736e-05/0.7421, allocations: 90.5 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.7421, allocations: 2 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.108e-05/0.7421, allocations: 3.938 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.549e-05/0.7422, allocations: 2.922 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.7422, allocations: 0.5 kB / 1.087 GB, free: 14 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 9.584e-05/0.7423, allocations: 124.7 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7423, allocations: 1.469 kB / 1.087 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001885/0.7425, allocations: 14.47 kB / 1.087 GB, free: 13.9 MB / 0.8419 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.0001069/0.7426, allocations: 100.5 kB / 1.087 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 8.443e-05/0.7427, allocations: 16.53 kB / 1.087 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.7427, allocations: 0 / 1.087 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.187e-05/0.7427, allocations: 8.344 kB / 1.087 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.7428, allocations: 12.16 kB / 1.087 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003155/0.7432, allocations: 190.2 kB / 1.087 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.7435, allocations: 0.6922 MB / 1.088 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.369e-05/0.7435, allocations: 15.66 kB / 1.088 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.7435, allocations: 0 / 1.088 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of Templates: time 0.002442/0.746, allocations: 0.863 MB / 1.089 GB, free: 12.83 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.UnitConversions.Validation.To_ton -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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