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.009838/0.009839, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.002366/0.002367, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.759/2.759, allocations: 461.8 MB / 0.7347 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 63.91 kB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3563, allocations: 157.4 MB / 1.208 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.003206/0.3595, allocations: 1.455 MB / 1.209 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0005051/0.3601, allocations: 135.6 kB / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.439e-05/0.3602, allocations: 8 kB / 1.209 GB, free: 8.074 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.944e-05/0.3602, allocations: 3.938 kB / 1.209 GB, free: 8.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.417e-05/0.3603, allocations: 7.922 kB / 1.209 GB, free: 8.062 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002979/0.3606, allocations: 35.89 kB / 1.209 GB, free: 8.027 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000124/0.3608, allocations: 39.86 kB / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.3609, allocations: 27.98 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.862e-05/0.361, allocations: 15.94 kB / 1.209 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.918e-05/0.3611, allocations: 19.91 kB / 1.209 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.3611, allocations: 4 kB / 1.209 GB, free: 7.922 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.3612, allocations: 31.97 kB / 1.209 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.257e-05/0.3612, allocations: 11.98 kB / 1.209 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.499e-05/0.3613, allocations: 15.88 kB / 1.209 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.3615, allocations: 67.78 kB / 1.21 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3615, allocations: 0 / 1.21 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3615, allocations: 4 kB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.653e-06/0.3615, allocations: 0 / 1.21 GB, free: 7.793 MB / 0.9669 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.0006629/0.3622, allocations: 355.4 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.3622, allocations: 12.62 kB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001089/0.3633, allocations: 216.5 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.3635, allocations: 180.2 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3635, allocations: 384 / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.3635, allocations: 4.375 kB / 1.21 GB, free: 6.953 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006025/0.3642, allocations: 194 kB / 1.21 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.3642, allocations: 4.125 kB / 1.21 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.3642, allocations: 7.938 kB / 1.21 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.3642, allocations: 4 kB / 1.211 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007524/0.365, allocations: 275.6 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009514/0.3659, allocations: 445.1 kB / 1.211 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.3671, allocations: 286.2 kB / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.3674, allocations: 100.8 kB / 1.212 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.3674, allocations: 0 / 1.212 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.3675, allocations: 46.48 kB / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 8.82e-07/0.3675, allocations: 0 / 1.212 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.001037/0.3685, allocations: 305.3 kB / 1.212 GB, free: 5.238 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.3686, allocations: 51.41 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.3687, allocations: 117.8 kB / 1.212 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.3687, allocations: 29.64 kB / 1.212 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.033e-05/0.3688, allocations: 88.14 kB / 1.212 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.635e-05/0.3688, allocations: 15.73 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.147e-05/0.3688, allocations: 17.72 kB / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.369, allocations: 318.8 kB / 1.213 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003206/0.3693, allocations: 99.88 kB / 1.213 GB, free: 4.469 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003069/0.3696, allocations: 99.81 kB / 1.213 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006059/0.3702, allocations: 172.6 kB / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3702, allocations: 0 / 1.213 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006723/0.3709, allocations: 217.5 kB / 1.213 GB, free: 3.98 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3709, allocations: 4 kB / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.3709, allocations: 0 / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.371, allocations: 0 / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.3712, allocations: 35.94 kB / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3712, allocations: 3.984 kB / 1.213 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.3714, allocations: 31.86 kB / 1.213 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.3714, allocations: 4 kB / 1.213 GB, free: 3.902 MB / 0.9669 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 9.877e-05/0.3715, allocations: 125.7 kB / 1.213 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/0.3715, allocations: 4 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.394e-05/0.3716, allocations: 4.281 kB / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3716, allocations: 4.328 kB / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3716, allocations: 0 / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.3716, allocations: 0 / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.3719, allocations: 213.5 kB / 1.213 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3719, allocations: 7.984 kB / 1.213 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002091/0.3721, allocations: 35.94 kB / 1.214 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3721, allocations: 4 kB / 1.214 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.3721, allocations: 0 / 1.214 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3721, allocations: 0 / 1.214 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3721, allocations: 0 / 1.214 GB, free: 3.445 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007189/0.3728, allocations: 319.1 kB / 1.214 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.021e-05/0.3729, allocations: 77.11 kB / 1.214 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.3729, allocations: 0 / 1.214 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.3731, allocations: 27.95 kB / 1.214 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.796e-05/0.3732, allocations: 7.875 kB / 1.214 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.3732, allocations: 11.98 kB / 1.214 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.483e-05/0.3733, allocations: 95.27 kB / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3733, allocations: 0 / 1.214 GB, free: 2.883 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002358/0.3735, allocations: 12 kB / 1.214 GB, free: 2.871 MB / 0.9669 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.0001183/0.3736, allocations: 99.19 kB / 1.214 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0007798/0.3744, allocations: 199.7 kB / 1.214 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3744, allocations: 0 / 1.214 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003255/0.3747, allocations: 103.8 kB / 1.214 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.375, allocations: 0 / 1.214 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008404/0.3759, allocations: 269.2 kB / 1.215 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.3761, allocations: 0.6885 MB / 1.215 GB, free: 1.465 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.062e-05/0.3762, allocations: 19.98 kB / 1.215 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.881e-05/0.3763, allocations: 15.44 kB / 1.215 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of SimCode: time 6.81e-07/0.3763, allocations: 0 / 1.215 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of Templates: time 0.003228/0.3795, allocations: 0.931 MB / 1.216 GB, free: 0.5039 MB / 0.9669 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