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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001196/0.001196, allocations: 105.3 kB / 16.41 MB, free: 5.977 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.001057/0.001057, allocations: 189.1 kB / 17.34 MB, free: 5.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.557/2.557, allocations: 437 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 75.88 kB / 1.019 GB, free: 9.352 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.832/0.8334, allocations: 151.6 MB / 1.167 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.003057/0.8365, allocations: 1.461 MB / 1.169 GB, free: 2.359 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004837/0.837, allocations: 146.8 kB / 1.169 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.521e-05/0.8371, allocations: 0 / 1.169 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.913e-05/0.8371, allocations: 7.875 kB / 1.169 GB, free: 2.207 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.919e-05/0.8372, allocations: 7.984 kB / 1.169 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.8375, allocations: 35.91 kB / 1.169 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.8377, allocations: 39.91 kB / 1.169 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.8378, allocations: 19.94 kB / 1.169 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.27e-05/0.8379, allocations: 23.92 kB / 1.169 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.343e-05/0.8379, allocations: 23.84 kB / 1.169 GB, free: 2.059 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.838, allocations: 4 kB / 1.169 GB, free: 2.055 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.8381, allocations: 35.97 kB / 1.169 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.737e-05/0.8381, allocations: 4 kB / 1.169 GB, free: 2.016 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.718e-05/0.8381, allocations: 23.86 kB / 1.169 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.00017/0.8383, allocations: 59.38 kB / 1.169 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.8383, allocations: 4 kB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8383, allocations: 0 / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.8383, allocations: 0 / 1.169 GB, free: 1.934 MB / 0.8887 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.0005415/0.8389, allocations: 372.2 kB / 1.169 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.8389, allocations: 8.922 kB / 1.17 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001182/0.8401, allocations: 212.5 kB / 1.17 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.8403, allocations: 164.3 kB / 1.17 GB, free: 1.105 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.8403, allocations: 12.38 kB / 1.17 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.8403, allocations: 384 / 1.17 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006105/0.841, allocations: 198 kB / 1.17 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.841, allocations: 192 / 1.17 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.841, allocations: 3.938 kB / 1.17 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.841, allocations: 0 / 1.17 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008493/0.8419, allocations: 283.6 kB / 1.17 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009077/0.8428, allocations: 437.3 kB / 1.171 GB, free: 140 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.8439, allocations: 290.3 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003659/0.8443, allocations: 100.8 kB / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.8444, allocations: 4 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.8444, allocations: 30.56 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.8444, allocations: 0 / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3): time 0.001181/0.8456, allocations: 313.2 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.8456, allocations: 51.41 kB / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.8457, allocations: 129.8 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.8458, allocations: 25.7 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.444e-05/0.8458, allocations: 88.14 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.765e-05/0.8459, allocations: 15.84 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.317e-05/0.8459, allocations: 17.7 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.846, allocations: 322.8 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000356/0.8464, allocations: 95.88 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.8468, allocations: 99.88 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006629/0.8474, allocations: 168.6 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.8474, allocations: 0 / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00077/0.8482, allocations: 217.4 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.8482, allocations: 7.938 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.8483, allocations: 4 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.8483, allocations: 4 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.8485, allocations: 31.94 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.8486, allocations: 0 / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.8488, allocations: 27.95 kB / 1.173 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.8488, allocations: 0 / 1.173 GB, free: 14.05 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.853e-05/0.8489, allocations: 121.8 kB / 1.173 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.074e-05/0.8489, allocations: 11.94 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-05/0.849, allocations: 11.91 kB / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.849, allocations: 0 / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.849, allocations: 0 / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.849, allocations: 0 / 1.173 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.8493, allocations: 209.5 kB / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.8493, allocations: 0 / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/0.8495, allocations: 35.94 kB / 1.173 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.8495, allocations: 4 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.8496, allocations: 0 / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.8496, allocations: 0 / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.8496, allocations: 3.938 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008175/0.8504, allocations: 315.2 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.253e-05/0.8505, allocations: 81.48 kB / 1.173 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.8505, allocations: 3.984 kB / 1.173 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.8507, allocations: 23.95 kB / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.061e-05/0.8508, allocations: 8 kB / 1.174 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.8508, allocations: 3.984 kB / 1.174 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.327e-05/0.8508, allocations: 99.58 kB / 1.174 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of sort global known variables: time 5.61e-07/0.8509, allocations: 4 kB / 1.174 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002389/0.8511, allocations: 12 kB / 1.174 GB, free: 13.02 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001449/0.8512, allocations: 99.19 kB / 1.174 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008164/0.8521, allocations: 203.7 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.8521, allocations: 0 / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003762/0.8525, allocations: 95.88 kB / 1.174 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.8528, allocations: 11.92 kB / 1.174 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.8539, allocations: 286.9 kB / 1.174 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.8542, allocations: 0.6924 MB / 1.175 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.996e-05/0.8543, allocations: 11.44 kB / 1.175 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of SimCode: time 3.41e-07/0.8543, allocations: 0 / 1.175 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of Templates: time 0.003222/0.8575, allocations: 1.173 MB / 1.176 GB, free: 10.4 MB / 0.9044 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches