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.007503/0.007503, allocations: 100.3 kB / 15.73 MB, free: 6.012 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.001709/0.001709, allocations: 189.9 kB / 16.67 MB, free: 5.934 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.453/2.453, allocations: 437 MB / 0.7105 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 68.11 kB / 1.019 GB, free: 9.348 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.866/0.8673, allocations: 151.6 MB / 1.167 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.00172/0.8691, allocations: 0.5949 MB / 1.167 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0002608/0.8693, allocations: 69.61 kB / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.892e-05/0.8694, allocations: 0 / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.841e-05/0.8694, allocations: 0 / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.534e-06/0.8694, allocations: 0 / 1.167 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.8697, allocations: 27.91 kB / 1.167 GB, free: 3.105 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.026e-05/0.8697, allocations: 12 kB / 1.167 GB, free: 3.094 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.399e-05/0.8698, allocations: 0 / 1.167 GB, free: 3.094 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 2.547e-05/0.8698, allocations: 7.984 kB / 1.167 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/0.8699, allocations: 11.92 kB / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.8699, allocations: 0 / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.87, allocations: 19.98 kB / 1.167 GB, free: 3.055 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.61e-05/0.8701, allocations: 0 / 1.167 GB, free: 3.055 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.901e-05/0.8701, allocations: 8 kB / 1.167 GB, free: 3.047 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001421/0.8702, allocations: 19.89 kB / 1.167 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.8703, allocations: 0 / 1.167 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8703, allocations: 0 / 1.167 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.8703, allocations: 4 kB / 1.167 GB, free: 3.023 MB / 0.8887 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.0003673/0.8706, allocations: 331 kB / 1.168 GB, free: 2.652 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.8707, allocations: 8.922 kB / 1.168 GB, free: 2.645 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.8707, allocations: 4.938 kB / 1.168 GB, free: 2.641 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.299e-05/0.8708, allocations: 164.4 kB / 1.168 GB, free: 2.441 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.8708, allocations: 4.375 kB / 1.168 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-06/0.8709, allocations: 384 / 1.168 GB, free: 2.438 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.871, allocations: 74.48 kB / 1.168 GB, free: 2.344 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.871, allocations: 192 / 1.168 GB, free: 2.344 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.871, allocations: 7.938 kB / 1.168 GB, free: 2.336 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.871, allocations: 4 kB / 1.168 GB, free: 2.332 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.893e-05/0.8711, allocations: 15.86 kB / 1.168 GB, free: 2.316 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.8713, allocations: 182.3 kB / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.8714, allocations: 105 kB / 1.168 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.219e-05/0.8714, allocations: 34.83 kB / 1.168 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001868/0.8716, allocations: 85.09 kB / 1.168 GB, free: 1.781 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.8717, allocations: 38.56 kB / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=5): time 2.364e-06/0.8717, allocations: 0 / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5): time 0.0002061/0.8719, allocations: 85.36 kB / 1.168 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.139e-05/0.8719, allocations: 154.8 kB / 1.169 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.629e-05/0.872, allocations: 89.86 kB / 1.169 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.872, allocations: 29.7 kB / 1.169 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 2.579e-05/0.872, allocations: 80.14 kB / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 4.441e-05/0.8721, allocations: 27.78 kB / 1.169 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-05/0.8721, allocations: 21.7 kB / 1.169 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.8722, allocations: 310.8 kB / 1.169 GB, free: 0.875 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.918e-05/0.8723, allocations: 4 kB / 1.169 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.899e-05/0.8723, allocations: 40.28 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.441e-05/0.8724, allocations: 48.17 kB / 1.169 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.8724, allocations: 4 kB / 1.169 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.707e-05/0.8725, allocations: 65.62 kB / 1.169 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.8725, allocations: 4 kB / 1.169 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.8725, allocations: 3.984 kB / 1.169 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.8725, allocations: 7.938 kB / 1.169 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.706e-05/0.8726, allocations: 11.94 kB / 1.169 GB, free: 0.6523 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.8726, allocations: 3.984 kB / 1.169 GB, free: 0.6484 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.896e-05/0.8727, allocations: 4 kB / 1.169 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.8727, allocations: 3.984 kB / 1.169 GB, free: 0.6406 MB / 0.8887 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 9.014e-05/0.8728, allocations: 124.2 kB / 1.169 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.297e-05/0.8728, allocations: 0 / 1.169 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.873, allocations: 100.6 kB / 1.17 GB, free: 412 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.873, allocations: 0 / 1.17 GB, free: 412 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.873, allocations: 12.28 kB / 1.17 GB, free: 400 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.873, allocations: 0 / 1.17 GB, free: 400 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.8732, allocations: 169.6 kB / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.8732, allocations: 0 / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.929e-05/0.8732, allocations: 19.94 kB / 1.17 GB, free: 160 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.8732, allocations: 3.984 kB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.8733, allocations: 7.938 kB / 1.17 GB, free: 148 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.8733, allocations: 0 / 1.17 GB, free: 148 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8733, allocations: 0 / 1.17 GB, free: 148 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.8734, allocations: 128.5 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.894e-05/0.8735, allocations: 85.05 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.657e-05/0.8735, allocations: 7.938 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.871e-05/0.8735, allocations: 3.938 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.325e-05/0.8735, allocations: 15.94 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.8736, allocations: 4 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.314e-05/0.8736, allocations: 75.28 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8736, allocations: 0 / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002078/0.8738, allocations: 11.98 kB / 1.17 GB, free: 15.77 MB / 0.9044 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.0001621/0.874, allocations: 107.2 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001025/0.8741, allocations: 32.17 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.8741, allocations: 4.062 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.63e-05/0.8741, allocations: 31.86 kB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001684/0.8743, allocations: 8 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002559/0.8746, allocations: 142.2 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/0.8748, allocations: 0.6846 MB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.391e-05/0.8748, allocations: 4 kB / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.536e-05/0.8749, allocations: 15.42 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.8749, allocations: 0 / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of Templates: time 0.002534/0.8774, allocations: 0.5708 MB / 1.172 GB, free: 14.1 MB / 0.9044 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