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.005642/0.005642, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.00112/0.00112, allocations: 197.2 kB / 16.67 MB, free: 5.973 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.687/2.687, allocations: 437 MB / 0.7105 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 59.91 kB / 1.019 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3384, allocations: 151.6 MB / 1.167 GB, free: 6.926 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002742/0.3412, allocations: 1.461 MB / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0004298/0.3417, allocations: 148.3 kB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.111e-05/0.3417, allocations: 4 kB / 1.168 GB, free: 5.297 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.569e-05/0.3418, allocations: 3.938 kB / 1.168 GB, free: 5.293 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.15e-05/0.3419, allocations: 3.938 kB / 1.168 GB, free: 5.289 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.3421, allocations: 31.89 kB / 1.168 GB, free: 5.258 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.3422, allocations: 43.91 kB / 1.168 GB, free: 5.215 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.3424, allocations: 23.92 kB / 1.168 GB, free: 5.191 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.166e-05/0.3425, allocations: 15.94 kB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.867e-05/0.3425, allocations: 23.91 kB / 1.168 GB, free: 5.152 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.3425, allocations: 8 kB / 1.168 GB, free: 5.145 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.3426, allocations: 27.97 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.206e-05/0.3427, allocations: 15.92 kB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.108e-05/0.3427, allocations: 19.88 kB / 1.168 GB, free: 5.082 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.3429, allocations: 63.78 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3429, allocations: 0 / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.013e-06/0.3429, allocations: 0 / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.112e-06/0.3429, allocations: 0 / 1.168 GB, free: 5.02 MB / 0.92 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.0004886/0.3434, allocations: 363.2 kB / 1.169 GB, free: 4.613 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.3434, allocations: 16.03 kB / 1.169 GB, free: 4.598 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001045/0.3445, allocations: 208.5 kB / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.3446, allocations: 168.4 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.3446, allocations: 384 / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.3447, allocations: 4.375 kB / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005646/0.3452, allocations: 205.9 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3453, allocations: 192 / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.3453, allocations: 3.938 kB / 1.169 GB, free: 3.977 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.3453, allocations: 4 kB / 1.169 GB, free: 3.973 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008279/0.3461, allocations: 279.6 kB / 1.17 GB, free: 3.699 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009191/0.3471, allocations: 441.2 kB / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.3482, allocations: 290.2 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/0.3485, allocations: 104.8 kB / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/0.3486, allocations: 0 / 1.17 GB, free: 2.82 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.3486, allocations: 34.56 kB / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.3486, allocations: 0 / 1.17 GB, free: 2.777 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.001161/0.3498, allocations: 317.2 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.504e-05/0.3498, allocations: 51.41 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.541e-05/0.3499, allocations: 117.8 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.3499, allocations: 25.7 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.622e-05/0.35, allocations: 96.52 kB / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.525e-05/0.35, allocations: 11.89 kB / 1.171 GB, free: 2.133 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.058e-05/0.3501, allocations: 13.72 kB / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.3502, allocations: 322.8 kB / 1.171 GB, free: 1.789 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003696/0.3506, allocations: 95.81 kB / 1.171 GB, free: 1.695 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.3509, allocations: 99.88 kB / 1.172 GB, free: 1.598 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00065/0.3516, allocations: 168.6 kB / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3516, allocations: 0 / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007207/0.3523, allocations: 217.4 kB / 1.172 GB, free: 1.211 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.3524, allocations: 4 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3524, allocations: 0 / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.3524, allocations: 0 / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.3527, allocations: 43.94 kB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.3527, allocations: 0 / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.3529, allocations: 31.95 kB / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.3529, allocations: 0 / 1.172 GB, free: 1.133 MB / 0.92 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.179e-05/0.353, allocations: 121.7 kB / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.353, allocations: 7.953 kB / 1.172 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.787e-05/0.3531, allocations: 11.91 kB / 1.172 GB, free: 0.9766 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.3531, allocations: 4 kB / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.3531, allocations: 0 / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3531, allocations: 0 / 1.172 GB, free: 0.9727 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002359/0.3533, allocations: 213.5 kB / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3534, allocations: 0 / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.3536, allocations: 31.94 kB / 1.172 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3536, allocations: 0 / 1.172 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.3536, allocations: 4 kB / 1.172 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3536, allocations: 7.938 kB / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3536, allocations: 0 / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007846/0.3544, allocations: 315.2 kB / 1.173 GB, free: 356 kB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.3545, allocations: 81.11 kB / 1.173 GB, free: 256 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.3545, allocations: 0 / 1.173 GB, free: 256 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.3547, allocations: 31.95 kB / 1.173 GB, free: 224 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.911e-05/0.3548, allocations: 384 / 1.173 GB, free: 224 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.3548, allocations: 7.984 kB / 1.173 GB, free: 216 kB / 0.92 GB Notification: Performance of sorting global known variables: time 5.311e-05/0.3548, allocations: 91.27 kB / 1.173 GB, free: 124 kB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.3548, allocations: 0 / 1.173 GB, free: 124 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002347/0.3551, allocations: 12.28 kB / 1.173 GB, free: 112 kB / 0.92 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.0001392/0.3552, allocations: 107.2 kB / 1.173 GB, free: 16 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000761/0.356, allocations: 199.7 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.356, allocations: 3.938 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003572/0.3564, allocations: 103.9 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.3566, allocations: 4 kB / 1.173 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008667/0.3575, allocations: 261.2 kB / 1.174 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.3578, allocations: 0.6885 MB / 1.174 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.385e-05/0.3579, allocations: 19.98 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.392e-05/0.3579, allocations: 11.44 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of SimCode: time 1.763e-06/0.3579, allocations: 0 / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of Templates: time 0.003096/0.361, allocations: 0.9308 MB / 1.175 GB, free: 13.74 MB / 0.9356 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