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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.0009624/0.0009622, allocations: 88.77 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 180.8 kB / 16.92 MB, free: 6.23 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.572/1.572, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.873/2.873, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003845/0.0003846, allocations: 11.47 kB / 0.9034 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3587, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.0009103/0.3596, allocations: 347.4 kB / 1.06 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001043/0.3607, allocations: 0.8196 MB / 1.06 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.303e-05/0.3608, allocations: 0 / 1.06 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.037e-05/0.3608, allocations: 3.938 kB / 1.06 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.493e-05/0.3609, allocations: 4 kB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001604/0.361, allocations: 19.98 kB / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.33e-05/0.3611, allocations: 23.88 kB / 1.061 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.3612, allocations: 11.98 kB / 1.061 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.076e-05/0.3613, allocations: 4 kB / 1.061 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.522e-05/0.3614, allocations: 19.91 kB / 1.061 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.847e-05/0.3614, allocations: 0 / 1.061 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.012e-05/0.3614, allocations: 0 / 1.061 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.526e-05/0.3614, allocations: 0 / 1.061 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.776e-05/0.3615, allocations: 45.62 kB / 1.061 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.135e-05/0.3616, allocations: 11.97 kB / 1.061 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3616, allocations: 0 / 1.061 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3616, allocations: 0 / 1.061 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.3616, allocations: 0 / 1.061 GB, free: 3.648 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.0004993/0.3621, allocations: 339.8 kB / 1.061 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3621, allocations: 8.031 kB / 1.061 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.637e-05/0.3622, allocations: 8.938 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.3623, allocations: 168.2 kB / 1.061 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.3624, allocations: 8.297 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.358e-05/0.3624, allocations: 4.375 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.3626, allocations: 54.23 kB / 1.061 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.3626, allocations: 192 / 1.061 GB, free: 2.977 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.3626, allocations: 3.938 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3626, allocations: 0 / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.3628, allocations: 51.95 kB / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004193/0.3633, allocations: 257 kB / 1.061 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001598/0.3634, allocations: 50.5 kB / 1.062 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.3635, allocations: 32.83 kB / 1.062 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.741e-05/0.3636, allocations: 0 / 1.062 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.3636, allocations: 38.56 kB / 1.062 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.3636, allocations: 3.938 kB / 1.062 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0004132/0.364, allocations: 97.64 kB / 1.062 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.3641, allocations: 59.47 kB / 1.062 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.399e-05/0.3642, allocations: 101.8 kB / 1.062 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.3642, allocations: 29.64 kB / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.213e-05/0.3642, allocations: 80.14 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.3643, allocations: 7.906 kB / 1.062 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.3643, allocations: 9.719 kB / 1.062 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.3644, allocations: 314.8 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.3645, allocations: 27.97 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.501e-05/0.3646, allocations: 19.98 kB / 1.062 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.3648, allocations: 56.88 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3648, allocations: 0 / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002302/0.3651, allocations: 77.61 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.3651, allocations: 21.05 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.3651, allocations: 0 / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.3651, allocations: 0 / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.3652, allocations: 8 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.3652, allocations: 3.984 kB / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.904e-05/0.3653, allocations: 8 kB / 1.062 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/0.3653, allocations: 0 / 1.062 GB, free: 1.512 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 8.488e-05/0.3654, allocations: 113.8 kB / 1.063 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.3654, allocations: 11.89 kB / 1.063 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.3655, allocations: 7.125 kB / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3655, allocations: 0 / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3655, allocations: 0 / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.3655, allocations: 192 / 1.063 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.3657, allocations: 161.6 kB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3657, allocations: 0 / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.488e-05/0.3658, allocations: 11.98 kB / 1.063 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3658, allocations: 7.984 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.3658, allocations: 0 / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.3658, allocations: 3.984 kB / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3658, allocations: 0 / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002883/0.3661, allocations: 183.4 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.969e-05/0.3661, allocations: 77.11 kB / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.3662, allocations: 0 / 1.063 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.733e-05/0.3663, allocations: 11.98 kB / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-05/0.3663, allocations: 8 kB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-06/0.3663, allocations: 0 / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.238e-05/0.3664, allocations: 87.2 kB / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3664, allocations: 0 / 1.063 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002172/0.3666, allocations: 11.97 kB / 1.063 GB, free: 0.7383 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.0001263/0.3667, allocations: 95.25 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000238/0.367, allocations: 51.95 kB / 1.063 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.367, allocations: 4.062 kB / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.614e-05/0.3671, allocations: 23.92 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.3674, allocations: 14.19 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003508/0.3678, allocations: 130.4 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.3681, allocations: 0.681 MB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.073e-05/0.3681, allocations: 7.438 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of SimCode: time 4.1e-07/0.3681, allocations: 0 / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of Templates: time 0.00196/0.3701, allocations: 0.5958 MB / 1.065 GB, free: 15.07 MB / 0.8262 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/jenkins1/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