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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001119/0.001119, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001272/0.001272, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.363/1.363, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.857/2.857, allocations: 472.6 MB / 0.7447 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 65.33 kB / 0.9114 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.357, allocations: 159.9 MB / 1.068 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002938/0.3599, allocations: 1.52 MB / 1.069 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004433/0.3604, allocations: 155.6 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.163e-05/0.3605, allocations: 3.938 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.461e-05/0.3605, allocations: 0 / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.284e-05/0.3606, allocations: 7.938 kB / 1.069 GB, free: 9.164 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002017/0.3608, allocations: 27.91 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.059e-05/0.3609, allocations: 43.86 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.361, allocations: 19.97 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.38e-05/0.3611, allocations: 15.94 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.499e-05/0.3611, allocations: 19.92 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.3612, allocations: 4 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.3613, allocations: 31.97 kB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.92e-05/0.3613, allocations: 7.922 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.031e-05/0.3613, allocations: 15.94 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.3615, allocations: 63.78 kB / 1.069 GB, free: 8.918 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.3615, allocations: 4 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.61e-07/0.3615, allocations: 0 / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.3615, allocations: 0 / 1.069 GB, free: 8.914 MB / 0.8262 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.0005202/0.362, allocations: 355.7 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3621, allocations: 12.03 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001116/0.3632, allocations: 212.5 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.3633, allocations: 168.3 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3634, allocations: 384 / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.965e-05/0.3634, allocations: 12.38 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005627/0.364, allocations: 193.9 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.364, allocations: 4.172 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.364, allocations: 3.938 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.364, allocations: 0 / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000811/0.3648, allocations: 279.6 kB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009347/0.3658, allocations: 441 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.3669, allocations: 290.1 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003573/0.3672, allocations: 104.8 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.3673, allocations: 0 / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.3673, allocations: 30.56 kB / 1.071 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 2.825e-06/0.3673, allocations: 3.984 kB / 1.071 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.001268/0.3686, allocations: 309.3 kB / 1.072 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.3687, allocations: 59.33 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.3688, allocations: 121.8 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.3688, allocations: 29.7 kB / 1.072 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.391e-05/0.3689, allocations: 84.14 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.274e-05/0.3689, allocations: 19.73 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.635e-05/0.369, allocations: 21.66 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3691, allocations: 318.8 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003588/0.3695, allocations: 99.88 kB / 1.072 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003482/0.3699, allocations: 91.88 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006375/0.3705, allocations: 172.6 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3705, allocations: 0 / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007517/0.3713, allocations: 217.4 kB / 1.073 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3713, allocations: 4 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3713, allocations: 0 / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.3714, allocations: 4 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002745/0.3716, allocations: 35.94 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.3717, allocations: 3.984 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001917/0.3719, allocations: 31.95 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.3719, allocations: 0 / 1.073 GB, free: 5.031 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.0001069/0.372, allocations: 121.8 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.372, allocations: 11.91 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.984e-05/0.3721, allocations: 3.906 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3721, allocations: 0 / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.3721, allocations: 4 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3721, allocations: 0 / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.3724, allocations: 205.6 kB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3724, allocations: 4 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002375/0.3726, allocations: 35.94 kB / 1.073 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.3727, allocations: 4 kB / 1.073 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.3727, allocations: 4 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.3727, allocations: 0 / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3727, allocations: 0 / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007793/0.3735, allocations: 323.1 kB / 1.074 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-05/0.3735, allocations: 77.11 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.3735, allocations: 0 / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002266/0.3738, allocations: 27.95 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.861e-05/0.3738, allocations: 0 / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.3739, allocations: 7.984 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.884e-05/0.3739, allocations: 99.58 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3739, allocations: 3.938 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002395/0.3742, allocations: 16 kB / 1.074 GB, free: 4 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.0001617/0.3743, allocations: 99.19 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000764/0.3751, allocations: 200.1 kB / 1.074 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3751, allocations: 0 / 1.074 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003578/0.3755, allocations: 103.9 kB / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.3758, allocations: 0 / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009488/0.3767, allocations: 278.8 kB / 1.075 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.377, allocations: 0.6848 MB / 1.075 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.483e-05/0.3771, allocations: 31.97 kB / 1.075 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.567e-05/0.3772, allocations: 7.438 kB / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.3772, allocations: 0 / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of Templates: time 0.003066/0.3802, allocations: 0.8477 MB / 1.076 GB, free: 1.703 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