Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.005132/0.005132, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.001058/0.001058, allocations: 195.7 kB / 16.68 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.142/2.142, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 0.9509 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.092/1.093, allocations: 140.4 MB / 1.088 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.00193/1.095, allocations: 0.5981 MB / 1.089 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003038/1.095, allocations: 72.42 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.21e-05/1.095, allocations: 0.8438 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.743e-05/1.095, allocations: 3.938 kB / 1.089 GB, free: 5.086 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.547e-06/1.095, allocations: 4 kB / 1.089 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/1.096, allocations: 16.19 kB / 1.089 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.179e-05/1.096, allocations: 11.61 kB / 1.089 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.091e-05/1.096, allocations: 11.23 kB / 1.089 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.706e-05/1.096, allocations: 7.422 kB / 1.089 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.387e-05/1.096, allocations: 9.484 kB / 1.089 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/1.096, allocations: 1.469 kB / 1.089 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.132e-05/1.096, allocations: 10.59 kB / 1.089 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.623e-05/1.096, allocations: 6.266 kB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/1.096, allocations: 9.906 kB / 1.089 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001057/1.096, allocations: 20.25 kB / 1.089 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/1.096, allocations: 1.062 kB / 1.089 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.505e-06/1.096, allocations: 0 / 1.089 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.406e-06/1.096, allocations: 0 / 1.089 GB, free: 5.043 MB / 0.8575 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.0003787/1.097, allocations: 329.8 kB / 1.089 GB, free: 4.684 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/1.097, allocations: 9.188 kB / 1.089 GB, free: 4.684 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/1.097, allocations: 2.281 kB / 1.089 GB, free: 4.684 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.664e-05/1.097, allocations: 161.5 kB / 1.089 GB, free: 4.488 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/1.097, allocations: 5.719 kB / 1.089 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/1.097, allocations: 6.438 kB / 1.089 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/1.097, allocations: 72.06 kB / 1.089 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/1.097, allocations: 192 / 1.089 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/1.097, allocations: 5.547 kB / 1.089 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/1.097, allocations: 1.125 kB / 1.089 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.936e-05/1.097, allocations: 16.44 kB / 1.089 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000167/1.097, allocations: 177.4 kB / 1.089 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.409e-05/1.097, allocations: 103.2 kB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.901e-05/1.097, allocations: 38.88 kB / 1.09 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001686/1.098, allocations: 87.28 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/1.098, allocations: 45.39 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/1.098, allocations: 0 / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.0001942/1.098, allocations: 72.16 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/1.098, allocations: 160.3 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.072e-05/1.098, allocations: 93.8 kB / 1.09 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/1.098, allocations: 28.12 kB / 1.09 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.929e-06/1.098, allocations: 80.14 kB / 1.09 GB, free: 3.379 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.904e-05/1.098, allocations: 23.39 kB / 1.09 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/1.098, allocations: 19.91 kB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.886e-05/1.098, allocations: 312.2 kB / 1.09 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.97e-05/1.098, allocations: 9.094 kB / 1.09 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.735e-05/1.098, allocations: 31.42 kB / 1.091 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.469e-05/1.098, allocations: 53.88 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/1.098, allocations: 0.8906 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.295e-05/1.098, allocations: 62.59 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/1.098, allocations: 10.5 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/1.098, allocations: 1.125 kB / 1.091 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/1.098, allocations: 5.594 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.004e-05/1.098, allocations: 10.59 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/1.099, allocations: 1.125 kB / 1.091 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.963e-05/1.099, allocations: 10.8 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/1.099, allocations: 3.938 kB / 1.091 GB, free: 2.875 MB / 0.8575 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 5.577e-05/1.099, allocations: 116.6 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.498e-05/1.099, allocations: 2.844 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001936/1.099, allocations: 106.4 kB / 1.091 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/1.099, allocations: 2.797 kB / 1.091 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/1.099, allocations: 1.188 kB / 1.091 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/1.099, allocations: 5.625 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/1.099, allocations: 170.9 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.099, allocations: 2.641 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.012e-05/1.099, allocations: 14.25 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/1.099, allocations: 2.312 kB / 1.091 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/1.099, allocations: 10.83 kB / 1.091 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/1.099, allocations: 5.406 kB / 1.091 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/1.099, allocations: 1.469 kB / 1.091 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/1.099, allocations: 123.4 kB / 1.091 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.974e-05/1.099, allocations: 84.94 kB / 1.091 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/1.099, allocations: 10.66 kB / 1.091 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.042e-05/1.099, allocations: 1.828 kB / 1.091 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.201e-05/1.099, allocations: 5.953 kB / 1.091 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/1.099, allocations: 9 kB / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.802e-05/1.099, allocations: 79.28 kB / 1.091 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of sort global known variables: time 8e-08/1.099, allocations: 0 / 1.091 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002254/1.1, allocations: 10.66 kB / 1.091 GB, free: 2.16 MB / 0.8575 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.0001596/1.1, allocations: 105.2 kB / 1.092 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001227/1.1, allocations: 32.09 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.1, allocations: 1.344 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.447e-05/1.1, allocations: 30.33 kB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001706/1.1, allocations: 8.234 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002648/1.1, allocations: 149.8 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001335/1.101, allocations: 0.6803 MB / 1.092 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.715e-05/1.101, allocations: 9.203 kB / 1.092 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.77e-05/1.101, allocations: 16.73 kB / 1.092 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of SimCode: time 6.11e-07/1.101, allocations: 1.125 kB / 1.092 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of Templates: time 0.002812/1.103, allocations: 0.5634 MB / 1.093 GB, free: 1.098 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Round.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches