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.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.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.001194/0.001194, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001256/0.001256, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.409/1.409, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.736/2.736, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 66.2 kB / 0.8984 GB, free: 37.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3389, allocations: 157.4 MB / 1.052 GB, free: 8.902 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.001866/0.3408, allocations: 0.6542 MB / 1.053 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002903/0.3411, allocations: 67.77 kB / 1.053 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.212e-05/0.3412, allocations: 0 / 1.053 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.3412, allocations: 4 kB / 1.053 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.462e-06/0.3412, allocations: 0 / 1.053 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002165/0.3414, allocations: 19.98 kB / 1.053 GB, free: 8.152 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.551e-05/0.3415, allocations: 7.984 kB / 1.053 GB, free: 8.145 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.436e-05/0.3415, allocations: 4 kB / 1.053 GB, free: 8.141 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.987e-05/0.3416, allocations: 7.938 kB / 1.053 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.649e-05/0.3416, allocations: 15.92 kB / 1.053 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.3416, allocations: 3.984 kB / 1.053 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.68e-05/0.3417, allocations: 15.98 kB / 1.053 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.253e-05/0.3417, allocations: 0 / 1.053 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.523e-05/0.3418, allocations: 7.938 kB / 1.053 GB, free: 8.09 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 9.926e-05/0.3419, allocations: 19.97 kB / 1.053 GB, free: 8.07 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3419, allocations: 3.984 kB / 1.053 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.303e-06/0.3419, allocations: 0 / 1.053 GB, free: 8.066 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.3419, allocations: 0 / 1.053 GB, free: 8.066 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003837/0.3423, allocations: 331.5 kB / 1.053 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.3423, allocations: 15.97 kB / 1.053 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.3424, allocations: 0.9375 kB / 1.053 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.678e-05/0.3425, allocations: 160.4 kB / 1.053 GB, free: 7.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.3425, allocations: 4.375 kB / 1.053 GB, free: 7.477 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/0.3425, allocations: 4.375 kB / 1.053 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.3426, allocations: 78.47 kB / 1.053 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.3427, allocations: 192 / 1.053 GB, free: 7.375 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.3427, allocations: 3.938 kB / 1.053 GB, free: 7.371 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.3427, allocations: 0 / 1.053 GB, free: 7.371 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.7e-05/0.3427, allocations: 19.94 kB / 1.054 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001811/0.3429, allocations: 177.4 kB / 1.054 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.382e-05/0.343, allocations: 97.02 kB / 1.054 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.09e-05/0.3431, allocations: 36.47 kB / 1.054 GB, free: 6.926 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001938/0.3433, allocations: 85.11 kB / 1.054 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.3433, allocations: 38.55 kB / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 3.617e-06/0.3433, allocations: 0 / 1.054 GB, free: 6.777 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0002043/0.3435, allocations: 77.44 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.365e-05/0.3436, allocations: 158.2 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.104e-05/0.3437, allocations: 89.86 kB / 1.054 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.3437, allocations: 26.33 kB / 1.054 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.316e-05/0.3437, allocations: 84.14 kB / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.78e-05/0.3437, allocations: 19.73 kB / 1.054 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.312e-05/0.3438, allocations: 17.72 kB / 1.054 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.3439, allocations: 314.8 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.97e-05/0.3439, allocations: 7.984 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.692e-05/0.344, allocations: 36.3 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.028e-05/0.344, allocations: 56.16 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.344, allocations: 0 / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.806e-05/0.3441, allocations: 65.66 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.3442, allocations: 4 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.3442, allocations: 7.984 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.3442, allocations: 3.938 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.977e-05/0.3443, allocations: 19.86 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.3443, allocations: 4 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.791e-05/0.3443, allocations: 0 / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.3444, allocations: 4 kB / 1.055 GB, free: 5.688 MB / 0.8106 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.018e-05/0.3444, allocations: 113.8 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.3445, allocations: 8.031 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000211/0.3447, allocations: 104.5 kB / 1.055 GB, free: 5.453 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.3447, allocations: 4 kB / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3447, allocations: 0 / 1.055 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3447, allocations: 8.156 kB / 1.055 GB, free: 5.441 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.3448, allocations: 169.5 kB / 1.055 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3449, allocations: 4.062 kB / 1.055 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.166e-05/0.3449, allocations: 20 kB / 1.055 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3449, allocations: 4 kB / 1.055 GB, free: 5.199 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.3449, allocations: 3.938 kB / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.345, allocations: 4 kB / 1.055 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.345, allocations: 0 / 1.055 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.3451, allocations: 120.5 kB / 1.055 GB, free: 5.043 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.333e-05/0.3452, allocations: 81.11 kB / 1.055 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.3452, allocations: 7.938 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.086e-05/0.3452, allocations: 4 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.235e-05/0.3452, allocations: 11.92 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.3453, allocations: 12 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.665e-05/0.3453, allocations: 75.28 kB / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3453, allocations: 0 / 1.056 GB, free: 4.836 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002136/0.3455, allocations: 4 kB / 1.056 GB, free: 4.832 MB / 0.8106 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.0001797/0.3457, allocations: 103.2 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001321/0.3458, allocations: 35.92 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3459, allocations: 4.312 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.243e-05/0.3459, allocations: 19.94 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.3461, allocations: 11.94 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002839/0.3464, allocations: 162.3 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.3466, allocations: 0.6888 MB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.4e-05/0.3467, allocations: 7.938 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.737e-05/0.3467, allocations: 15.44 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of SimCode: time 2.11e-07/0.3467, allocations: 0 / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of Templates: time 0.002851/0.3496, allocations: 0.5511 MB / 1.057 GB, free: 3.16 MB / 0.8106 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/jenkins/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