Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Examples.SmoothMin,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.2..y|smoLim.1..y",fileNamePrefix="Buildings_latest_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_latest_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.001108/0.001109, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009668/0.009667, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.393/1.393, allocations: 223.3 MB / 240.3 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.79/2.79, allocations: 462.7 MB / 0.7364 GB, free: 220 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 18.81 kB / 0.9028 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3565, allocations: 159.6 MB / 1.059 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.0019/0.3584, allocations: 1.183 MB / 1.06 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004272/0.3589, allocations: 143.7 kB / 1.06 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.55e-05/0.3589, allocations: 0 / 1.06 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.159e-05/0.359, allocations: 7.938 kB / 1.06 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.27e-05/0.3591, allocations: 4 kB / 1.06 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002149/0.3593, allocations: 23.91 kB / 1.06 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.898e-05/0.3594, allocations: 47.84 kB / 1.06 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.3595, allocations: 19.98 kB / 1.06 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.549e-05/0.3596, allocations: 15.92 kB / 1.06 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.536e-05/0.3596, allocations: 15.92 kB / 1.06 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.386e-05/0.3596, allocations: 4 kB / 1.06 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.941e-05/0.3597, allocations: 23.98 kB / 1.06 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.3598, allocations: 11.97 kB / 1.06 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.792e-05/0.3598, allocations: 41.58 kB / 1.06 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.36, allocations: 55.86 kB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.36, allocations: 3.938 kB / 1.06 GB, free: 3.785 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.493e-06/0.36, allocations: 3.938 kB / 1.06 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.36, allocations: 4 kB / 1.06 GB, free: 3.777 MB / 0.8106 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.0004612/0.3605, allocations: 359.6 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.3605, allocations: 8.031 kB / 1.061 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001158/0.3617, allocations: 240.6 kB / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001321/0.3618, allocations: 176.2 kB / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.3619, allocations: 12.31 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.3619, allocations: 384 / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006191/0.3625, allocations: 214 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3626, allocations: 192 / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.3626, allocations: 3.938 kB / 1.061 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.3626, allocations: 4 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009113/0.3635, allocations: 315.6 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.3645, allocations: 461.1 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.3658, allocations: 334.2 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/0.3662, allocations: 128.8 kB / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.688e-05/0.3662, allocations: 0 / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.3662, allocations: 34.56 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.3662, allocations: 0 / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.001272/0.3675, allocations: 365.3 kB / 1.063 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.3676, allocations: 51.41 kB / 1.063 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.3677, allocations: 121.8 kB / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.3677, allocations: 25.7 kB / 1.063 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.467e-05/0.3678, allocations: 96.03 kB / 1.063 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.3678, allocations: 15.91 kB / 1.063 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-05/0.3678, allocations: 9.719 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.368, allocations: 322.8 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003825/0.3684, allocations: 115.9 kB / 1.063 GB, free: 224 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003708/0.3687, allocations: 115.8 kB / 1.064 GB, free: 108 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007222/0.3695, allocations: 208.6 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3695, allocations: 0 / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008167/0.3703, allocations: 257.3 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.3703, allocations: 12.38 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3703, allocations: 0 / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.3704, allocations: 0 / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.3707, allocations: 43.94 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.443e-06/0.3707, allocations: 3.938 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.3709, allocations: 43.95 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.3709, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 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.0001077/0.371, allocations: 121.8 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.847e-05/0.3711, allocations: 4 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.955e-05/0.3711, allocations: 8.234 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3711, allocations: 4 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3711, allocations: 4 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.3712, allocations: 3.984 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.3714, allocations: 205.5 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3714, allocations: 4 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.3716, allocations: 43.88 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.3717, allocations: 4 kB / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3717, allocations: 4 kB / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3717, allocations: 0 / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3717, allocations: 0 / 1.065 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008955/0.3726, allocations: 355.1 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.804e-05/0.3726, allocations: 85.02 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.3727, allocations: 0 / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.3729, allocations: 35.95 kB / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.373, allocations: 4 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.373, allocations: 7.984 kB / 1.065 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.547e-05/0.3731, allocations: 95.27 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3731, allocations: 0 / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002393/0.3733, allocations: 12 kB / 1.065 GB, free: 14.46 MB / 0.8262 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.0001353/0.3734, allocations: 103.1 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008361/0.3743, allocations: 235.7 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3743, allocations: 0 / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003991/0.3747, allocations: 123.9 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.375, allocations: 0 / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009945/0.376, allocations: 300.5 kB / 1.066 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.3762, allocations: 0.6929 MB / 1.067 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.933e-05/0.3763, allocations: 19.98 kB / 1.067 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.306e-05/0.3764, allocations: 11.38 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of SimCode: time 4.01e-07/0.3764, allocations: 7.938 kB / 1.067 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of Templates: time 0.003191/0.3796, allocations: 0.8217 MB / 1.067 GB, free: 12.1 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches