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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Round,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Round",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Round,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Round",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001833/0.001834, allocations: 108 kB / 15.61 MB, free: 152 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.002118/0.002118, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.731/2.731, allocations: 469.4 MB / 0.742 GB, free: 7.691 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 68.98 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2857, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.001934/0.2876, allocations: 0.6057 MB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002623/0.2879, allocations: 71.77 kB / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.786e-05/0.288, allocations: 0 / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.483e-05/0.288, allocations: 0 / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.094e-06/0.288, allocations: 3.938 kB / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002394/0.2883, allocations: 19.97 kB / 1.064 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.795e-05/0.2883, allocations: 12 kB / 1.064 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.1e-05/0.2884, allocations: 0 / 1.064 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.984e-05/0.2884, allocations: 4 kB / 1.064 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.178e-05/0.2885, allocations: 15.91 kB / 1.064 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.2885, allocations: 0 / 1.064 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.06e-05/0.2886, allocations: 23.92 kB / 1.064 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.2886, allocations: 0 / 1.064 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.033e-05/0.2886, allocations: 11.94 kB / 1.064 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.382e-05/0.2887, allocations: 19.95 kB / 1.064 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2887, allocations: 0 / 1.064 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2887, allocations: 0 / 1.064 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.2887, allocations: 4 kB / 1.064 GB, free: 13.71 MB / 0.8262 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.0003394/0.2891, allocations: 325.1 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.2891, allocations: 8.031 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.474e-05/0.2892, allocations: 34.75 kB / 1.065 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.735e-05/0.2892, allocations: 4.938 kB / 1.065 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.094e-05/0.2893, allocations: 160.4 kB / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.2893, allocations: 4.375 kB / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.084e-05/0.2893, allocations: 384 / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.2894, allocations: 74.47 kB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2895, allocations: 11.94 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.2895, allocations: 0 / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2895, allocations: 3.938 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.824e-05/0.2895, allocations: 15.94 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001662/0.2897, allocations: 177.4 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.217e-05/0.2898, allocations: 101 kB / 1.065 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.289e-05/0.2898, allocations: 32.42 kB / 1.065 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001781/0.29, allocations: 89.03 kB / 1.065 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.2901, allocations: 46.5 kB / 1.065 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.263e-06/0.2901, allocations: 0 / 1.065 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.0001864/0.2903, allocations: 73.41 kB / 1.066 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.849e-05/0.2904, allocations: 166.8 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.062e-05/0.2904, allocations: 89.86 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.2904, allocations: 25.7 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.948e-05/0.2905, allocations: 84.14 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.907e-05/0.2905, allocations: 11.75 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.242e-05/0.2905, allocations: 17.72 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.816e-05/0.2906, allocations: 314.8 kB / 1.066 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.249e-05/0.2907, allocations: 8 kB / 1.066 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.902e-05/0.2907, allocations: 40.28 kB / 1.066 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.238e-05/0.2908, allocations: 48.23 kB / 1.066 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2908, allocations: 4 kB / 1.066 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001069/0.2909, allocations: 61.56 kB / 1.066 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.2909, allocations: 4 kB / 1.066 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.291, allocations: 3.938 kB / 1.066 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.291, allocations: 4 kB / 1.066 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.84e-05/0.2911, allocations: 11.98 kB / 1.066 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.2911, allocations: 0 / 1.066 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.316e-05/0.2911, allocations: 4 kB / 1.066 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.2911, allocations: 160 / 1.066 GB, free: 11.31 MB / 0.8262 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 7.276e-05/0.2912, allocations: 119.6 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.882e-05/0.2912, allocations: 7.984 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001916/0.2914, allocations: 116.6 kB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2914, allocations: 0 / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.2914, allocations: 7.984 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2914, allocations: 0 / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.2916, allocations: 161.7 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.2916, allocations: 4 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.945e-05/0.2917, allocations: 15.94 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2917, allocations: 0 / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.2917, allocations: 15.92 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2917, allocations: 0 / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.2917, allocations: 7.938 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001428/0.2919, allocations: 126.2 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.559e-05/0.2919, allocations: 85.02 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.2919, allocations: 11.92 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.085e-05/0.292, allocations: 4 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.111e-05/0.292, allocations: 8 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.292, allocations: 0 / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.838e-05/0.292, allocations: 75.28 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.292, allocations: 4 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002162/0.2923, allocations: 8 kB / 1.067 GB, free: 10.44 MB / 0.8262 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.0004415/0.2927, allocations: 0.6669 MB / 1.068 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000107/0.2928, allocations: 32.17 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2928, allocations: 4.062 kB / 1.068 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.491e-05/0.2929, allocations: 23.94 kB / 1.068 GB, free: 9.672 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001568/0.293, allocations: 8 kB / 1.068 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003956/0.2934, allocations: 186.2 kB / 1.068 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.2937, allocations: 0.6819 MB / 1.069 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.159e-05/0.2937, allocations: 8 kB / 1.069 GB, free: 8.715 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.65e-05/0.2938, allocations: 15.42 kB / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of SimCode: time 2.8e-07/0.2938, allocations: 0 / 1.069 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01729/0.3111, allocations: 1.398 MB / 1.07 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.137/7.448, allocations: 11.92 kB / 1.07 GB, free: 7.359 MB / 0.8262 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Round.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Round_res.csv","/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) "" Variables in the reference:time,ym2,ym1,y,y1,y2 Variables in the result:time,y,y1,y2,ym1,ym2