Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.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: translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") translateModel(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|reaToInt.u|reaToInt.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001397/0.001397, allocations: 193.6 kB / 16.14 MB, free: 6.699 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.434/1.434, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.86/2.86, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 63.66 kB / 0.8984 GB, free: 37.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3628, allocations: 157.4 MB / 1.052 GB, free: 8.859 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.001992/0.3648, allocations: 0.6742 MB / 1.053 GB, free: 8.184 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008814/0.3657, allocations: 0.8273 MB / 1.054 GB, free: 7.344 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.967e-05/0.3658, allocations: 0 / 1.054 GB, free: 7.344 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.549e-05/0.3658, allocations: 3.984 kB / 1.054 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.174e-05/0.3659, allocations: 3.938 kB / 1.054 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001303/0.366, allocations: 12 kB / 1.054 GB, free: 7.324 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.802e-05/0.3661, allocations: 23.98 kB / 1.054 GB, free: 7.301 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.782e-05/0.3662, allocations: 4 kB / 1.054 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.978e-05/0.3663, allocations: 15.86 kB / 1.054 GB, free: 7.281 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.632e-05/0.3663, allocations: 19.97 kB / 1.054 GB, free: 7.262 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.793e-05/0.3664, allocations: 0 / 1.054 GB, free: 7.262 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.161e-05/0.3664, allocations: 7.938 kB / 1.054 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.718e-05/0.3664, allocations: 3.938 kB / 1.054 GB, free: 7.25 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.3664, allocations: 8 kB / 1.054 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.299e-05/0.3665, allocations: 23.89 kB / 1.054 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3665, allocations: 0 / 1.054 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.71e-07/0.3665, allocations: 0 / 1.054 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.3665, allocations: 0 / 1.054 GB, free: 7.219 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004769/0.367, allocations: 339.8 kB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3671, allocations: 8.031 kB / 1.054 GB, free: 6.828 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.236e-05/0.3671, allocations: 8.844 kB / 1.054 GB, free: 6.82 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.3672, allocations: 168.3 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.3673, allocations: 384 / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.3673, allocations: 4.359 kB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.3675, allocations: 50.23 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.3675, allocations: 192 / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.3675, allocations: 11.88 kB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/0.3675, allocations: 0 / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001854/0.3677, allocations: 47.94 kB / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000362/0.3681, allocations: 249 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.3682, allocations: 42.44 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.343e-05/0.3683, allocations: 24.91 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.3683, allocations: 7.984 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.3684, allocations: 34.5 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3684, allocations: 0 / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003671/0.3688, allocations: 85.64 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.3688, allocations: 51.41 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.899e-05/0.3689, allocations: 106 kB / 1.055 GB, free: 5.812 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.3689, allocations: 25.7 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.359e-05/0.3689, allocations: 80.14 kB / 1.055 GB, free: 5.699 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.369, allocations: 11.91 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.369, allocations: 9.719 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3691, allocations: 314.8 kB / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.249e-05/0.3692, allocations: 19.97 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.019e-05/0.3693, allocations: 19.92 kB / 1.055 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001602/0.3695, allocations: 44.81 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3695, allocations: 4 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002063/0.3697, allocations: 69.59 kB / 1.055 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.3697, allocations: 4 kB / 1.055 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3697, allocations: 4.094 kB / 1.055 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.3698, allocations: 0 / 1.055 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.3699, allocations: 11.98 kB / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.3699, allocations: 0 / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.788e-05/0.37, allocations: 7.938 kB / 1.055 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.37, allocations: 0 / 1.055 GB, free: 5.164 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 7.266e-05/0.37, allocations: 117.8 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.3701, allocations: 11.84 kB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.727e-05/0.3701, allocations: 7.125 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3701, allocations: 0 / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3701, allocations: 0 / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.3701, allocations: 0 / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/0.3703, allocations: 165.6 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3703, allocations: 4 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.323e-05/0.3704, allocations: 4 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3704, allocations: 0 / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.3704, allocations: 7.984 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3704, allocations: 3.938 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3704, allocations: 4 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002484/0.3707, allocations: 163.5 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.3707, allocations: 77.11 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.521e-05/0.3707, allocations: 4 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.9e-05/0.3708, allocations: 7.984 kB / 1.056 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.3709, allocations: 4.031 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.3709, allocations: 7.984 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.028e-05/0.3709, allocations: 87.22 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3709, allocations: 0 / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002176/0.3712, allocations: 4 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * 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.0001047/0.3713, allocations: 95.25 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000225/0.3715, allocations: 43.95 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.3715, allocations: 0 / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.3716, allocations: 23.97 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.372, allocations: 10.61 kB / 1.056 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003147/0.3723, allocations: 111.1 kB / 1.056 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.3725, allocations: 0.6809 MB / 1.057 GB, free: 3.383 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.335e-05/0.3726, allocations: 4.125 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.321e-05/0.3726, allocations: 15.44 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of SimCode: time 1.442e-06/0.3726, allocations: 0 / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of Templates: time 0.00242/0.375, allocations: 0.5191 MB / 1.058 GB, free: 2.848 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Conversions_Validation_RealToInteger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches