Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.01022/0.01022, allocations: 101.2 kB / 15.73 MB, free: 6.422 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.001827/0.001828, allocations: 188.8 kB / 16.67 MB, free: 6.352 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.499/1.499, allocations: 222.9 MB / 240.4 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.575/2.575, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 67.95 kB / 0.9508 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3623, allocations: 140.4 MB / 1.088 GB, free: 1.637 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002755/0.3651, allocations: 1.462 MB / 1.089 GB, free: 168 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0004149/0.3656, allocations: 148.3 kB / 1.089 GB, free: 16 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.446e-05/0.3656, allocations: 4 kB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.595e-05/0.3657, allocations: 0 / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.6e-05/0.3658, allocations: 3.938 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002547/0.366, allocations: 32 kB / 1.09 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.614e-05/0.3661, allocations: 43.73 kB / 1.09 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.3663, allocations: 24 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.879e-05/0.3663, allocations: 19.92 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.345e-05/0.3664, allocations: 19.91 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.3664, allocations: 4 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.176e-05/0.3665, allocations: 35.97 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.927e-05/0.3665, allocations: 11.94 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.514e-05/0.3666, allocations: 15.92 kB / 1.09 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.3667, allocations: 71.73 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3667, allocations: 0 / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3667, allocations: 0 / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.3667, allocations: 0 / 1.09 GB, free: 15.73 MB / 0.8575 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.0004854/0.3672, allocations: 355.4 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.3673, allocations: 12.03 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009828/0.3683, allocations: 216.5 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.3684, allocations: 168.3 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.3684, allocations: 384 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/0.3684, allocations: 8.375 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005271/0.369, allocations: 190 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.369, allocations: 192 / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.369, allocations: 7.938 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.369, allocations: 4 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007291/0.3697, allocations: 283.5 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008326/0.3706, allocations: 445.1 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009453/0.3715, allocations: 290.1 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003118/0.3719, allocations: 104.8 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.3719, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.3719, allocations: 34.56 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.3719, allocations: 3.938 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.001031/0.373, allocations: 309.2 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.373, allocations: 51.41 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.73e-05/0.3731, allocations: 129.7 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.3731, allocations: 25.7 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.3732, allocations: 88.14 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.3732, allocations: 7.844 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.287e-05/0.3733, allocations: 25.7 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.3734, allocations: 318.8 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003264/0.3737, allocations: 91.88 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003058/0.374, allocations: 99.86 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005794/0.3746, allocations: 168.6 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3746, allocations: 0 / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006722/0.3753, allocations: 221.7 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3753, allocations: 4 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3754, allocations: 3.984 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3754, allocations: 0 / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.3756, allocations: 39.88 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.3756, allocations: 4 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.3758, allocations: 27.95 kB / 1.093 GB, free: 11.85 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.3758, allocations: 0 / 1.093 GB, free: 11.85 MB / 0.8575 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.253e-05/0.3759, allocations: 121.8 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/0.3759, allocations: 7.906 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.758e-05/0.376, allocations: 7.906 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.376, allocations: 8 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.376, allocations: 4 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.376, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.3763, allocations: 205.5 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3763, allocations: 0 / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002067/0.3765, allocations: 35.94 kB / 1.094 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.3765, allocations: 4 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.3765, allocations: 0 / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.3765, allocations: 0 / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3765, allocations: 3.938 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007428/0.3773, allocations: 315.2 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.602e-05/0.3773, allocations: 85 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.3774, allocations: 4 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.3776, allocations: 27.95 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.3776, allocations: 4 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.3776, allocations: 4 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.473e-05/0.3777, allocations: 95.58 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3777, allocations: 0 / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002322/0.3779, allocations: 12 kB / 1.094 GB, free: 10.82 MB / 0.8575 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.0001482/0.3781, allocations: 107.2 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006818/0.3788, allocations: 191.8 kB / 1.095 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3788, allocations: 3.938 kB / 1.095 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003275/0.3791, allocations: 107.9 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.3794, allocations: 5.562 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008507/0.3802, allocations: 250.2 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.3805, allocations: 0.6963 MB / 1.096 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.964e-05/0.3806, allocations: 15.98 kB / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.342e-05/0.3807, allocations: 11.44 kB / 1.096 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of SimCode: time 1.9e-07/0.3807, allocations: 0 / 1.096 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of Templates: time 0.003057/0.3837, allocations: 0.9379 MB / 1.096 GB, free: 8.453 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches