Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Examples.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin") translateModel(Buildings.Utilities.Math.Examples.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001709/0.001709, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001438/0.001438, allocations: 196.6 kB / 16.14 MB, free: 6.719 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.463/1.463, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.742/2.742, allocations: 437 MB / 0.7099 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 63.89 kB / 0.8686 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6645/0.6665, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.004133/0.6707, allocations: 1.523 MB / 1.018 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005533/0.6713, allocations: 144.4 kB / 1.018 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.427e-05/0.6713, allocations: 4 kB / 1.018 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.986e-05/0.6714, allocations: 0 / 1.018 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.368e-05/0.6715, allocations: 3.938 kB / 1.018 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002283/0.6717, allocations: 27.97 kB / 1.018 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.6719, allocations: 43.84 kB / 1.018 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.672, allocations: 20 kB / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.481e-05/0.6721, allocations: 15.92 kB / 1.018 GB, free: 1 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.004e-05/0.6721, allocations: 19.92 kB / 1.018 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.6722, allocations: 0 / 1.018 GB, free: 0.9805 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.6723, allocations: 31.97 kB / 1.018 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.861e-05/0.6724, allocations: 19.86 kB / 1.018 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.631e-05/0.6724, allocations: 15.92 kB / 1.018 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.6726, allocations: 59.81 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.6726, allocations: 0 / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6726, allocations: 7.938 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.6727, allocations: 0 / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006966/0.6734, allocations: 369.3 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.6734, allocations: 8.031 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001721/0.6752, allocations: 212.5 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.6754, allocations: 164.3 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.6754, allocations: 8.375 kB / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.6755, allocations: 384 / 1.019 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.6765, allocations: 194 kB / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.6766, allocations: 192 / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.6766, allocations: 7.938 kB / 1.019 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.6766, allocations: 0 / 1.019 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/0.6781, allocations: 283.5 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.6797, allocations: 441.1 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/0.6815, allocations: 290.2 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006136/0.6822, allocations: 100.7 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.345e-05/0.6822, allocations: 0 / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.523e-05/0.6823, allocations: 38.56 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.944e-06/0.6823, allocations: 0 / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.002197/0.6845, allocations: 309.4 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.6846, allocations: 55.41 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.6848, allocations: 117.8 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/0.6848, allocations: 25.7 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.477e-05/0.6849, allocations: 100.1 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.792e-05/0.685, allocations: 7.906 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.502e-05/0.6851, allocations: 21.7 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001947/0.6853, allocations: 318.8 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006821/0.686, allocations: 95.88 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006617/0.6867, allocations: 103.9 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001147/0.6878, allocations: 168.6 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.6878, allocations: 4 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.001417/0.6893, allocations: 217.4 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.6893, allocations: 4.375 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.6893, allocations: 4 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.6893, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004387/0.6898, allocations: 35.88 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.6898, allocations: 7.938 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003462/0.6902, allocations: 23.95 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.6902, allocations: 12 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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.0001448/0.6904, allocations: 117.8 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.991e-05/0.6905, allocations: 3.906 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.359e-05/0.6905, allocations: 11.91 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.6906, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/0.6906, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.6906, allocations: 0 / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004127/0.691, allocations: 213.5 kB / 1.022 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.691, allocations: 4 kB / 1.022 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003988/0.6914, allocations: 35.94 kB / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.6915, allocations: 0 / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.6915, allocations: 0 / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.6915, allocations: 0 / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.6915, allocations: 0 / 1.022 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.6929, allocations: 315.2 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.581e-05/0.693, allocations: 85.02 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.6931, allocations: 3.984 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003944/0.6935, allocations: 31.95 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.6935, allocations: 4 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.6936, allocations: 3.938 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001032/0.6937, allocations: 95.27 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.31e-07/0.6937, allocations: 0 / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004394/0.6941, allocations: 12 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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.0001754/0.6943, allocations: 103.7 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001417/0.6958, allocations: 195.8 kB / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6958, allocations: 0 / 1.023 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000661/0.6965, allocations: 103.8 kB / 1.023 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000429/0.6969, allocations: 8 kB / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.6985, allocations: 263.1 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/0.6989, allocations: 0.6929 MB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001461/0.6991, allocations: 19.98 kB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.516e-05/0.6992, allocations: 7.438 kB / 1.024 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of SimCode: time 9.82e-07/0.6992, allocations: 7.938 kB / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of Templates: time 0.004864/0.7041, allocations: 0.8383 MB / 1.025 GB, free: 9.652 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches