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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001235/0.001235, allocations: 108.8 kB / 16.41 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.001258/0.001258, allocations: 189.2 kB / 17.34 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.464/1.464, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.868/2.868, allocations: 474.5 MB / 0.7477 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.003038/0.003038, allocations: 67.91 kB / 1.073 GB, free: 7.129 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9877/0.9908, allocations: 160.3 MB / 1.229 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.002034/0.9929, allocations: 0.5999 MB / 1.23 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0003195/0.9932, allocations: 71.69 kB / 1.23 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.192e-05/0.9932, allocations: 0 / 1.23 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.85e-05/0.9933, allocations: 0 / 1.23 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.093e-06/0.9933, allocations: 0 / 1.23 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.9936, allocations: 19.92 kB / 1.23 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 5.97e-05/0.9937, allocations: 8 kB / 1.23 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 6.132e-05/0.9937, allocations: 3.984 kB / 1.23 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 2.43e-05/0.9938, allocations: 15.98 kB / 1.23 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.451e-05/0.9938, allocations: 7.938 kB / 1.23 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.9939, allocations: 0 / 1.23 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.48e-05/0.9939, allocations: 15.98 kB / 1.23 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.022e-05/0.994, allocations: 0 / 1.23 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.616e-05/0.994, allocations: 7.984 kB / 1.23 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001013/0.9941, allocations: 23.91 kB / 1.23 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.9941, allocations: 0 / 1.23 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.543e-06/0.9941, allocations: 0 / 1.23 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.9941, allocations: 0 / 1.23 GB, free: 10.3 MB / 0.9512 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.0004446/0.9946, allocations: 332.5 kB / 1.23 GB, free: 9.93 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.9946, allocations: 8.031 kB / 1.23 GB, free: 9.922 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.364e-05/0.9947, allocations: 4.938 kB / 1.23 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.9948, allocations: 164.3 kB / 1.23 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.9948, allocations: 384 / 1.23 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.9948, allocations: 384 / 1.23 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.995, allocations: 78.53 kB / 1.231 GB, free: 9.621 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.995, allocations: 4.188 kB / 1.231 GB, free: 9.617 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.995, allocations: 7.938 kB / 1.231 GB, free: 9.609 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.995, allocations: 0 / 1.231 GB, free: 9.609 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.866e-05/0.9951, allocations: 15.88 kB / 1.231 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002175/0.9953, allocations: 181.2 kB / 1.231 GB, free: 9.355 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000123/0.9954, allocations: 97.06 kB / 1.231 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.942e-05/0.9955, allocations: 32.36 kB / 1.231 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001981/0.9957, allocations: 101 kB / 1.231 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.9957, allocations: 38.5 kB / 1.231 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.9957, allocations: 0 / 1.231 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5): time 0.0002195/0.996, allocations: 74.06 kB / 1.231 GB, free: 8.926 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.9961, allocations: 166.2 kB / 1.231 GB, free: 8.727 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.033e-05/0.9961, allocations: 89.86 kB / 1.231 GB, free: 8.629 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.9962, allocations: 25.7 kB / 1.231 GB, free: 8.598 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.498e-05/0.9962, allocations: 84.14 kB / 1.231 GB, free: 8.512 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.439e-05/0.9962, allocations: 19.8 kB / 1.231 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.9963, allocations: 17.72 kB / 1.231 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000181/0.9965, allocations: 314.8 kB / 1.232 GB, free: 8.152 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.197e-05/0.9965, allocations: 8 kB / 1.232 GB, free: 8.145 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.603e-05/0.9966, allocations: 36.3 kB / 1.232 GB, free: 8.094 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.786e-05/0.9966, allocations: 52.22 kB / 1.232 GB, free: 8.027 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.9967, allocations: 0 / 1.232 GB, free: 8.027 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001151/0.9968, allocations: 61.56 kB / 1.232 GB, free: 7.961 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.9968, allocations: 4 kB / 1.232 GB, free: 7.957 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.9968, allocations: 4 kB / 1.232 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.9968, allocations: 3.938 kB / 1.232 GB, free: 7.949 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.487e-05/0.9969, allocations: 11.98 kB / 1.232 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.709e-06/0.9969, allocations: 7.922 kB / 1.232 GB, free: 7.93 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.647e-05/0.997, allocations: 12.16 kB / 1.232 GB, free: 7.918 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.997, allocations: 0 / 1.232 GB, free: 7.918 MB / 0.9512 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.429e-05/0.9971, allocations: 109.8 kB / 1.232 GB, free: 7.801 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.982e-05/0.9971, allocations: 7.984 kB / 1.232 GB, free: 7.793 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002177/0.9973, allocations: 108.7 kB / 1.232 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.9973, allocations: 0 / 1.232 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.9974, allocations: 4 kB / 1.232 GB, free: 7.676 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/0.9974, allocations: 3.984 kB / 1.232 GB, free: 7.672 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.9976, allocations: 165.6 kB / 1.232 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.9976, allocations: 4 kB / 1.232 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.453e-05/0.9976, allocations: 15.94 kB / 1.232 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.9976, allocations: 0 / 1.232 GB, free: 7.441 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.9977, allocations: 11.92 kB / 1.232 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.9977, allocations: 0 / 1.232 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.9977, allocations: 8.156 kB / 1.232 GB, free: 7.422 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.9979, allocations: 124.4 kB / 1.232 GB, free: 7.27 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.116e-05/0.9979, allocations: 89 kB / 1.233 GB, free: 7.164 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.9979, allocations: 11.92 kB / 1.233 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.847e-05/0.998, allocations: 0 / 1.233 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.359e-05/0.998, allocations: 15.98 kB / 1.233 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.998, allocations: 0 / 1.233 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.677e-05/0.9981, allocations: 79.28 kB / 1.233 GB, free: 7.059 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9981, allocations: 0 / 1.233 GB, free: 7.059 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004215/0.9985, allocations: 4 kB / 1.233 GB, free: 7.055 MB / 0.9512 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.0002092/0.9987, allocations: 119.1 kB / 1.233 GB, free: 6.926 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001296/0.9988, allocations: 35.92 kB / 1.233 GB, free: 6.891 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.9989, allocations: 0 / 1.233 GB, free: 6.891 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.392e-05/0.9989, allocations: 27.92 kB / 1.233 GB, free: 6.863 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000162/0.9991, allocations: 4 kB / 1.233 GB, free: 6.859 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003411/0.9994, allocations: 156.8 kB / 1.233 GB, free: 6.668 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.9998, allocations: 0.6807 MB / 1.234 GB, free: 5.961 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.891e-05/0.9998, allocations: 8 kB / 1.234 GB, free: 5.953 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.927e-05/0.9999, allocations: 19.42 kB / 1.234 GB, free: 5.934 MB / 0.9512 GB Notification: Performance of SimCode: time 3.71e-07/0.9999, allocations: 0 / 1.234 GB, free: 5.934 MB / 0.9512 GB Notification: Performance of Templates: time 0.003357/1.003, allocations: 0.5721 MB / 1.234 GB, free: 5.363 MB / 0.9512 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 -s gbode -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