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.001897/0.001898, allocations: 100.1 kB / 15.88 MB, free: 12 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.002413/0.002413, allocations: 200 kB / 16.79 MB, free: 6.828 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.435/1.435, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.743/2.743, allocations: 461.9 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 69.2 kB / 0.8991 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2825, allocations: 157.4 MB / 1.053 GB, free: 8.305 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Conversions.Validation.RealToInteger): time 0.002147/0.2847, allocations: 0.6781 MB / 1.053 GB, free: 7.625 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009622/0.2857, allocations: 0.8195 MB / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.534e-05/0.2857, allocations: 0 / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.461e-05/0.2858, allocations: 0 / 1.054 GB, free: 6.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.894e-05/0.2859, allocations: 15.91 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001512/0.2861, allocations: 12 kB / 1.054 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.775e-05/0.2861, allocations: 23.98 kB / 1.054 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.935e-05/0.2862, allocations: 4 kB / 1.054 GB, free: 6.738 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.23e-05/0.2863, allocations: 19.86 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.188e-05/0.2864, allocations: 7.984 kB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.973e-05/0.2864, allocations: 3.984 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.226e-05/0.2864, allocations: 4 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.999e-05/0.2864, allocations: 7.938 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.753e-05/0.2865, allocations: 4 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.389e-05/0.2866, allocations: 19.91 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2866, allocations: 0 / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.865e-06/0.2866, allocations: 4 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.2866, allocations: 0 / 1.054 GB, free: 6.668 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.000459/0.287, allocations: 339.8 kB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.2871, allocations: 8.031 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.2871, allocations: 8.844 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.2872, allocations: 164.3 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.2873, allocations: 4.375 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.2873, allocations: 4.375 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.2875, allocations: 54.23 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.2875, allocations: 192 / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.2875, allocations: 11.86 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.2875, allocations: 0 / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.2877, allocations: 31.97 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003462/0.2881, allocations: 249 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/0.2882, allocations: 42.48 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.244e-05/0.2883, allocations: 28.91 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.2883, allocations: 0 / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.2884, allocations: 38.5 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.403e-06/0.2884, allocations: 7.938 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0003613/0.2888, allocations: 81.64 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.2888, allocations: 55.39 kB / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.961e-05/0.2889, allocations: 101.8 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.2889, allocations: 25.7 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.066e-05/0.289, allocations: 92.27 kB / 1.056 GB, free: 5.145 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.289, allocations: 7.891 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.324e-05/0.289, allocations: 13.7 kB / 1.056 GB, free: 5.117 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.2891, allocations: 318.8 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.614e-05/0.2892, allocations: 11.98 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.06e-05/0.2893, allocations: 27.91 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.2895, allocations: 40.89 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2895, allocations: 0 / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002014/0.2897, allocations: 69.59 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.2897, allocations: 4 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.2897, allocations: 0 / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.2897, allocations: 3.938 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.2899, allocations: 20.02 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2899, allocations: 0 / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.696e-05/0.2899, allocations: 7.984 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/0.29, allocations: 3.984 kB / 1.056 GB, free: 4.602 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.916e-05/0.29, allocations: 109.8 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/0.2901, allocations: 11.84 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.986e-05/0.2901, allocations: 7.125 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.2901, allocations: 0 / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2901, allocations: 7.984 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2901, allocations: 0 / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.2903, allocations: 161.6 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2903, allocations: 0 / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.075e-05/0.2904, allocations: 7.984 kB / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2904, allocations: 0 / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.2904, allocations: 0 / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.2904, allocations: 4 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2904, allocations: 0 / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002544/0.2907, allocations: 167.5 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.499e-05/0.2907, allocations: 81.09 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.2907, allocations: 0 / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.175e-05/0.2908, allocations: 4 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.173e-05/0.2909, allocations: 7.984 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-06/0.2909, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.294e-05/0.2909, allocations: 91.2 kB / 1.057 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2909, allocations: 4.031 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002164/0.2912, allocations: 7.938 kB / 1.057 GB, free: 3.852 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.0001106/0.2913, allocations: 95.25 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002237/0.2915, allocations: 39.95 kB / 1.057 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.2915, allocations: 4 kB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.871e-05/0.2916, allocations: 20.05 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.2919, allocations: 9.484 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003518/0.2923, allocations: 144.8 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.2925, allocations: 0.6809 MB / 1.058 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.388e-05/0.2925, allocations: 7.438 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of SimCode: time 6.21e-07/0.2925, allocations: 0 / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of Templates: time 0.002073/0.2946, allocations: 0.5974 MB / 1.058 GB, free: 2.188 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/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