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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001163/0.001163, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 199.5 kB / 16.79 MB, free: 6.809 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.37/1.37, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.753/2.753, allocations: 461.8 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 70.34 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.28/0.2812, allocations: 157.4 MB / 1.053 GB, free: 8.359 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002943/0.2842, allocations: 1.535 MB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000448/0.2847, allocations: 147.6 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.613e-05/0.2847, allocations: 0 / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.984e-05/0.2848, allocations: 0 / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.453e-05/0.2849, allocations: 3.938 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002013/0.2851, allocations: 23.97 kB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.499e-05/0.2852, allocations: 43.84 kB / 1.054 GB, free: 6.594 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.2853, allocations: 23.98 kB / 1.054 GB, free: 6.57 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.316e-05/0.2853, allocations: 11.94 kB / 1.054 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 3.931e-05/0.2854, allocations: 15.92 kB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.2854, allocations: 4 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.984e-05/0.2855, allocations: 35.97 kB / 1.055 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.2855, allocations: 7.984 kB / 1.055 GB, free: 6.496 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.093e-05/0.2856, allocations: 23.86 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.2857, allocations: 39.94 kB / 1.055 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.2857, allocations: 4 kB / 1.055 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.42e-07/0.2857, allocations: 0 / 1.055 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.937e-06/0.2857, allocations: 0 / 1.055 GB, free: 6.43 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.0004517/0.2862, allocations: 359.6 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2862, allocations: 11.97 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0011/0.2873, allocations: 216.5 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.2874, allocations: 168.3 kB / 1.055 GB, free: 5.602 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.817e-05/0.2875, allocations: 4.375 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.183e-05/0.2875, allocations: 8.312 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005886/0.2881, allocations: 202 kB / 1.056 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2881, allocations: 4.188 kB / 1.056 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.2881, allocations: 7.938 kB / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2881, allocations: 0 / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008175/0.289, allocations: 279.5 kB / 1.056 GB, free: 5.102 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009179/0.2899, allocations: 433.3 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.291, allocations: 282.2 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003399/0.2913, allocations: 104.8 kB / 1.057 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.29e-05/0.2914, allocations: 4 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.2914, allocations: 38.48 kB / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.363e-06/0.2914, allocations: 0 / 1.057 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.00111/0.2925, allocations: 309.2 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.2926, allocations: 51.41 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.2927, allocations: 121.8 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.2927, allocations: 25.7 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.559e-05/0.2927, allocations: 92.14 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.197e-05/0.2928, allocations: 11.83 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.066e-05/0.2928, allocations: 17.72 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.293, allocations: 326.8 kB / 1.058 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/0.2933, allocations: 91.88 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003335/0.2937, allocations: 99.81 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006264/0.2943, allocations: 164.6 kB / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2943, allocations: 0 / 1.058 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007251/0.295, allocations: 221.6 kB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.2951, allocations: 5.719 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.2951, allocations: 0 / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2951, allocations: 8.047 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/0.2953, allocations: 39.92 kB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.2954, allocations: 0 / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.2955, allocations: 27.95 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.2956, allocations: 3.938 kB / 1.058 GB, free: 2.543 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.05e-05/0.2957, allocations: 127.2 kB / 1.058 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.308e-05/0.2957, allocations: 7.906 kB / 1.058 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.2958, allocations: 15.91 kB / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2958, allocations: 0 / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2958, allocations: 0 / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.2958, allocations: 0 / 1.058 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000221/0.296, allocations: 209.5 kB / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.296, allocations: 0 / 1.059 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002303/0.2963, allocations: 35.94 kB / 1.059 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.2963, allocations: 0 / 1.059 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.2963, allocations: 0 / 1.059 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2963, allocations: 0 / 1.059 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2963, allocations: 4 kB / 1.059 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007408/0.297, allocations: 311.2 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.831e-05/0.2971, allocations: 89.02 kB / 1.059 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.2971, allocations: 4.312 kB / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.2973, allocations: 23.95 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.812e-05/0.2974, allocations: 7.984 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.2974, allocations: 4 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.237e-05/0.2975, allocations: 99.2 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2975, allocations: 0 / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002346/0.2977, allocations: 12 kB / 1.059 GB, free: 1.516 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.0001177/0.2978, allocations: 103.2 kB / 1.059 GB, free: 1.406 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0007215/0.2986, allocations: 191.7 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2986, allocations: 0 / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.2989, allocations: 107.8 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002414/0.2992, allocations: 4 kB / 1.059 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008737/0.3001, allocations: 297.1 kB / 1.06 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.3003, allocations: 0.6887 MB / 1.06 GB, free: 72 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.558e-05/0.3004, allocations: 19.42 kB / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of SimCode: time 3.2e-07/0.3004, allocations: 0 / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of Templates: time 0.0025/0.3029, allocations: 1.161 MB / 1.062 GB, free: 14.89 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches