Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.453/1.453, allocations: 249.5 MB / 257 MB, free: 6.922 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 180.3 kB / 316.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.901/1.901, allocations: 205.3 MB / 0.5671 GB, free: 15.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001369/0.001369, allocations: 90.45 kB / 0.6714 GB, free: 4.906 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.805e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3336, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.008/1.342, allocations: 132.1 MB / 1.014 GB, free: 5.699 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/1.342, allocations: 72.02 kB / 1.014 GB, free: 5.66 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003288/1.345, allocations: 1.151 MB / 1.015 GB, free: 4.625 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.292e-06/1.346, allocations: 0 / 1.015 GB, free: 4.625 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.184e-06/1.346, allocations: 0 / 1.015 GB, free: 4.625 MB / 0.6355 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.0004077/1.346, allocations: 342.2 kB / 1.016 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/1.346, allocations: 12.03 kB / 1.016 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008112/1.347, allocations: 187.6 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/1.347, allocations: 178.9 kB / 1.016 GB, free: 3.84 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/1.347, allocations: 4 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.049e-05/1.347, allocations: 4 kB / 1.016 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002262/1.347, allocations: 112.4 kB / 1.016 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001793/1.347, allocations: 108.5 kB / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/1.347, allocations: 0 / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/1.347, allocations: 0 / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/1.348, allocations: 0 / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009424/1.348, allocations: 441.1 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003789/1.349, allocations: 158.2 kB / 1.017 GB, free: 3.094 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.071e-05/1.349, allocations: 50.86 kB / 1.017 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/1.349, allocations: 0 / 1.017 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/1.349, allocations: 30.56 kB / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/1.349, allocations: 0 / 1.017 GB, free: 3.016 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002653/1.349, allocations: 114.9 kB / 1.017 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/1.349, allocations: 59.02 kB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.254e-05/1.349, allocations: 96.75 kB / 1.017 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/1.349, allocations: 25.7 kB / 1.017 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.624e-05/1.35, allocations: 95.72 kB / 1.017 GB, free: 2.629 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/1.35, allocations: 3.906 kB / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-06/1.35, allocations: 0 / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001257/1.35, allocations: 314.8 kB / 1.018 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.188e-05/1.35, allocations: 45.34 kB / 1.018 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.634e-05/1.35, allocations: 41.91 kB / 1.018 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.237e-05/1.35, allocations: 30.34 kB / 1.018 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/1.35, allocations: 0 / 1.018 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001637/1.35, allocations: 112 kB / 1.018 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/1.35, allocations: 5.875 kB / 1.018 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/1.35, allocations: 0 / 1.018 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/1.35, allocations: 0 / 1.018 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002618/1.35, allocations: 55.81 kB / 1.018 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/1.35, allocations: 3.953 kB / 1.018 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/1.351, allocations: 44.89 kB / 1.018 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/1.351, allocations: 3.938 kB / 1.018 GB, free: 2.027 MB / 0.6355 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 () * 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 8.205e-05/1.351, allocations: 107.4 kB / 1.018 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/1.351, allocations: 4 kB / 1.018 GB, free: 1.914 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.754e-05/1.351, allocations: 4.344 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/1.351, allocations: 0 / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.509e-05/1.351, allocations: 7.984 kB / 1.018 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/1.351, allocations: 3.953 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/1.351, allocations: 176.1 kB / 1.018 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/1.351, allocations: 0 / 1.018 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/1.351, allocations: 50.75 kB / 1.018 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/1.351, allocations: 192 / 1.018 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/1.351, allocations: 0 / 1.018 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/1.351, allocations: 0.5 kB / 1.018 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/1.351, allocations: 4 kB / 1.018 GB, free: 1.648 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002184/1.352, allocations: 218.8 kB / 1.019 GB, free: 1.441 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/1.352, allocations: 77.11 kB / 1.019 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/1.352, allocations: 4 kB / 1.019 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002866/1.352, allocations: 35.95 kB / 1.019 GB, free: 1.309 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/1.352, allocations: 4 kB / 1.019 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/1.352, allocations: 3.984 kB / 1.019 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.069e-05/1.352, allocations: 91.39 kB / 1.019 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.51e-07/1.352, allocations: 0 / 1.019 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002159/1.352, allocations: 12 kB / 1.019 GB, free: 1.203 MB / 0.6355 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 () * 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.0001413/1.352, allocations: 95.25 kB / 1.019 GB, free: 1.102 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001882/1.353, allocations: 89.81 kB / 1.019 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/1.353, allocations: 0 / 1.019 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 8.658e-05/1.353, allocations: 52.89 kB / 1.019 GB, free: 1 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/1.353, allocations: 12.5 kB / 1.019 GB, free: 0.9883 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006216/1.354, allocations: 176.6 kB / 1.019 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002669/1.354, allocations: 0.6885 MB / 1.02 GB, free: 100 kB / 0.6355 GB Notification: Performance of simCode: alias equations: time 8.378e-05/1.354, allocations: 19.98 kB / 1.02 GB, free: 80 kB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.117e-05/1.354, allocations: 7.438 kB / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of SimCode: time 2.31e-07/1.354, allocations: 0 / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of Templates: time 0.002699/1.357, allocations: 0.7124 MB / 1.021 GB, free: 15.38 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_SmoothMin.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches