Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.006879/0.00688, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.001541/0.001541, allocations: 196.7 kB / 16.67 MB, free: 5.977 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.82/2.82, allocations: 437 MB / 0.7105 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001379, allocations: 67.89 kB / 1.019 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.3629, allocations: 151.6 MB / 1.167 GB, free: 6.707 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.002026/0.3649, allocations: 0.6021 MB / 1.167 GB, free: 6.109 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000308/0.3653, allocations: 67.77 kB / 1.167 GB, free: 6.043 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.071e-05/0.3653, allocations: 0 / 1.167 GB, free: 6.043 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.246e-05/0.3653, allocations: 3.938 kB / 1.167 GB, free: 6.039 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.967e-06/0.3654, allocations: 0 / 1.167 GB, free: 6.039 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.3657, allocations: 19.97 kB / 1.167 GB, free: 6.02 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.475e-05/0.3658, allocations: 15.94 kB / 1.167 GB, free: 6.004 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 6.777e-05/0.3659, allocations: 352 / 1.167 GB, free: 6.004 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.878e-05/0.3659, allocations: 15.97 kB / 1.167 GB, free: 5.988 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.795e-05/0.366, allocations: 8 kB / 1.167 GB, free: 5.98 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.366, allocations: 3.938 kB / 1.167 GB, free: 5.977 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 9.673e-05/0.3661, allocations: 11.98 kB / 1.167 GB, free: 5.965 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.757e-05/0.3661, allocations: 7.938 kB / 1.167 GB, free: 5.957 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.523e-05/0.3662, allocations: 4 kB / 1.167 GB, free: 5.953 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.3663, allocations: 23.89 kB / 1.167 GB, free: 5.93 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3663, allocations: 0 / 1.167 GB, free: 5.93 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3663, allocations: 0 / 1.167 GB, free: 5.93 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.3663, allocations: 0 / 1.167 GB, free: 5.93 MB / 0.92 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.0004087/0.3667, allocations: 335.4 kB / 1.168 GB, free: 5.551 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.3668, allocations: 8.031 kB / 1.168 GB, free: 5.543 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.589e-05/0.3668, allocations: 0.9375 kB / 1.168 GB, free: 5.543 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.3669, allocations: 164.4 kB / 1.168 GB, free: 5.344 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.367, allocations: 4.375 kB / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/0.367, allocations: 384 / 1.168 GB, free: 5.34 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.3671, allocations: 82.47 kB / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.3672, allocations: 192 / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.3672, allocations: 7.922 kB / 1.168 GB, free: 5.23 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.3672, allocations: 4 kB / 1.168 GB, free: 5.227 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.622e-05/0.3672, allocations: 11.94 kB / 1.168 GB, free: 5.215 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002202/0.3675, allocations: 185.3 kB / 1.168 GB, free: 4.973 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.3676, allocations: 104.9 kB / 1.168 GB, free: 4.824 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.109e-05/0.3676, allocations: 28.36 kB / 1.168 GB, free: 4.781 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002127/0.3679, allocations: 89.09 kB / 1.168 GB, free: 4.676 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.3679, allocations: 38.5 kB / 1.168 GB, free: 4.629 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.3679, allocations: 0 / 1.168 GB, free: 4.629 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0002172/0.3681, allocations: 70.03 kB / 1.168 GB, free: 4.555 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/0.3682, allocations: 170.3 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.333e-05/0.3683, allocations: 89.86 kB / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.3683, allocations: 25.7 kB / 1.169 GB, free: 4.223 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.3683, allocations: 84.08 kB / 1.169 GB, free: 4.137 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.419e-05/0.3684, allocations: 19.84 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.205e-05/0.3684, allocations: 17.72 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3685, allocations: 318.8 kB / 1.169 GB, free: 3.773 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.037e-05/0.3685, allocations: 8 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.733e-05/0.3686, allocations: 28.3 kB / 1.169 GB, free: 3.723 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.519e-05/0.3687, allocations: 60.16 kB / 1.169 GB, free: 3.648 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3687, allocations: 0 / 1.169 GB, free: 3.648 MB / 0.92 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001083/0.3688, allocations: 61.56 kB / 1.169 GB, free: 3.582 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.3688, allocations: 8 kB / 1.169 GB, free: 3.574 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.3688, allocations: 0 / 1.169 GB, free: 3.574 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.3688, allocations: 7.938 kB / 1.169 GB, free: 3.566 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.266e-05/0.3689, allocations: 11.98 kB / 1.169 GB, free: 3.555 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.3689, allocations: 0 / 1.169 GB, free: 3.555 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.135e-05/0.369, allocations: 8.094 kB / 1.169 GB, free: 3.547 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.158e-06/0.369, allocations: 4 kB / 1.169 GB, free: 3.543 MB / 0.92 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 7.544e-05/0.3691, allocations: 113.8 kB / 1.169 GB, free: 3.422 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.3691, allocations: 3.984 kB / 1.169 GB, free: 3.418 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000204/0.3693, allocations: 108.5 kB / 1.17 GB, free: 3.305 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.3693, allocations: 0 / 1.17 GB, free: 3.305 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3693, allocations: 4.125 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3693, allocations: 7.984 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001387/0.3695, allocations: 161.6 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3695, allocations: 0 / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.084e-05/0.3696, allocations: 16 kB / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3696, allocations: 0 / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.3696, allocations: 11.94 kB / 1.17 GB, free: 3.059 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.3696, allocations: 3.984 kB / 1.17 GB, free: 3.055 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3696, allocations: 8.094 kB / 1.17 GB, free: 3.047 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.3698, allocations: 120.4 kB / 1.17 GB, free: 2.898 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.609e-05/0.3698, allocations: 85 kB / 1.17 GB, free: 2.797 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.3698, allocations: 19.92 kB / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.876e-05/0.3699, allocations: 0 / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.071e-05/0.3699, allocations: 4 kB / 1.17 GB, free: 2.773 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.3699, allocations: 4 kB / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of sorting global known variables: time 9.734e-05/0.37, allocations: 75.28 kB / 1.17 GB, free: 2.695 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.37, allocations: 0 / 1.17 GB, free: 2.695 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002071/0.3702, allocations: 12 kB / 1.17 GB, free: 2.684 MB / 0.92 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.0001635/0.3704, allocations: 107.2 kB / 1.17 GB, free: 2.566 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000121/0.3705, allocations: 43.86 kB / 1.17 GB, free: 2.523 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.3705, allocations: 0 / 1.17 GB, free: 2.523 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.589e-05/0.3706, allocations: 27.86 kB / 1.17 GB, free: 2.496 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001559/0.3707, allocations: 10.03 kB / 1.17 GB, free: 2.488 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002612/0.371, allocations: 144.8 kB / 1.17 GB, free: 2.309 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.3712, allocations: 0.6807 MB / 1.171 GB, free: 1.602 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 3.534e-05/0.3713, allocations: 4 kB / 1.171 GB, free: 1.598 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.803e-05/0.3713, allocations: 23.42 kB / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of SimCode: time 3.91e-07/0.3713, allocations: 0 / 1.171 GB, free: 1.574 MB / 0.92 GB Notification: Performance of Templates: time 0.00283/0.3742, allocations: 0.5593 MB / 1.172 GB, free: 1.016 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Round.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Round.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches