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.333/1.333, allocations: 251.9 MB / 266.9 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 188.3 kB / 326.5 MB, free: 2.219 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.605/1.605, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0007939/0.0007939, allocations: 95.72 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003144/0.0003145, allocations: 9.094 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.1854, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.3392, allocations: 131.9 MB / 1.029 GB, free: 11.85 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.3394, allocations: 79.94 kB / 1.029 GB, free: 11.77 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003158/0.3426, allocations: 1.145 MB / 1.03 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.704e-06/0.3426, allocations: 0 / 1.03 GB, free: 10.62 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.3426, allocations: 0 / 1.03 GB, free: 10.62 MB / 0.6823 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.0003545/0.343, allocations: 365.2 kB / 1.03 GB, free: 10.22 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.343, allocations: 12.02 kB / 1.03 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007972/0.3438, allocations: 179.7 kB / 1.031 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.3439, allocations: 178.9 kB / 1.031 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.3439, allocations: 4 kB / 1.031 GB, free: 9.812 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.344, allocations: 4 kB / 1.031 GB, free: 9.809 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/0.3445, allocations: 205.5 kB / 1.031 GB, free: 9.602 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.3445, allocations: 0 / 1.031 GB, free: 9.602 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.3446, allocations: 12 kB / 1.031 GB, free: 9.59 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.3446, allocations: 3.938 kB / 1.031 GB, free: 9.586 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008321/0.3454, allocations: 311.6 kB / 1.031 GB, free: 9.281 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000875/0.3463, allocations: 465.2 kB / 1.032 GB, free: 8.773 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.3474, allocations: 338.1 kB / 1.032 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.3474, allocations: 4.062 kB / 1.032 GB, free: 8.43 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.3474, allocations: 34.56 kB / 1.032 GB, free: 8.387 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 3.096e-06/0.3474, allocations: 3.984 kB / 1.032 GB, free: 8.383 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.001119/0.3486, allocations: 369.4 kB / 1.032 GB, free: 8.016 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.3486, allocations: 55.39 kB / 1.032 GB, free: 7.949 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.901e-05/0.3487, allocations: 113 kB / 1.033 GB, free: 7.828 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.3487, allocations: 25.7 kB / 1.033 GB, free: 7.797 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.463e-05/0.3488, allocations: 88.14 kB / 1.033 GB, free: 7.707 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.3488, allocations: 19.83 kB / 1.033 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.263e-06/0.3488, allocations: 0 / 1.033 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.265e-05/0.3489, allocations: 318.8 kB / 1.033 GB, free: 7.367 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003517/0.3493, allocations: 119.8 kB / 1.033 GB, free: 7.25 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003289/0.3496, allocations: 111.9 kB / 1.033 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003119/0.3499, allocations: 99.89 kB / 1.033 GB, free: 7.043 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3499, allocations: 4 kB / 1.033 GB, free: 7.039 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000685/0.3506, allocations: 249.5 kB / 1.034 GB, free: 6.789 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.3507, allocations: 4 kB / 1.034 GB, free: 6.785 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3507, allocations: 4 kB / 1.034 GB, free: 6.781 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.3507, allocations: 0 / 1.034 GB, free: 6.781 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.3509, allocations: 47.89 kB / 1.034 GB, free: 6.734 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.351, allocations: 3.938 kB / 1.034 GB, free: 6.73 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.3512, allocations: 39.95 kB / 1.034 GB, free: 6.691 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.3512, allocations: 0 / 1.034 GB, free: 6.691 MB / 0.6823 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 8.949e-05/0.3513, allocations: 117.8 kB / 1.034 GB, free: 6.566 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.3513, allocations: 7.906 kB / 1.034 GB, free: 6.559 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.899e-05/0.3513, allocations: 7.906 kB / 1.034 GB, free: 6.551 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.3514, allocations: 4 kB / 1.034 GB, free: 6.547 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3514, allocations: 7.953 kB / 1.034 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3514, allocations: 0 / 1.034 GB, free: 6.539 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.3516, allocations: 205.6 kB / 1.034 GB, free: 6.289 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3516, allocations: 0 / 1.034 GB, free: 6.289 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.3518, allocations: 43.94 kB / 1.034 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3518, allocations: 0 / 1.034 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.3519, allocations: 4 kB / 1.034 GB, free: 6.242 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3519, allocations: 4 kB / 1.034 GB, free: 6.238 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.3519, allocations: 3.953 kB / 1.034 GB, free: 6.234 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007253/0.3526, allocations: 351.2 kB / 1.034 GB, free: 5.875 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.675e-05/0.3526, allocations: 85.09 kB / 1.034 GB, free: 5.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.3527, allocations: 0 / 1.034 GB, free: 5.773 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.3529, allocations: 31.95 kB / 1.035 GB, free: 5.742 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.3529, allocations: 4 kB / 1.035 GB, free: 5.738 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.353, allocations: 4.328 kB / 1.035 GB, free: 5.734 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.253e-05/0.353, allocations: 107.2 kB / 1.035 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.31e-07/0.353, allocations: 0 / 1.035 GB, free: 5.629 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002151/0.3532, allocations: 12 kB / 1.035 GB, free: 5.617 MB / 0.6823 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.0001193/0.3534, allocations: 103.2 kB / 1.035 GB, free: 5.508 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000708/0.3541, allocations: 231.8 kB / 1.035 GB, free: 5.281 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3541, allocations: 0 / 1.035 GB, free: 5.281 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003454/0.3544, allocations: 128.3 kB / 1.035 GB, free: 5.156 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001582/0.3546, allocations: 0 / 1.035 GB, free: 5.156 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000875/0.3555, allocations: 292.5 kB / 1.035 GB, free: 4.84 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.3557, allocations: 0.6926 MB / 1.036 GB, free: 4.121 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 8.771e-05/0.3558, allocations: 23.98 kB / 1.036 GB, free: 4.098 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.082e-05/0.3559, allocations: 7.438 kB / 1.036 GB, free: 4.094 MB / 0.6823 GB Notification: Performance of SimCode: time 2.11e-07/0.3559, allocations: 0 / 1.036 GB, free: 4.094 MB / 0.6823 GB Notification: Performance of Templates: time 0.002434/0.3583, allocations: 0.8118 MB / 1.037 GB, free: 3.285 MB / 0.6823 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