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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 105 kB / 16.41 MB, free: 6.465 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.001058/0.001058, allocations: 187 kB / 17.34 MB, free: 5.719 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.39/1.39, 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 9.1.3-maint.9.1.x/package.mo): time 2.298/2.298, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 59.89 kB / 0.9515 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9285/0.9297, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.002668/0.9324, allocations: 1.456 MB / 1.09 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000386/0.9328, allocations: 145.4 kB / 1.09 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.621e-05/0.9329, allocations: 5.25 kB / 1.09 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.316e-05/0.9329, allocations: 4.547 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.161e-05/0.933, allocations: 5.734 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002311/0.9332, allocations: 25.22 kB / 1.09 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.9334, allocations: 45.36 kB / 1.09 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.9335, allocations: 25.72 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.515e-05/0.9335, allocations: 17.42 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.322e-05/0.9336, allocations: 17.83 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.791e-05/0.9336, allocations: 4.031 kB / 1.09 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.9337, allocations: 33.09 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.828e-05/0.9338, allocations: 12.25 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.177e-05/0.9338, allocations: 22.14 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.934, allocations: 61.94 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.934, allocations: 4 kB / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.934, allocations: 0 / 1.09 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.934, allocations: 0 / 1.09 GB, free: 4.277 MB / 0.8575 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.0004413/0.9344, allocations: 361.9 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.9345, allocations: 9.562 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/0.9357, allocations: 216.6 kB / 1.091 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.293e-05/0.9358, allocations: 174.9 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.9358, allocations: 2.219 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.9358, allocations: 2.938 kB / 1.091 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000607/0.9364, allocations: 200.2 kB / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.9364, allocations: 192 / 1.091 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.878e-05/0.9365, allocations: 4.906 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.9365, allocations: 1.125 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009196/0.9374, allocations: 276.4 kB / 1.092 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009728/0.9384, allocations: 445.2 kB / 1.092 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.9396, allocations: 287.9 kB / 1.092 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00038/0.94, allocations: 102.3 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.94, allocations: 5 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.621e-05/0.94, allocations: 32.05 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.362e-06/0.94, allocations: 0 / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.001263/0.9413, allocations: 319.3 kB / 1.093 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.639e-05/0.9414, allocations: 52.22 kB / 1.093 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.489e-05/0.9414, allocations: 118.6 kB / 1.093 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.9415, allocations: 26.5 kB / 1.093 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.472e-05/0.9415, allocations: 88 kB / 1.093 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.9415, allocations: 6.109 kB / 1.093 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.834e-05/0.9416, allocations: 23.33 kB / 1.093 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.779e-05/0.9416, allocations: 318.5 kB / 1.093 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004012/0.9421, allocations: 95.22 kB / 1.093 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003854/0.9424, allocations: 93.59 kB / 1.094 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007276/0.9432, allocations: 172.3 kB / 1.094 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.9432, allocations: 0.7812 kB / 1.094 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008093/0.944, allocations: 223.7 kB / 1.094 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.944, allocations: 5.125 kB / 1.094 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.944, allocations: 0.8125 kB / 1.094 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.9441, allocations: 2.047 kB / 1.094 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002721/0.9443, allocations: 32.14 kB / 1.094 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.9444, allocations: 0.6094 kB / 1.094 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/0.9446, allocations: 31.5 kB / 1.094 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.9446, allocations: 5.547 kB / 1.094 GB, free: 2.273 MB / 0.8575 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 7.162e-05/0.9447, allocations: 120.6 kB / 1.094 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.459e-05/0.9447, allocations: 7.219 kB / 1.094 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/0.9448, allocations: 6.453 kB / 1.094 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.9448, allocations: 1.516 kB / 1.094 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.9448, allocations: 0.8125 kB / 1.094 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.9448, allocations: 8.734 kB / 1.094 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002109/0.945, allocations: 216.3 kB / 1.094 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.945, allocations: 0.9688 kB / 1.094 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002357/0.9452, allocations: 37.39 kB / 1.094 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.9453, allocations: 0 / 1.094 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.9453, allocations: 2.328 kB / 1.094 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.9453, allocations: 0 / 1.094 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.9453, allocations: 4.594 kB / 1.094 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008028/0.9461, allocations: 312.3 kB / 1.095 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.442e-05/0.9461, allocations: 87.31 kB / 1.095 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.9462, allocations: 0.8125 kB / 1.095 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.9464, allocations: 31.3 kB / 1.095 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.034e-05/0.9464, allocations: 3.094 kB / 1.095 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.9465, allocations: 1.5 kB / 1.095 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.418e-05/0.9465, allocations: 97.78 kB / 1.095 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.61e-07/0.9465, allocations: 0 / 1.095 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002356/0.9468, allocations: 11.75 kB / 1.095 GB, free: 1.555 MB / 0.8575 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.0001181/0.9469, allocations: 99.73 kB / 1.095 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008232/0.9477, allocations: 201.5 kB / 1.095 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.9477, allocations: 0 / 1.095 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004034/0.9481, allocations: 104.8 kB / 1.095 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.9484, allocations: 6.031 kB / 1.095 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009751/0.9494, allocations: 279.6 kB / 1.096 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001278/0.9495, allocations: 0.6892 MB / 1.096 GB, free: 0.5469 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.397e-05/0.9496, allocations: 16.5 kB / 1.096 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of SimCode: time 4.51e-07/0.9496, allocations: 288 / 1.096 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of Templates: time 0.002993/0.9526, allocations: 1.18 MB / 1.097 GB, free: 476 kB / 0.8575 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches