Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001778/0.001778, allocations: 105.1 kB / 16.27 MB, free: 6.398 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.002043/0.002043, allocations: 191.8 kB / 17.2 MB, free: 5.969 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.454/1.454, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.787/2.787, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 68.5 kB / 0.9245 GB, free: 15.95 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7606/0.7626, allocations: 162.2 MB / 1.083 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002793/0.7654, allocations: 1.455 MB / 1.084 GB, free: 0.6016 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0004089/0.7658, allocations: 150.2 kB / 1.084 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.529e-05/0.7659, allocations: 0.75 kB / 1.084 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.2e-05/0.7659, allocations: 4.688 kB / 1.084 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.525e-05/0.766, allocations: 10.23 kB / 1.084 GB, free: 500 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.7663, allocations: 30.12 kB / 1.085 GB, free: 488 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.443e-05/0.7664, allocations: 41.3 kB / 1.085 GB, free: 468 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.7665, allocations: 20.61 kB / 1.085 GB, free: 460 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.706e-05/0.7666, allocations: 25.11 kB / 1.085 GB, free: 444 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.62e-05/0.7666, allocations: 17.91 kB / 1.085 GB, free: 436 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.7666, allocations: 4.531 kB / 1.085 GB, free: 436 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.706e-05/0.7667, allocations: 32.36 kB / 1.085 GB, free: 428 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.721e-05/0.7668, allocations: 12.61 kB / 1.085 GB, free: 420 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.851e-05/0.7668, allocations: 13.66 kB / 1.085 GB, free: 412 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.7669, allocations: 68.77 kB / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.7669, allocations: 2.172 kB / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7669, allocations: 0 / 1.085 GB, free: 380 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.767, allocations: 0 / 1.085 GB, free: 380 kB / 0.8262 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.0003995/0.7674, allocations: 359.3 kB / 1.085 GB, free: 0 / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.7674, allocations: 10.3 kB / 1.085 GB, free: 0 / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/0.7686, allocations: 216.2 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.7687, allocations: 164.3 kB / 1.085 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.7687, allocations: 1.812 kB / 1.085 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.205e-05/0.7688, allocations: 7.875 kB / 1.085 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006259/0.7694, allocations: 195.9 kB / 1.086 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.7694, allocations: 4.188 kB / 1.086 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.7694, allocations: 4.594 kB / 1.086 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.7694, allocations: 1.031 kB / 1.086 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009467/0.7704, allocations: 282 kB / 1.086 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.7714, allocations: 439.9 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001165/0.7726, allocations: 288.8 kB / 1.087 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003752/0.773, allocations: 102.2 kB / 1.087 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.773, allocations: 5 kB / 1.087 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.7731, allocations: 31.98 kB / 1.087 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.7731, allocations: 0 / 1.087 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.001233/0.7743, allocations: 311.4 kB / 1.087 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.7744, allocations: 56.41 kB / 1.087 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.7745, allocations: 118.5 kB / 1.087 GB, free: 14.97 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/0.7745, allocations: 25.7 kB / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.587e-05/0.7746, allocations: 88.17 kB / 1.087 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/0.7746, allocations: 10.31 kB / 1.087 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.852e-05/0.7747, allocations: 23.55 kB / 1.087 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.7748, allocations: 323.2 kB / 1.088 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003848/0.7752, allocations: 95.05 kB / 1.088 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003735/0.7756, allocations: 92.33 kB / 1.088 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007008/0.7763, allocations: 173.5 kB / 1.088 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7763, allocations: 0 / 1.088 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007938/0.7771, allocations: 219.5 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.7771, allocations: 5.422 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.7772, allocations: 1.094 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.7772, allocations: 0 / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.7775, allocations: 33.08 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.7775, allocations: 2.047 kB / 1.088 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.7777, allocations: 31.03 kB / 1.088 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.7777, allocations: 1.797 kB / 1.088 GB, free: 14.37 MB / 0.8419 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 0.0001221/0.7778, allocations: 120.3 kB / 1.088 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.528e-05/0.7779, allocations: 6.406 kB / 1.088 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.439e-05/0.7779, allocations: 7.109 kB / 1.088 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.7779, allocations: 2.047 kB / 1.088 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.7779, allocations: 0 / 1.088 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-06/0.7779, allocations: 4.703 kB / 1.088 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.7782, allocations: 212.9 kB / 1.089 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.7782, allocations: 4.562 kB / 1.089 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/0.7785, allocations: 37.83 kB / 1.089 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.7785, allocations: 3.938 kB / 1.089 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.7785, allocations: 2.641 kB / 1.089 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.7785, allocations: 0 / 1.089 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.7785, allocations: 3.984 kB / 1.089 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008525/0.7794, allocations: 320.9 kB / 1.089 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.519e-05/0.7794, allocations: 79.22 kB / 1.089 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.157e-05/0.7795, allocations: 0.7969 kB / 1.089 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.7797, allocations: 30.97 kB / 1.089 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.436e-05/0.7798, allocations: 3.531 kB / 1.089 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.7798, allocations: 1.953 kB / 1.089 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.964e-05/0.7798, allocations: 96.86 kB / 1.089 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.466e-06/0.7799, allocations: 0 / 1.089 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00024/0.7801, allocations: 16.34 kB / 1.089 GB, free: 13.65 MB / 0.8419 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.0001324/0.7802, allocations: 100.2 kB / 1.089 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008485/0.7811, allocations: 202.5 kB / 1.09 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.7811, allocations: 0 / 1.09 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004082/0.7815, allocations: 103.6 kB / 1.09 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.7818, allocations: 11.52 kB / 1.09 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001011/0.7828, allocations: 291.5 kB / 1.09 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003335/0.7831, allocations: 0.6865 MB / 1.091 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.466e-05/0.7832, allocations: 17.05 kB / 1.091 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of SimCode: time 4.01e-07/0.7832, allocations: 0 / 1.091 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of Templates: time 0.003016/0.7863, allocations: 1.179 MB / 1.092 GB, free: 12.55 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothMin.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches