Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Utilities.Math.Examples.SmoothMin") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.303/2.303, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001528/0.001528, allocations: 173.2 kB / 498.1 MB, free: 5.742 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.604/1.604, allocations: 223.2 MB / 0.7948 GB, free: 17.82 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.001053/0.001053, allocations: 88.28 kB / 0.9346 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.000403, allocations: 9.375 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3532, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2095/0.5628, allocations: 149.4 MB / 1.369 GB, free: 12.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5632, allocations: 79.95 kB / 1.369 GB, free: 12.52 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00368/0.5669, allocations: 1.154 MB / 1.37 GB, free: 11.36 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.084e-06/0.5669, allocations: 3.938 kB / 1.37 GB, free: 11.36 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.114e-06/0.567, allocations: 0 / 1.37 GB, free: 11.36 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.0004609/0.5674, allocations: 362 kB / 1.37 GB, free: 10.96 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.5675, allocations: 8.031 kB / 1.37 GB, free: 10.95 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008266/0.5683, allocations: 191.6 kB / 1.371 GB, free: 10.76 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.5685, allocations: 175 kB / 1.371 GB, free: 10.55 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.5685, allocations: 4 kB / 1.371 GB, free: 10.55 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.5685, allocations: 4 kB / 1.371 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000586/0.5691, allocations: 217.4 kB / 1.371 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.5691, allocations: 4 kB / 1.371 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.5692, allocations: 0 / 1.371 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.5692, allocations: 0 / 1.371 GB, free: 10.32 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008807/0.5701, allocations: 315.6 kB / 1.371 GB, free: 10.01 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009985/0.5711, allocations: 457.1 kB / 1.372 GB, free: 9.516 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.5722, allocations: 342.3 kB / 1.372 GB, free: 9.172 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.5722, allocations: 0 / 1.372 GB, free: 9.172 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.5722, allocations: 34.52 kB / 1.372 GB, free: 9.129 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 3.657e-06/0.5722, allocations: 0 / 1.372 GB, free: 9.129 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.001216/0.5735, allocations: 377.2 kB / 1.372 GB, free: 8.754 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/0.5735, allocations: 51.41 kB / 1.372 GB, free: 8.691 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.5737, allocations: 113.2 kB / 1.373 GB, free: 8.57 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.5737, allocations: 25.7 kB / 1.373 GB, free: 8.539 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.506e-05/0.5738, allocations: 92.08 kB / 1.373 GB, free: 8.445 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.5738, allocations: 3.906 kB / 1.373 GB, free: 8.441 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.046e-05/0.5738, allocations: 4 kB / 1.373 GB, free: 8.438 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001682/0.574, allocations: 322.8 kB / 1.373 GB, free: 8.113 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003389/0.5743, allocations: 111.9 kB / 1.373 GB, free: 8.004 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000331/0.5747, allocations: 111.9 kB / 1.373 GB, free: 7.895 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.575, allocations: 103.9 kB / 1.373 GB, free: 7.793 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.575, allocations: 0 / 1.373 GB, free: 7.793 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007151/0.5757, allocations: 257.6 kB / 1.374 GB, free: 7.535 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.5758, allocations: 4 kB / 1.374 GB, free: 7.531 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.5758, allocations: 384 / 1.374 GB, free: 7.531 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.5758, allocations: 3.953 kB / 1.374 GB, free: 7.527 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.5761, allocations: 47.94 kB / 1.374 GB, free: 7.48 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.5761, allocations: 0 / 1.374 GB, free: 7.48 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.5763, allocations: 43.89 kB / 1.374 GB, free: 7.438 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.5763, allocations: 4 kB / 1.374 GB, free: 7.434 MB / 0.8698 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.0001048/0.5764, allocations: 113.8 kB / 1.374 GB, free: 7.312 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.478e-05/0.5765, allocations: 11.89 kB / 1.374 GB, free: 7.301 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.032e-05/0.5765, allocations: 11.91 kB / 1.374 GB, free: 7.285 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.5765, allocations: 3.953 kB / 1.374 GB, free: 7.281 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.5765, allocations: 0 / 1.374 GB, free: 7.281 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.5765, allocations: 0 / 1.374 GB, free: 7.281 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.5768, allocations: 209.7 kB / 1.374 GB, free: 7.027 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.5768, allocations: 4 kB / 1.374 GB, free: 7.023 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.577, allocations: 43.94 kB / 1.374 GB, free: 6.98 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.5771, allocations: 0 / 1.374 GB, free: 6.98 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.5771, allocations: 0 / 1.374 GB, free: 6.98 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.5771, allocations: 3.953 kB / 1.374 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.245e-05/0.5771, allocations: 0 / 1.374 GB, free: 6.977 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007764/0.5779, allocations: 351.2 kB / 1.374 GB, free: 6.617 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.5779, allocations: 85.02 kB / 1.374 GB, free: 6.516 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.578, allocations: 7.984 kB / 1.374 GB, free: 6.508 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.5782, allocations: 39.95 kB / 1.374 GB, free: 6.469 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.626e-05/0.5783, allocations: 3.953 kB / 1.374 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.5783, allocations: 0 / 1.374 GB, free: 6.465 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.142e-05/0.5783, allocations: 95.27 kB / 1.375 GB, free: 6.371 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5783, allocations: 0 / 1.375 GB, free: 6.371 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002126/0.5786, allocations: 16 kB / 1.375 GB, free: 6.355 MB / 0.8698 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.000148/0.5787, allocations: 99.03 kB / 1.375 GB, free: 6.246 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0007417/0.5795, allocations: 243.7 kB / 1.375 GB, free: 6.008 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.5795, allocations: 0 / 1.375 GB, free: 6.008 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003398/0.5798, allocations: 115.9 kB / 1.375 GB, free: 5.895 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.58, allocations: 9.078 kB / 1.375 GB, free: 5.887 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009071/0.5809, allocations: 288.7 kB / 1.375 GB, free: 5.578 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.5812, allocations: 0.6926 MB / 1.376 GB, free: 4.859 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 9.987e-05/0.5814, allocations: 28.27 kB / 1.376 GB, free: 4.832 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.371e-05/0.5814, allocations: 7.438 kB / 1.376 GB, free: 4.824 MB / 0.8698 GB Notification: Performance of SimCode: time 2.21e-07/0.5814, allocations: 0 / 1.376 GB, free: 4.824 MB / 0.8698 GB Notification: Performance of Templates: time 0.002917/0.5844, allocations: 0.8108 MB / 1.377 GB, free: 4.016 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches