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.0009932/0.0009932, allocations: 91.38 kB / 15.06 MB, free: 1.094 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.001144/0.001144, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.3 MB / 240 MB, free: 5.438 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.532/2.532, allocations: 390.9 MB / 0.666 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004472/0.0004474, allocations: 12 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7946/0.7951, allocations: 142.4 MB / 0.9544 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Round): time 0.0007911/0.7959, allocations: 333.1 kB / 0.9548 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002808/0.7962, allocations: 64.92 kB / 0.9548 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.026e-05/0.7962, allocations: 0 / 0.9548 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.263e-05/0.7963, allocations: 0 / 0.9548 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.125e-06/0.7963, allocations: 1.406 kB / 0.9548 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.7966, allocations: 15.42 kB / 0.9548 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.339e-05/0.7966, allocations: 10.83 kB / 0.9548 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.787e-05/0.7967, allocations: 1.156 kB / 0.9548 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.332e-05/0.7967, allocations: 8.688 kB / 0.9549 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.19e-05/0.7968, allocations: 10.42 kB / 0.9549 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.7968, allocations: 0.875 kB / 0.9549 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.932e-05/0.7969, allocations: 19.06 kB / 0.9549 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.7969, allocations: 1.219 kB / 0.9549 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.249e-05/0.7969, allocations: 30.8 kB / 0.9549 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.374e-05/0.797, allocations: 8.891 kB / 0.9549 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.797, allocations: 0 / 0.9549 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.435e-06/0.797, allocations: 1.219 kB / 0.9549 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.147e-06/0.797, allocations: 0 / 0.9549 GB, free: 7.332 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.0002646/0.7973, allocations: 326.8 kB / 0.9552 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.7974, allocations: 9 kB / 0.9552 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.136e-05/0.7974, allocations: 8.734 kB / 0.9553 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.763e-05/0.7975, allocations: 164.1 kB / 0.9554 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.7975, allocations: 1.156 kB / 0.9554 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.929e-06/0.7975, allocations: 1.062 kB / 0.9554 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001331/0.7976, allocations: 78.38 kB / 0.9555 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.7977, allocations: 4 kB / 0.9555 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.7977, allocations: 1 kB / 0.9555 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.7977, allocations: 1.062 kB / 0.9555 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.075e-05/0.7977, allocations: 14.3 kB / 0.9555 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000169/0.7979, allocations: 184.7 kB / 0.9557 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.311e-05/0.798, allocations: 101.2 kB / 0.9558 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.503e-05/0.798, allocations: 33.55 kB / 0.9558 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001821/0.7982, allocations: 88.06 kB / 0.9559 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.7983, allocations: 48.33 kB / 0.9559 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.031e-06/0.7983, allocations: 0.9688 kB / 0.9559 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.0002135/0.7985, allocations: 68.22 kB / 0.956 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.7986, allocations: 161.3 kB / 0.9562 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.218e-05/0.7986, allocations: 89.86 kB / 0.9562 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.006e-05/0.7986, allocations: 26.89 kB / 0.9563 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.687e-05/0.7986, allocations: 84.12 kB / 0.9564 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.7987, allocations: 18.16 kB / 0.9564 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-06/0.7987, allocations: 0 / 0.9564 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.764e-05/0.7987, allocations: 316.1 kB / 0.9567 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.102e-05/0.7988, allocations: 7.594 kB / 0.9567 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.103e-05/0.7988, allocations: 45.31 kB / 0.9567 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.171e-05/0.7988, allocations: 8.719 kB / 0.9567 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.7989, allocations: 1.281 kB / 0.9567 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001059/0.799, allocations: 65.38 kB / 0.9568 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.799, allocations: 11.11 kB / 0.9568 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.799, allocations: 1.125 kB / 0.9568 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.799, allocations: 2.594 kB / 0.9568 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.068e-05/0.7991, allocations: 7.594 kB / 0.9568 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.7991, allocations: 1 kB / 0.9568 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.379e-05/0.7992, allocations: 5.781 kB / 0.9568 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.7992, allocations: 3.188 kB / 0.9568 GB, free: 5.184 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.228e-05/0.7993, allocations: 119.9 kB / 0.9569 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.841e-05/0.7993, allocations: 6.625 kB / 0.9569 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002007/0.7995, allocations: 101.2 kB / 0.957 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.7995, allocations: 1.375 kB / 0.957 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.7995, allocations: 2.969 kB / 0.957 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.7995, allocations: 5.344 kB / 0.9571 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.7997, allocations: 165.1 kB / 0.9572 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.7997, allocations: 2.125 kB / 0.9572 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.825e-05/0.7997, allocations: 20.39 kB / 0.9572 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.7997, allocations: 2.25 kB / 0.9572 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.7998, allocations: 6.094 kB / 0.9572 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.7998, allocations: 6.156 kB / 0.9572 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.7998, allocations: 5.156 kB / 0.9572 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.7999, allocations: 119.9 kB / 0.9574 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.247e-05/0.7999, allocations: 92.75 kB / 0.9575 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.8, allocations: 5.125 kB / 0.9575 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.968e-05/0.8, allocations: 2.344 kB / 0.9575 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.065e-05/0.8, allocations: 7.312 kB / 0.9575 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.8, allocations: 8.266 kB / 0.9575 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.056e-05/0.8, allocations: 75.28 kB / 0.9575 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.8, allocations: 0 / 0.9575 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002299/0.8003, allocations: 10.62 kB / 0.9576 GB, free: 4.438 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001436/0.8004, allocations: 111.1 kB / 0.9577 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.927e-05/0.8005, allocations: 34.73 kB / 0.9577 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.8005, allocations: 4.969 kB / 0.9577 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.59e-05/0.8006, allocations: 28.27 kB / 0.9577 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.8007, allocations: 11.42 kB / 0.9577 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002318/0.801, allocations: 149.1 kB / 0.9579 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001041/0.8011, allocations: 0.6845 MB / 0.9585 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.25e-05/0.8011, allocations: 7.641 kB / 0.9586 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.36e-05/0.8012, allocations: 11.56 kB / 0.9586 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.8012, allocations: 0 / 0.9586 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of Templates: time 0.002598/0.8038, allocations: 0.5399 MB / 0.9591 GB, free: 3.141 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/jenkins/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