Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.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.Utilities.Math.Functions.Examples.Round,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ym2|ym1|y|y1|y2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round") translateModel(Buildings.Utilities.Math.Functions.Examples.Round,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ym2|ym1|y|y1|y2",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 98.64 kB / 16.02 MB, free: 76 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.001307/0.001307, allocations: 182.3 kB / 16.92 MB, free: 6.918 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.35/1.35, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.611/2.611, allocations: 443.2 MB / 0.7181 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003653, allocations: 9.344 kB / 0.8801 GB, free: 42.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3002, allocations: 155.1 MB / 1.032 GB, free: 4.746 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.0007114/0.301, allocations: 340.7 kB / 1.032 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000288/0.3013, allocations: 59.78 kB / 1.032 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.278e-05/0.3013, allocations: 0 / 1.032 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.672e-05/0.3013, allocations: 3.938 kB / 1.032 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.071e-06/0.3013, allocations: 0 / 1.032 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001984/0.3016, allocations: 19.98 kB / 1.032 GB, free: 4.328 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.572e-05/0.3016, allocations: 11.98 kB / 1.032 GB, free: 4.316 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.486e-05/0.3017, allocations: 3.984 kB / 1.032 GB, free: 4.312 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.854e-05/0.3017, allocations: 4 kB / 1.032 GB, free: 4.309 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.693e-05/0.3017, allocations: 7.938 kB / 1.032 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.3018, allocations: 0 / 1.032 GB, free: 4.301 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.52e-05/0.3018, allocations: 19.98 kB / 1.032 GB, free: 4.281 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.13e-05/0.3019, allocations: 3.984 kB / 1.032 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.446e-05/0.3019, allocations: 37.69 kB / 1.032 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 6.192e-05/0.302, allocations: 7.984 kB / 1.032 GB, free: 4.227 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.302, allocations: 4 kB / 1.032 GB, free: 4.223 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.396e-06/0.302, allocations: 3.938 kB / 1.032 GB, free: 4.219 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.302, allocations: 3.938 kB / 1.032 GB, free: 4.215 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003809/0.3024, allocations: 323.5 kB / 1.032 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.3024, allocations: 8.031 kB / 1.032 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.553e-05/0.3025, allocations: 0.9375 kB / 1.032 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.113e-05/0.3026, allocations: 168.3 kB / 1.033 GB, free: 3.637 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.476e-05/0.3026, allocations: 4.375 kB / 1.033 GB, free: 3.633 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.3026, allocations: 8.359 kB / 1.033 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.3027, allocations: 70.53 kB / 1.033 GB, free: 3.535 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.3028, allocations: 192 / 1.033 GB, free: 3.535 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.3028, allocations: 11.88 kB / 1.033 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.3028, allocations: 0 / 1.033 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.443e-05/0.3028, allocations: 11.94 kB / 1.033 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001774/0.303, allocations: 185.5 kB / 1.033 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.3031, allocations: 93.48 kB / 1.033 GB, free: 3.133 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.815e-05/0.3032, allocations: 44.28 kB / 1.033 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001737/0.3033, allocations: 81.11 kB / 1.033 GB, free: 2.977 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.3034, allocations: 42.55 kB / 1.033 GB, free: 2.926 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/0.3034, allocations: 4 kB / 1.033 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.0001913/0.3036, allocations: 69.5 kB / 1.033 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.3037, allocations: 162.2 kB / 1.033 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.533e-05/0.3037, allocations: 89.86 kB / 1.033 GB, free: 2.555 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.41e-05/0.3037, allocations: 25.7 kB / 1.033 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.681e-05/0.3038, allocations: 80.77 kB / 1.034 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.3038, allocations: 23.78 kB / 1.034 GB, free: 2.418 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/0.3038, allocations: 13.72 kB / 1.034 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.304, allocations: 314.8 kB / 1.034 GB, free: 2.082 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.453e-05/0.304, allocations: 0 / 1.034 GB, free: 2.082 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.625e-05/0.304, allocations: 40.28 kB / 1.034 GB, free: 2.027 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.82e-05/0.3041, allocations: 48.23 kB / 1.034 GB, free: 1.965 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3041, allocations: 0 / 1.034 GB, free: 1.965 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.897e-05/0.3042, allocations: 73.45 kB / 1.034 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.3043, allocations: 4 kB / 1.034 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.3043, allocations: 4.156 kB / 1.034 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.3043, allocations: 7.938 kB / 1.034 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.321e-05/0.3044, allocations: 8 kB / 1.034 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3044, allocations: 11.86 kB / 1.034 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.984e-05/0.3044, allocations: 4 kB / 1.034 GB, free: 1.848 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.3044, allocations: 4 kB / 1.034 GB, free: 1.844 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (5): * Single equations (assignments): 5 * 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 6.865e-05/0.3045, allocations: 105.8 kB / 1.034 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.561e-05/0.3045, allocations: 8 kB / 1.034 GB, free: 1.723 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001929/0.3047, allocations: 108.7 kB / 1.034 GB, free: 1.605 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.3047, allocations: 3.938 kB / 1.034 GB, free: 1.602 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.3047, allocations: 4 kB / 1.034 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.3047, allocations: 0 / 1.034 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.3049, allocations: 165.6 kB / 1.034 GB, free: 1.387 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.305, allocations: 8.156 kB / 1.034 GB, free: 1.379 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.945e-05/0.305, allocations: 19.92 kB / 1.034 GB, free: 1.359 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.305, allocations: 0 / 1.034 GB, free: 1.359 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.305, allocations: 7.938 kB / 1.035 GB, free: 1.352 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.305, allocations: 0 / 1.035 GB, free: 1.352 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3051, allocations: 4 kB / 1.035 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.3052, allocations: 124.5 kB / 1.035 GB, free: 1.195 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.583e-05/0.3052, allocations: 81.11 kB / 1.035 GB, free: 1.098 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.3053, allocations: 3.938 kB / 1.035 GB, free: 1.094 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.933e-05/0.3053, allocations: 4 kB / 1.035 GB, free: 1.09 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.606e-05/0.3053, allocations: 11.98 kB / 1.035 GB, free: 1.078 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.3053, allocations: 0 / 1.035 GB, free: 1.078 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.369e-05/0.3054, allocations: 83.28 kB / 1.035 GB, free: 0.9961 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3054, allocations: 3.938 kB / 1.035 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002024/0.3056, allocations: 4 kB / 1.035 GB, free: 0.9883 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (9): * Single equations (assignments): 9 * 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.0001523/0.3057, allocations: 103.2 kB / 1.035 GB, free: 0.8789 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.506e-05/0.3058, allocations: 31.92 kB / 1.035 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3059, allocations: 0 / 1.035 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.719e-05/0.3059, allocations: 28.48 kB / 1.035 GB, free: 0.8203 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.3061, allocations: 13.83 kB / 1.035 GB, free: 0.8086 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002788/0.3063, allocations: 187.7 kB / 1.035 GB, free: 0.582 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.3066, allocations: 0.677 MB / 1.036 GB, free: 15.88 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.004e-05/0.3067, allocations: 19.42 kB / 1.036 GB, free: 15.86 MB / 0.795 GB Notification: Performance of SimCode: time 2.7e-07/0.3067, allocations: 0 / 1.036 GB, free: 15.86 MB / 0.795 GB Notification: Performance of Templates: time 0.001937/0.3086, allocations: 0.6721 MB / 1.036 GB, free: 15.18 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Round.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches