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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.000885/0.0008851, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001142/0.001142, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.976/2.976, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003556/0.0003557, allocations: 10.97 kB / 0.9021 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.3958, allocations: 159.6 MB / 1.058 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.000839/0.3967, allocations: 330.8 kB / 1.058 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002594/0.397, allocations: 63.77 kB / 1.058 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.928e-05/0.397, allocations: 4 kB / 1.058 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.094e-05/0.3971, allocations: 0 / 1.058 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.618e-06/0.3971, allocations: 0 / 1.058 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002451/0.3973, allocations: 23.91 kB / 1.058 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.596e-05/0.3974, allocations: 4 kB / 1.058 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.884e-05/0.3974, allocations: 4 kB / 1.058 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.438e-05/0.3975, allocations: 7.984 kB / 1.058 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.816e-05/0.3975, allocations: 11.94 kB / 1.058 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.3975, allocations: 4 kB / 1.058 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.381e-05/0.3976, allocations: 11.98 kB / 1.058 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.269e-05/0.3976, allocations: 7.984 kB / 1.058 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.686e-05/0.3977, allocations: 25.7 kB / 1.059 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 6.134e-05/0.3977, allocations: 7.984 kB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3978, allocations: 0 / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.794e-06/0.3978, allocations: 0 / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.3978, allocations: 0 / 1.059 GB, free: 4.84 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.0003764/0.3982, allocations: 323.3 kB / 1.059 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3982, allocations: 15.97 kB / 1.059 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.3982, allocations: 4 kB / 1.059 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.3984, allocations: 167.1 kB / 1.059 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.3984, allocations: 0 / 1.059 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.3984, allocations: 3.953 kB / 1.059 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.3985, allocations: 65.98 kB / 1.059 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.3986, allocations: 15.92 kB / 1.059 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.3986, allocations: 0 / 1.059 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.3986, allocations: 0 / 1.059 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.025e-05/0.3986, allocations: 19.92 kB / 1.059 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001944/0.3988, allocations: 169.5 kB / 1.059 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.3989, allocations: 105.1 kB / 1.059 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.168e-05/0.399, allocations: 32.3 kB / 1.059 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000197/0.3992, allocations: 89.05 kB / 1.059 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.3992, allocations: 42.56 kB / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.3992, allocations: 0 / 1.06 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0002042/0.3995, allocations: 73.48 kB / 1.06 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.674e-05/0.3996, allocations: 158.8 kB / 1.06 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.022e-05/0.3996, allocations: 93.86 kB / 1.06 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.3996, allocations: 25.7 kB / 1.06 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.617e-05/0.3997, allocations: 84.08 kB / 1.06 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.3997, allocations: 19.73 kB / 1.06 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-06/0.3997, allocations: 4 kB / 1.06 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3998, allocations: 314.8 kB / 1.06 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.909e-05/0.3999, allocations: 7.984 kB / 1.06 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.324e-05/0.3999, allocations: 36.3 kB / 1.06 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.337e-05/0.3999, allocations: 11.94 kB / 1.06 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.4, allocations: 0 / 1.06 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.972e-05/0.4001, allocations: 69.64 kB / 1.06 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.4001, allocations: 11.98 kB / 1.06 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.4001, allocations: 0 / 1.06 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.4001, allocations: 4 kB / 1.06 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.66e-05/0.4002, allocations: 11.94 kB / 1.06 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.4002, allocations: 3.984 kB / 1.06 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.818e-05/0.4002, allocations: 4 kB / 1.06 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.4003, allocations: 0 / 1.06 GB, free: 2.543 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.615e-05/0.4003, allocations: 113.8 kB / 1.061 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.418e-05/0.4004, allocations: 4 kB / 1.061 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.4006, allocations: 112.6 kB / 1.061 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.4006, allocations: 0 / 1.061 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.4006, allocations: 4 kB / 1.061 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4006, allocations: 160 / 1.061 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.4008, allocations: 169.6 kB / 1.061 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.4008, allocations: 4 kB / 1.061 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.716e-05/0.4008, allocations: 15.98 kB / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.4008, allocations: 0 / 1.061 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.4009, allocations: 4 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.115e-06/0.4009, allocations: 3.953 kB / 1.061 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4009, allocations: 4 kB / 1.061 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002477/0.4011, allocations: 124.5 kB / 1.061 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.11e-05/0.4012, allocations: 81.02 kB / 1.061 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.4012, allocations: 4 kB / 1.061 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.688e-05/0.4012, allocations: 0 / 1.061 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.4013, allocations: 19.88 kB / 1.061 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.4013, allocations: 8 kB / 1.061 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.953e-05/0.4013, allocations: 75.28 kB / 1.061 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4013, allocations: 3.938 kB / 1.061 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002122/0.4016, allocations: 8 kB / 1.061 GB, free: 1.688 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001751/0.4017, allocations: 103.2 kB / 1.061 GB, free: 1.574 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001101/0.4019, allocations: 35.95 kB / 1.061 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.4019, allocations: 320 / 1.061 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.188e-05/0.4019, allocations: 35.86 kB / 1.061 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001609/0.4021, allocations: 5.547 kB / 1.061 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002814/0.4024, allocations: 149.2 kB / 1.061 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.4026, allocations: 0.681 MB / 1.062 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.99e-05/0.4027, allocations: 11.98 kB / 1.062 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.342e-05/0.4027, allocations: 11.44 kB / 1.062 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of SimCode: time 2.81e-07/0.4027, allocations: 0 / 1.062 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of Templates: time 0.00289/0.4056, allocations: 0.5349 MB / 1.063 GB, free: 52 kB / 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