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.001465/0.001465, allocations: 112.2 kB / 16.42 MB, free: 6.453 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.001576/0.001576, allocations: 187.9 kB / 17.35 MB, free: 5.738 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.877/1.877, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.685/2.685, allocations: 461.9 MB / 0.7354 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 67.91 kB / 1.055 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.091/1.092, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.002381/1.095, allocations: 0.6031 MB / 1.209 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0004932/1.095, allocations: 75.64 kB / 1.209 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.778e-05/1.095, allocations: 0 / 1.209 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.687e-05/1.096, allocations: 0 / 1.209 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 1.003e-05/1.096, allocations: 0 / 1.209 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003825/1.096, allocations: 19.92 kB / 1.209 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.038e-05/1.096, allocations: 11.98 kB / 1.209 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.842e-05/1.096, allocations: 11.98 kB / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.275e-05/1.096, allocations: 0 / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.219e-05/1.096, allocations: 11.94 kB / 1.209 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/1.096, allocations: 4 kB / 1.209 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/1.096, allocations: 7.984 kB / 1.209 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/1.096, allocations: 11.98 kB / 1.209 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.822e-05/1.096, allocations: 3.984 kB / 1.209 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001305/1.097, allocations: 15.92 kB / 1.209 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/1.097, allocations: 0 / 1.209 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.397e-06/1.097, allocations: 0 / 1.209 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.606e-06/1.097, allocations: 0 / 1.209 GB, free: 12.86 MB / 0.9356 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.0005376/1.097, allocations: 327.6 kB / 1.21 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/1.097, allocations: 8.031 kB / 1.21 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.946e-05/1.097, allocations: 4.938 kB / 1.21 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/1.097, allocations: 164.4 kB / 1.21 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/1.097, allocations: 8.359 kB / 1.21 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/1.097, allocations: 4.375 kB / 1.21 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000174/1.098, allocations: 74.48 kB / 1.21 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/1.098, allocations: 192 / 1.21 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/1.098, allocations: 3.938 kB / 1.21 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/1.098, allocations: 0 / 1.21 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.297e-05/1.098, allocations: 19.92 kB / 1.21 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002642/1.098, allocations: 181.1 kB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001253/1.098, allocations: 97.06 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.435e-05/1.098, allocations: 40.36 kB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000259/1.098, allocations: 89.03 kB / 1.21 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.399e-05/1.099, allocations: 38.56 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 1.804e-06/1.099, allocations: 0 / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5): time 0.0002352/1.099, allocations: 78.02 kB / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001522/1.099, allocations: 162.2 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.818e-05/1.099, allocations: 97.73 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/1.099, allocations: 25.7 kB / 1.211 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.778e-05/1.099, allocations: 84.14 kB / 1.211 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.572e-05/1.099, allocations: 11.61 kB / 1.211 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.405e-05/1.099, allocations: 21.7 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001258/1.099, allocations: 310.8 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.443e-05/1.099, allocations: 12 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.859e-05/1.099, allocations: 36.28 kB / 1.211 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.328e-05/1.1, allocations: 52.23 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.1, allocations: 0 / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001079/1.1, allocations: 61.56 kB / 1.211 GB, free: 10.52 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/1.1, allocations: 7.984 kB / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/1.1, allocations: 0 / 1.211 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/1.1, allocations: 7.938 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.791e-05/1.1, allocations: 8 kB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/1.1, allocations: 160 / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.457e-05/1.1, allocations: 8 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.278e-06/1.1, allocations: 0 / 1.211 GB, free: 10.49 MB / 0.9356 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 0.0001062/1.1, allocations: 121.8 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.07e-05/1.1, allocations: 4 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/1.1, allocations: 110.5 kB / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/1.1, allocations: 3.938 kB / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/1.1, allocations: 4 kB / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.833e-05/1.1, allocations: 77.11 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/1.1, allocations: 4 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.181e-05/1.1, allocations: 0 / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.521e-05/1.1, allocations: 11.98 kB / 1.211 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003877/1.101, allocations: 474 kB / 1.212 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003961/1.101, allocations: 0.5391 MB / 1.212 GB, free: 9.094 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.75e-05/1.101, allocations: 19.94 kB / 1.212 GB, free: 9.074 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.417e-05/1.101, allocations: 75.38 kB / 1.213 GB, free: 9 MB / 0.9356 GB Notification: Performance of Backend: time 1.8e-07/1.101, allocations: 3.938 kB / 1.213 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008214/1.102, allocations: 112.2 kB / 1.213 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005259/1.103, allocations: 0.5605 MB / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of Templates: time 0.003281/1.106, allocations: 0.5944 MB / 1.214 GB, free: 7.68 MB / 0.9356 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