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: 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.008263/0.008263, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001928/0.001928, allocations: 188.6 kB / 16.67 MB, free: 5.93 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.537/2.537, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 1.054 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8563/0.8576, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.002857/0.8605, allocations: 0.5966 MB / 1.208 GB, free: 13.03 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0004188/0.861, allocations: 73.66 kB / 1.208 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.869e-05/0.861, allocations: 3.938 kB / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.109e-05/0.8611, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 1.047e-05/0.8611, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.8614, allocations: 23.92 kB / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.479e-05/0.8615, allocations: 8 kB / 1.208 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.674e-05/0.8616, allocations: 0 / 1.208 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.125e-05/0.8616, allocations: 11.97 kB / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.684e-05/0.8617, allocations: 11.94 kB / 1.208 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.8617, allocations: 0 / 1.208 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 8.553e-05/0.8618, allocations: 15.98 kB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.8618, allocations: 0 / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.476e-05/0.8618, allocations: 7.984 kB / 1.209 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 9.202e-05/0.8619, allocations: 19.91 kB / 1.209 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.862, allocations: 0 / 1.209 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.284e-06/0.862, allocations: 4 kB / 1.209 GB, free: 12.85 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.862, allocations: 4 kB / 1.209 GB, free: 12.85 MB / 0.9356 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.0005393/0.8625, allocations: 327.5 kB / 1.209 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.8626, allocations: 8.031 kB / 1.209 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.901e-05/0.8626, allocations: 0.9375 kB / 1.209 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001552/0.8628, allocations: 168.3 kB / 1.209 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.8628, allocations: 4.375 kB / 1.209 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.8628, allocations: 384 / 1.209 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001334/0.8629, allocations: 70.55 kB / 1.209 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.863, allocations: 8.109 kB / 1.209 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.863, allocations: 3.938 kB / 1.209 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.863, allocations: 4 kB / 1.209 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.075e-05/0.863, allocations: 15.92 kB / 1.209 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001879/0.8632, allocations: 181.3 kB / 1.209 GB, free: 11.9 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.8633, allocations: 97.06 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.161e-05/0.8634, allocations: 36.3 kB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001818/0.8636, allocations: 93.08 kB / 1.21 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.8636, allocations: 34.56 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.8636, allocations: 0 / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5): time 0.0001911/0.8638, allocations: 89.33 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.798e-05/0.8639, allocations: 154.2 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.751e-05/0.8639, allocations: 89.86 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.864, allocations: 29.64 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.751e-05/0.864, allocations: 80.14 kB / 1.21 GB, free: 11.06 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.864, allocations: 20.23 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.529e-05/0.8641, allocations: 21.7 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.8642, allocations: 314.8 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.816e-05/0.8642, allocations: 4 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.74e-05/0.8643, allocations: 40.28 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.274e-05/0.8643, allocations: 48.23 kB / 1.21 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.8643, allocations: 7.938 kB / 1.21 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.733e-05/0.8644, allocations: 57.62 kB / 1.21 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.8645, allocations: 4 kB / 1.21 GB, free: 10.51 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.8645, allocations: 3.984 kB / 1.21 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.8645, allocations: 12.09 kB / 1.21 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.061e-05/0.8646, allocations: 11.94 kB / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.8646, allocations: 0 / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.224e-05/0.8646, allocations: 4 kB / 1.21 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.546e-06/0.8647, allocations: 0 / 1.21 GB, free: 10.48 MB / 0.9356 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 0.0001002/0.8648, allocations: 117.8 kB / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.292e-05/0.8648, allocations: 0 / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002103/0.865, allocations: 114.3 kB / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.865, allocations: 0 / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.865, allocations: 4 kB / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.865, allocations: 3.938 kB / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.8652, allocations: 157.7 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.8652, allocations: 128 / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.106e-05/0.8652, allocations: 27.94 kB / 1.211 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.8653, allocations: 8.141 kB / 1.211 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.8653, allocations: 7.938 kB / 1.211 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.8653, allocations: 0 / 1.211 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.8653, allocations: 0 / 1.211 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001509/0.8654, allocations: 120.5 kB / 1.211 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.8655, allocations: 88.94 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.8655, allocations: 11.94 kB / 1.211 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.83e-05/0.8656, allocations: 0 / 1.211 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.42e-05/0.8656, allocations: 7.938 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.485e-05/0.8657, allocations: 8 kB / 1.211 GB, free: 9.699 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.547e-05/0.8657, allocations: 79.22 kB / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9e-08/0.8657, allocations: 0 / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002114/0.8659, allocations: 19.98 kB / 1.211 GB, free: 9.602 MB / 0.9356 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.0001934/0.8661, allocations: 103.2 kB / 1.211 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001422/0.8663, allocations: 35.92 kB / 1.211 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.8663, allocations: 0 / 1.211 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.563e-05/0.8663, allocations: 27.92 kB / 1.211 GB, free: 9.426 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001717/0.8665, allocations: 6.188 kB / 1.211 GB, free: 9.422 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002864/0.8668, allocations: 156.2 kB / 1.212 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.8671, allocations: 0.6807 MB / 1.212 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.681e-05/0.8671, allocations: 8 kB / 1.212 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.958e-05/0.8671, allocations: 15.42 kB / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.8672, allocations: 0 / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of Templates: time 0.002634/0.8698, allocations: 0.5668 MB / 1.213 GB, free: 7.938 MB / 0.9356 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