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.001584/0.001584, 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.001877/0.001877, allocations: 195.7 kB / 16.14 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.412/1.412, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.804/2.804, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 66.8 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3428, allocations: 157.4 MB / 1.052 GB, free: 8.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002555/0.3454, allocations: 1.518 MB / 1.054 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003846/0.3458, allocations: 151.6 kB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.683e-05/0.3458, allocations: 0 / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.018e-05/0.3459, allocations: 0 / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.467e-05/0.3459, allocations: 11.92 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001789/0.3461, allocations: 15.98 kB / 1.054 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.371e-05/0.3462, allocations: 47.84 kB / 1.054 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.3463, allocations: 16 kB / 1.054 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.406e-05/0.3464, allocations: 19.92 kB / 1.054 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.188e-05/0.3464, allocations: 19.91 kB / 1.054 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.3465, allocations: 4 kB / 1.054 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.572e-05/0.3465, allocations: 35.91 kB / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.59e-05/0.3466, allocations: 8 kB / 1.054 GB, free: 6.996 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.831e-05/0.3466, allocations: 19.86 kB / 1.054 GB, free: 6.977 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.3467, allocations: 63.8 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3467, allocations: 0 / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3468, allocations: 0 / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.3468, allocations: 0 / 1.054 GB, free: 6.914 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.0005497/0.3473, allocations: 363.6 kB / 1.054 GB, free: 6.508 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.3474, allocations: 11.97 kB / 1.054 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001142/0.3485, allocations: 212.5 kB / 1.055 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.3487, allocations: 172.3 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.3487, allocations: 4.375 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.3487, allocations: 4.375 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006114/0.3494, allocations: 198 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.3494, allocations: 192 / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.3494, allocations: 7.922 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.3494, allocations: 0 / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008479/0.3503, allocations: 287.5 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.3513, allocations: 441.2 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.3524, allocations: 290.1 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.3528, allocations: 104.8 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.3528, allocations: 0 / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.3528, allocations: 30.56 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 7.91e-07/0.3528, allocations: 0 / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.001144/0.354, allocations: 313.2 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.354, allocations: 51.41 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.576e-05/0.3541, allocations: 117.8 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.3542, allocations: 33.62 kB / 1.056 GB, free: 4.129 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.707e-05/0.3542, allocations: 84.14 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.3542, allocations: 19.84 kB / 1.057 GB, free: 4.023 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.3543, allocations: 17.7 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001789/0.3545, allocations: 318.8 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003572/0.3549, allocations: 95.81 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003374/0.3552, allocations: 99.88 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006519/0.3559, allocations: 168.6 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3559, allocations: 0 / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007225/0.3566, allocations: 217.4 kB / 1.057 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.3566, allocations: 9.719 kB / 1.057 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3566, allocations: 0 / 1.057 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.3567, allocations: 0 / 1.057 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/0.3569, allocations: 36.27 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.3569, allocations: 7.984 kB / 1.058 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.3571, allocations: 27.95 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.3571, allocations: 0 / 1.058 GB, free: 3.023 MB / 0.8106 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.885e-05/0.3573, allocations: 123.2 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.3573, allocations: 3.906 kB / 1.058 GB, free: 2.891 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.738e-05/0.3573, allocations: 15.89 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3574, allocations: 4 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3574, allocations: 4 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3574, allocations: 4 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002328/0.3576, allocations: 205.5 kB / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3576, allocations: 0 / 1.058 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002191/0.3578, allocations: 35.94 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3579, allocations: 0 / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.3579, allocations: 0 / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3579, allocations: 4 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3579, allocations: 4 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007474/0.3586, allocations: 315.5 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.3587, allocations: 81.02 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.282e-05/0.3587, allocations: 4 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.3589, allocations: 35.94 kB / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.444e-05/0.359, allocations: 0 / 1.058 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.359, allocations: 4 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.554e-05/0.3591, allocations: 91.27 kB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3591, allocations: 0 / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002508/0.3593, allocations: 12 kB / 1.058 GB, free: 2 MB / 0.8106 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.0001383/0.3595, allocations: 107.1 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007509/0.3602, allocations: 195.7 kB / 1.059 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3602, allocations: 0 / 1.059 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003486/0.3606, allocations: 103.8 kB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.3609, allocations: 4 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009323/0.3618, allocations: 271.1 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.3621, allocations: 0.6887 MB / 1.06 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.128e-05/0.3622, allocations: 23.98 kB / 1.06 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.833e-05/0.3623, allocations: 7.438 kB / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.3623, allocations: 288 / 1.06 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of Templates: time 0.003058/0.3653, allocations: 0.8413 MB / 1.061 GB, free: 15.71 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