Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.0009473/0.0009473, allocations: 86.8 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 223.3 MB / 240 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.87/2.87, allocations: 437.7 MB / 0.7117 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0006304/0.0006305, allocations: 15.98 kB / 0.8722 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8762/0.8769, allocations: 153.8 MB / 1.022 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.001649/0.8786, allocations: 1.176 MB / 1.024 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0003534/0.8789, allocations: 140.4 kB / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.009e-05/0.879, allocations: 0 / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.106e-05/0.879, allocations: 0 / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.854e-05/0.8791, allocations: 7.938 kB / 1.024 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000202/0.8793, allocations: 27.91 kB / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.777e-05/0.8794, allocations: 31.92 kB / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.8795, allocations: 23.97 kB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.094e-05/0.8796, allocations: 15.92 kB / 1.024 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.643e-05/0.8796, allocations: 15.92 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.09e-05/0.8796, allocations: 0 / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 9.216e-05/0.8797, allocations: 35.97 kB / 1.024 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.885e-06/0.8797, allocations: 0 / 1.024 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.589e-05/0.8798, allocations: 33.64 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001015/0.8799, allocations: 47.92 kB / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.8799, allocations: 3.984 kB / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.913e-06/0.8799, allocations: 0 / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.171e-06/0.8799, allocations: 0 / 1.024 GB, free: 14.49 MB / 0.7794 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.0005067/0.8805, allocations: 353.2 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.8805, allocations: 12.56 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001094/0.8816, allocations: 247.5 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.8818, allocations: 163.1 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.8818, allocations: 4 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.8818, allocations: 4 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005834/0.8824, allocations: 209.4 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.8824, allocations: 0 / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.8825, allocations: 4 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.8825, allocations: 4 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000815/0.8833, allocations: 323.5 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.8843, allocations: 465.1 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.8853, allocations: 342.1 kB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003235/0.8857, allocations: 124.8 kB / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.8857, allocations: 0 / 1.026 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.8857, allocations: 30.56 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.031e-06/0.8857, allocations: 0 / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.001051/0.8868, allocations: 365.2 kB / 1.026 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.8869, allocations: 55.41 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.831e-05/0.887, allocations: 126 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.887, allocations: 29.64 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.151e-05/0.887, allocations: 88.14 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.619e-05/0.8871, allocations: 11.81 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.8871, allocations: 0 / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.8872, allocations: 322.8 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003214/0.8875, allocations: 115.9 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/0.8879, allocations: 115.9 kB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.8882, allocations: 99.89 kB / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.8882, allocations: 0 / 1.027 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007243/0.8889, allocations: 253.5 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.889, allocations: 8 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.889, allocations: 0 / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.889, allocations: 0 / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/0.8893, allocations: 47.94 kB / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.8893, allocations: 0 / 1.028 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.8895, allocations: 35.95 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.8895, allocations: 3.938 kB / 1.028 GB, free: 10.39 MB / 0.7794 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.0001701/0.8897, allocations: 125.8 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.8898, allocations: 7.906 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.126e-05/0.8898, allocations: 3.906 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.8898, allocations: 0 / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.452e-05/0.8899, allocations: 336 / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.8899, allocations: 11.92 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003219/0.8902, allocations: 205.5 kB / 1.028 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.8902, allocations: 7.984 kB / 1.028 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002195/0.8904, allocations: 47.95 kB / 1.028 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.8905, allocations: 3.984 kB / 1.028 GB, free: 9.918 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.8905, allocations: 4 kB / 1.028 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.8905, allocations: 0 / 1.028 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.8905, allocations: 0 / 1.028 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008215/0.8913, allocations: 355.2 kB / 1.028 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.873e-05/0.8914, allocations: 85.05 kB / 1.029 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.8914, allocations: 0 / 1.029 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.8916, allocations: 35.95 kB / 1.029 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.093e-05/0.8917, allocations: 7.984 kB / 1.029 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.8917, allocations: 0 / 1.029 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001011/0.8918, allocations: 103.6 kB / 1.029 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.51e-07/0.8918, allocations: 0 / 1.029 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002469/0.8921, allocations: 12 kB / 1.029 GB, free: 9.293 MB / 0.7794 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.0001668/0.8922, allocations: 103.2 kB / 1.029 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007274/0.893, allocations: 231.7 kB / 1.029 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.893, allocations: 0 / 1.029 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003462/0.8933, allocations: 123.8 kB / 1.029 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.8936, allocations: 3.953 kB / 1.029 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008733/0.8945, allocations: 300.4 kB / 1.029 GB, free: 8.512 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.8948, allocations: 0.6887 MB / 1.03 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.000102/0.8949, allocations: 23.98 kB / 1.03 GB, free: 7.773 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.976e-05/0.895, allocations: 7.438 kB / 1.03 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of SimCode: time 4.1e-07/0.895, allocations: 0 / 1.03 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of Templates: time 0.003458/0.8984, allocations: 0.824 MB / 1.031 GB, free: 6.949 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches