Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.001419/0.001419, allocations: 100.1 kB / 15.88 MB, free: 12 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.001515/0.001515, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.384/1.384, allocations: 222.9 MB / 240.5 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.372/2.372, allocations: 390.2 MB / 0.6649 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 67.89 kB / 0.8125 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6667/0.6687, allocations: 140.4 MB / 0.9496 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.001748/0.6705, allocations: 0.6595 MB / 0.9502 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002588/0.6708, allocations: 60.19 kB / 0.9503 GB, free: 8.598 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.264e-05/0.6708, allocations: 0 / 0.9503 GB, free: 8.598 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.6708, allocations: 3.938 kB / 0.9503 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.094e-06/0.6708, allocations: 0 / 0.9503 GB, free: 8.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.671, allocations: 23.59 kB / 0.9503 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.087e-05/0.6711, allocations: 17.64 kB / 0.9503 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.233e-05/0.6711, allocations: 1.375 kB / 0.9503 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.798e-05/0.6712, allocations: 4.188 kB / 0.9503 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.161e-05/0.6712, allocations: 6.734 kB / 0.9503 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.164e-05/0.6712, allocations: 1.406 kB / 0.9504 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.203e-05/0.6713, allocations: 15.02 kB / 0.9504 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.136e-05/0.6713, allocations: 9.297 kB / 0.9504 GB, free: 8.547 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.875e-05/0.6713, allocations: 5.438 kB / 0.9504 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.124e-05/0.6714, allocations: 17.56 kB / 0.9504 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.6714, allocations: 0 / 0.9504 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.01e-07/0.6714, allocations: 4 kB / 0.9504 GB, free: 8.527 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.447e-06/0.6714, allocations: 0 / 0.9504 GB, free: 8.527 MB / 0.7169 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.0002841/0.6717, allocations: 324.3 kB / 0.9507 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.6718, allocations: 9.188 kB / 0.9507 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.505e-05/0.6718, allocations: 6.156 kB / 0.9507 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.492e-05/0.6719, allocations: 165.4 kB / 0.9509 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.6719, allocations: 9.688 kB / 0.9509 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.6719, allocations: 1.469 kB / 0.9509 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.672, allocations: 82.62 kB / 0.951 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.672, allocations: 4.125 kB / 0.951 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.672, allocations: 5.25 kB / 0.951 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.6721, allocations: 1.656 kB / 0.951 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.242e-05/0.6721, allocations: 9.281 kB / 0.951 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001278/0.6722, allocations: 184.5 kB / 0.9512 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.707e-05/0.6723, allocations: 93.47 kB / 0.9513 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.328e-05/0.6723, allocations: 41.7 kB / 0.9513 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001672/0.6725, allocations: 85.56 kB / 0.9514 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.421e-05/0.6725, allocations: 32.25 kB / 0.9514 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.6725, allocations: 0 / 0.9514 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0001771/0.6727, allocations: 81.69 kB / 0.9515 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.6728, allocations: 159.7 kB / 0.9516 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.004e-05/0.6728, allocations: 89.86 kB / 0.9517 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.235e-06/0.6728, allocations: 27.02 kB / 0.9517 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.557e-06/0.6728, allocations: 80.14 kB / 0.9518 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.6729, allocations: 19.59 kB / 0.9518 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.843e-05/0.6729, allocations: 24.38 kB / 0.9519 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.665e-05/0.6729, allocations: 316.4 kB / 0.9522 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.631e-05/0.673, allocations: 2.969 kB / 0.9522 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.317e-05/0.673, allocations: 37.78 kB / 0.9522 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.374e-05/0.673, allocations: 48.48 kB / 0.9523 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6731, allocations: 0 / 0.9523 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.468e-05/0.6731, allocations: 66.08 kB / 0.9523 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.6732, allocations: 5.5 kB / 0.9523 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.6732, allocations: 1.375 kB / 0.9523 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.6732, allocations: 9.469 kB / 0.9523 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.514e-05/0.6733, allocations: 12.23 kB / 0.9523 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.6733, allocations: 5.312 kB / 0.9523 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.965e-05/0.6733, allocations: 10.66 kB / 0.9524 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.6733, allocations: 2.75 kB / 0.9524 GB, free: 6.305 MB / 0.7169 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 4.403e-05/0.6734, allocations: 108.6 kB / 0.9525 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.6734, allocations: 5.359 kB / 0.9525 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001713/0.6736, allocations: 105.7 kB / 0.9526 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.6736, allocations: 6.688 kB / 0.9526 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.6736, allocations: 5.359 kB / 0.9526 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.6736, allocations: 1.375 kB / 0.9526 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.43e-05/0.6737, allocations: 165.9 kB / 0.9527 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.6737, allocations: 1.375 kB / 0.9527 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.192e-05/0.6738, allocations: 20.47 kB / 0.9528 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.6738, allocations: 6.688 kB / 0.9528 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.6738, allocations: 9.297 kB / 0.9528 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.6738, allocations: 2.75 kB / 0.9528 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6738, allocations: 1.375 kB / 0.9528 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.6739, allocations: 125.3 kB / 0.9529 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.112e-05/0.674, allocations: 83.8 kB / 0.953 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.674, allocations: 9.297 kB / 0.953 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.784e-05/0.674, allocations: 1.375 kB / 0.953 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.254e-05/0.674, allocations: 8.125 kB / 0.953 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.674, allocations: 4.125 kB / 0.953 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.098e-05/0.6741, allocations: 79.22 kB / 0.9531 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.6741, allocations: 4 kB / 0.9531 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002053/0.6743, allocations: 6.875 kB / 0.9531 GB, free: 5.562 MB / 0.7169 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.0001465/0.6744, allocations: 106.5 kB / 0.9532 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001012/0.6745, allocations: 32.55 kB / 0.9532 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.6745, allocations: 0 / 0.9532 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.389e-05/0.6746, allocations: 24.88 kB / 0.9532 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.6747, allocations: 18.06 kB / 0.9533 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002384/0.675, allocations: 179.1 kB / 0.9534 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.6751, allocations: 0.6803 MB / 0.9541 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.329e-05/0.6751, allocations: 11.69 kB / 0.9541 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.6751, allocations: 4 kB / 0.9541 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of Templates: time 0.001946/0.6771, allocations: 0.6736 MB / 0.9548 GB, free: 4.195 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Round.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Round.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches