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.001167/0.001167, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 187.8 kB / 16.92 MB, free: 6.773 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.434/1.434, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.781/2.781, allocations: 462.6 MB / 0.737 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003217/0.0003217, allocations: 10.81 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2836, allocations: 159.6 MB / 1.059 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.0007383/0.2844, allocations: 338.8 kB / 1.06 GB, free: 4.691 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000284/0.2847, allocations: 63.77 kB / 1.06 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.235e-05/0.2847, allocations: 3.938 kB / 1.06 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.205e-05/0.2847, allocations: 0 / 1.06 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.143e-06/0.2848, allocations: 4 kB / 1.06 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.285, allocations: 16 kB / 1.06 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.353e-05/0.285, allocations: 19.97 kB / 1.06 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.355e-05/0.2851, allocations: 0 / 1.06 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.933e-05/0.2851, allocations: 4 kB / 1.06 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.026e-05/0.2852, allocations: 11.92 kB / 1.06 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.748e-06/0.2852, allocations: 0 / 1.06 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.685e-05/0.2853, allocations: 15.98 kB / 1.06 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.398e-06/0.2853, allocations: 0 / 1.06 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.024e-05/0.2853, allocations: 41.62 kB / 1.06 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 7.377e-05/0.2854, allocations: 11.98 kB / 1.06 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2854, allocations: 0 / 1.06 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2854, allocations: 0 / 1.06 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.2854, allocations: 0 / 1.06 GB, free: 4.496 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.0003372/0.2858, allocations: 319.5 kB / 1.06 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.2858, allocations: 15.97 kB / 1.06 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.905e-05/0.2859, allocations: 0.9375 kB / 1.06 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.286, allocations: 172.3 kB / 1.06 GB, free: 3.91 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.286, allocations: 4.375 kB / 1.06 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.286, allocations: 4.375 kB / 1.06 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001515/0.2862, allocations: 74.53 kB / 1.06 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.2862, allocations: 4.125 kB / 1.06 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.2862, allocations: 3.938 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.2862, allocations: 4 kB / 1.06 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.714e-05/0.2863, allocations: 11.94 kB / 1.06 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001877/0.2865, allocations: 177.4 kB / 1.061 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.2866, allocations: 109.2 kB / 1.061 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.959e-05/0.2866, allocations: 32.23 kB / 1.061 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001917/0.2868, allocations: 85.09 kB / 1.061 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.2869, allocations: 34.56 kB / 1.061 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.2869, allocations: 4 kB / 1.061 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.0001923/0.2871, allocations: 73.44 kB / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.537e-05/0.2872, allocations: 166.2 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.814e-05/0.2872, allocations: 89.86 kB / 1.061 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.2872, allocations: 25.7 kB / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.593e-05/0.2873, allocations: 80.77 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.2873, allocations: 23.73 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.499e-05/0.2873, allocations: 13.72 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.2875, allocations: 310.8 kB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.931e-05/0.2875, allocations: 7.984 kB / 1.062 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.247e-05/0.2875, allocations: 32.3 kB / 1.062 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.756e-05/0.2876, allocations: 52.22 kB / 1.062 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.2876, allocations: 7.938 kB / 1.062 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001023/0.2877, allocations: 69.47 kB / 1.062 GB, free: 2.156 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.2877, allocations: 4 kB / 1.062 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2877, allocations: 4.156 kB / 1.062 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.2878, allocations: 7.938 kB / 1.062 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.486e-05/0.2878, allocations: 15.92 kB / 1.062 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.2879, allocations: 0 / 1.062 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.915e-05/0.2879, allocations: 0 / 1.062 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.2879, allocations: 4 kB / 1.062 GB, free: 2.121 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 8.262e-05/0.288, allocations: 113.8 kB / 1.062 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.288, allocations: 0 / 1.062 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002141/0.2882, allocations: 112.7 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.2882, allocations: 0 / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.2883, allocations: 4 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2883, allocations: 0 / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001353/0.2884, allocations: 169.6 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2884, allocations: 4.156 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.2885, allocations: 19.94 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2885, allocations: 0 / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.2885, allocations: 7.938 kB / 1.062 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.2885, allocations: 0 / 1.062 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2885, allocations: 0 / 1.062 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.2887, allocations: 132.4 kB / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.954e-05/0.2887, allocations: 77.11 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.2887, allocations: 7.938 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.087e-05/0.2888, allocations: 4 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.076e-05/0.2888, allocations: 7.984 kB / 1.062 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.2888, allocations: 7.938 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.416e-05/0.2888, allocations: 79.28 kB / 1.063 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.2888, allocations: 0 / 1.063 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002097/0.2891, allocations: 8 kB / 1.063 GB, free: 1.27 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.0001735/0.2892, allocations: 107.2 kB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001034/0.2893, allocations: 27.94 kB / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2894, allocations: 0 / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.829e-05/0.2894, allocations: 28.48 kB / 1.063 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001566/0.2896, allocations: 15.94 kB / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000305/0.2899, allocations: 187.7 kB / 1.063 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002474/0.2901, allocations: 0.6809 MB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.616e-05/0.2902, allocations: 15.44 kB / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of SimCode: time 2.9e-07/0.2902, allocations: 0 / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of Templates: time 0.002129/0.2923, allocations: 0.6641 MB / 1.064 GB, free: 15.46 MB / 0.8262 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