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.0008433/0.0008434, allocations: 84.08 kB / 16.02 MB, free: 92 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.0009918/0.000992, allocations: 185.6 kB / 16.92 MB, free: 6.293 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.414/1.414, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.736/2.736, allocations: 462.6 MB / 0.737 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003575, allocations: 9.75 kB / 0.9034 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2812, allocations: 159.6 MB / 1.059 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.001679/0.2829, allocations: 1.179 MB / 1.06 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000399/0.2833, allocations: 155.5 kB / 1.061 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.137e-05/0.2834, allocations: 4 kB / 1.061 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.901e-05/0.2834, allocations: 0 / 1.061 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.524e-05/0.2835, allocations: 11.92 kB / 1.061 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001952/0.2837, allocations: 15.98 kB / 1.061 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.744e-05/0.2838, allocations: 39.91 kB / 1.061 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.2839, allocations: 20 kB / 1.061 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.449e-05/0.284, allocations: 19.84 kB / 1.061 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.517e-05/0.284, allocations: 15.92 kB / 1.061 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.284, allocations: 4 kB / 1.061 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.914e-05/0.2841, allocations: 23.98 kB / 1.061 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.573e-05/0.2842, allocations: 11.92 kB / 1.061 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.842e-05/0.2842, allocations: 41.58 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001047/0.2843, allocations: 43.92 kB / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2843, allocations: 0 / 1.061 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.803e-06/0.2843, allocations: 4 kB / 1.061 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.2843, allocations: 0 / 1.061 GB, free: 3.328 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.000484/0.2848, allocations: 359.6 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.2849, allocations: 11.97 kB / 1.061 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001202/0.2861, allocations: 248.5 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.2862, allocations: 172.2 kB / 1.062 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.2863, allocations: 4.375 kB / 1.062 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.387e-05/0.2863, allocations: 4.375 kB / 1.062 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006432/0.2869, allocations: 214 kB / 1.062 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.287, allocations: 192 / 1.062 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.287, allocations: 11.88 kB / 1.062 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.287, allocations: 0 / 1.062 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009209/0.2879, allocations: 319.6 kB / 1.062 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009645/0.2889, allocations: 457.2 kB / 1.063 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.2901, allocations: 338.1 kB / 1.063 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003787/0.2905, allocations: 124.8 kB / 1.063 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.2905, allocations: 4 kB / 1.063 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.2906, allocations: 30.56 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.2906, allocations: 0 / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.001268/0.2918, allocations: 361.3 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.2919, allocations: 51.41 kB / 1.063 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.292, allocations: 133.7 kB / 1.064 GB, free: 360 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.292, allocations: 29.64 kB / 1.064 GB, free: 324 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.025e-05/0.2921, allocations: 92.05 kB / 1.064 GB, free: 228 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.326e-05/0.2921, allocations: 7.844 kB / 1.064 GB, free: 220 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/0.2922, allocations: 13.72 kB / 1.064 GB, free: 200 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.2923, allocations: 322.8 kB / 1.064 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/0.2927, allocations: 115.9 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.2931, allocations: 111.9 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007292/0.2938, allocations: 208.6 kB / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2938, allocations: 0 / 1.064 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008119/0.2947, allocations: 253.4 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.2947, allocations: 8 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.2947, allocations: 3.938 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.2947, allocations: 0 / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/0.295, allocations: 51.94 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.295, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002121/0.2952, allocations: 39.95 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.2952, allocations: 0 / 1.065 GB, free: 15.09 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 9.751e-05/0.2953, allocations: 121.8 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.344e-05/0.2954, allocations: 4 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.187e-05/0.2954, allocations: 7.906 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2954, allocations: 0 / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.2954, allocations: 4.328 kB / 1.065 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2955, allocations: 3.984 kB / 1.065 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.2957, allocations: 201.5 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.2957, allocations: 7.984 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002378/0.2959, allocations: 35.95 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.296, allocations: 7.984 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.296, allocations: 8 kB / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.296, allocations: 0 / 1.065 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.296, allocations: 3.984 kB / 1.065 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008687/0.2969, allocations: 355.1 kB / 1.066 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.896e-05/0.2969, allocations: 85.02 kB / 1.066 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.2969, allocations: 0 / 1.066 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.2972, allocations: 35.95 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.519e-05/0.2972, allocations: 11.92 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.2972, allocations: 0 / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.696e-05/0.2973, allocations: 99.58 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2973, allocations: 0 / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000238/0.2976, allocations: 16 kB / 1.066 GB, free: 14 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.0001299/0.2977, allocations: 99.19 kB / 1.066 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008416/0.2985, allocations: 239.7 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2986, allocations: 0 / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004022/0.299, allocations: 115.9 kB / 1.066 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.2992, allocations: 4 kB / 1.066 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009611/0.3002, allocations: 326.5 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.3005, allocations: 0.6848 MB / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.754e-05/0.3005, allocations: 11.44 kB / 1.067 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3005, allocations: 0 / 1.067 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of Templates: time 0.002518/0.3031, allocations: 1.161 MB / 1.068 GB, free: 11.31 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