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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.33/2.33, allocations: 393.5 MB / 408.4 MB, free: 11.05 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 175.9 kB / 0.4902 GB, free: 2.301 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.656/1.656, allocations: 223.1 MB / 0.7992 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000901/0.000901, allocations: 104.1 kB / 0.9396 GB, free: 1.965 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004084/0.0004082, allocations: 10.62 kB / 1.09 GB, free: 216.7 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3381, allocations: 143 MB / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1995/0.5376, allocations: 150.2 MB / 1.376 GB, free: 3.551 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003418/0.538, allocations: 75.97 kB / 1.376 GB, free: 3.477 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00353/0.5416, allocations: 1.153 MB / 1.377 GB, free: 2.32 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.565e-06/0.5416, allocations: 0 / 1.377 GB, free: 2.32 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.5416, allocations: 0 / 1.377 GB, free: 2.32 MB / 0.8698 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.0004855/0.5421, allocations: 364.2 kB / 1.377 GB, free: 1.918 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.5422, allocations: 8.562 kB / 1.377 GB, free: 1.91 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008366/0.543, allocations: 183.7 kB / 1.378 GB, free: 1.73 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001503/0.5432, allocations: 182.8 kB / 1.378 GB, free: 1.512 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.5432, allocations: 4 kB / 1.378 GB, free: 1.508 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.5432, allocations: 4 kB / 1.378 GB, free: 1.504 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005852/0.5438, allocations: 209.5 kB / 1.378 GB, free: 1.293 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.5438, allocations: 4 kB / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.5439, allocations: 0 / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.5439, allocations: 0 / 1.378 GB, free: 1.289 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008404/0.5447, allocations: 319.6 kB / 1.378 GB, free: 0.9766 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.5458, allocations: 457.1 kB / 1.379 GB, free: 488 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.5469, allocations: 334.2 kB / 1.379 GB, free: 144 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.547, allocations: 8.062 kB / 1.379 GB, free: 136 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.547, allocations: 38.52 kB / 1.379 GB, free: 88 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 2.445e-06/0.547, allocations: 0 / 1.379 GB, free: 88 kB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.00125/0.5483, allocations: 365.4 kB / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.5483, allocations: 51.41 kB / 1.38 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.5485, allocations: 109.2 kB / 1.38 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.5485, allocations: 25.7 kB / 1.38 GB, free: 15.51 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.706e-05/0.5486, allocations: 92.05 kB / 1.38 GB, free: 15.42 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.208e-05/0.5486, allocations: 15.83 kB / 1.38 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-06/0.5486, allocations: 0 / 1.38 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.5488, allocations: 314.8 kB / 1.38 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.5492, allocations: 119.8 kB / 1.38 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003361/0.5495, allocations: 111.9 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.5499, allocations: 107.9 kB / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5499, allocations: 384 / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007286/0.5506, allocations: 257.4 kB / 1.381 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.5506, allocations: 4 kB / 1.381 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.5506, allocations: 0 / 1.381 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.5507, allocations: 7.891 kB / 1.381 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.5509, allocations: 39.95 kB / 1.381 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.5509, allocations: 4 kB / 1.381 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/0.5511, allocations: 39.86 kB / 1.381 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.5512, allocations: 3.984 kB / 1.381 GB, free: 14.4 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001014/0.5513, allocations: 113.8 kB / 1.381 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.21e-05/0.5513, allocations: 4 kB / 1.381 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.886e-05/0.5514, allocations: 15.89 kB / 1.381 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.5514, allocations: 8.281 kB / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.5514, allocations: 4 kB / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.5514, allocations: 0 / 1.381 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002324/0.5516, allocations: 209.6 kB / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.5516, allocations: 0 / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002237/0.5519, allocations: 39.95 kB / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.5519, allocations: 4 kB / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.5519, allocations: 0 / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.393e-06/0.5519, allocations: 11.88 kB / 1.381 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.5519, allocations: 0 / 1.381 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007816/0.5527, allocations: 347.2 kB / 1.381 GB, free: 13.58 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.313e-05/0.5528, allocations: 81.11 kB / 1.382 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.5528, allocations: 0 / 1.382 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.553, allocations: 39.95 kB / 1.382 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.919e-05/0.5531, allocations: 7.938 kB / 1.382 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.455e-06/0.5531, allocations: 0 / 1.382 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.259e-05/0.5532, allocations: 99.27 kB / 1.382 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5532, allocations: 0 / 1.382 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002253/0.5534, allocations: 15.91 kB / 1.382 GB, free: 13.32 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001954/0.5536, allocations: 103.2 kB / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0008251/0.5545, allocations: 239.7 kB / 1.382 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.5545, allocations: 0 / 1.382 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003549/0.5548, allocations: 119.9 kB / 1.382 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.555, allocations: 288 / 1.382 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009285/0.556, allocations: 292.8 kB / 1.382 GB, free: 12.55 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.5563, allocations: 0.6887 MB / 1.383 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00011/0.5564, allocations: 31.92 kB / 1.383 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.645e-05/0.5565, allocations: 11.42 kB / 1.383 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of SimCode: time 3.6e-07/0.5565, allocations: 0 / 1.383 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of Templates: time 0.002951/0.5594, allocations: 0.8113 MB / 1.384 GB, free: 10.98 MB / 0.8855 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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches