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.01131/0.01131, allocations: 105.9 kB / 15.74 MB, free: 5.996 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.00179/0.00179, allocations: 197 kB / 16.67 MB, free: 5.918 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 15.07 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.37/2.37, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 59.91 kB / 0.9508 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.113/1.115, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothMin): time 0.003119/1.118, allocations: 1.458 MB / 1.089 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0004304/1.118, allocations: 142.1 kB / 1.089 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.185e-05/1.118, allocations: 5.188 kB / 1.089 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.805e-05/1.118, allocations: 4.453 kB / 1.089 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.315e-05/1.119, allocations: 5.672 kB / 1.09 GB, free: 4.391 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/1.119, allocations: 37.23 kB / 1.09 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001316/1.119, allocations: 38.14 kB / 1.09 GB, free: 4.355 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/1.119, allocations: 21.34 kB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.518e-05/1.119, allocations: 16.7 kB / 1.09 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.657e-05/1.119, allocations: 22.67 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.977e-05/1.119, allocations: 3.219 kB / 1.09 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/1.119, allocations: 33.81 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.192e-05/1.119, allocations: 11.08 kB / 1.09 GB, free: 4.312 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.49e-05/1.119, allocations: 22.42 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001666/1.12, allocations: 64.14 kB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/1.12, allocations: 1.344 kB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.126e-06/1.12, allocations: 0.5156 kB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.115e-06/1.12, allocations: 0 / 1.09 GB, free: 4.273 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.0004486/1.12, allocations: 361.6 kB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/1.12, allocations: 14.5 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001149/1.121, allocations: 212.2 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/1.121, allocations: 170.2 kB / 1.09 GB, free: 3.691 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/1.121, allocations: 10.27 kB / 1.09 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/1.121, allocations: 2.594 kB / 1.09 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006268/1.122, allocations: 195.4 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/1.122, allocations: 1.031 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/1.122, allocations: 3.938 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/1.122, allocations: 1.344 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000886/1.123, allocations: 281.6 kB / 1.091 GB, free: 3.582 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009323/1.124, allocations: 444.4 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/1.125, allocations: 284.5 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003679/1.126, allocations: 107 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/1.126, allocations: 0 / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/1.126, allocations: 32.42 kB / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/1.126, allocations: 0 / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.001225/1.127, allocations: 315 kB / 1.092 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/1.127, allocations: 52.83 kB / 1.092 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.141e-05/1.127, allocations: 118 kB / 1.092 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/1.127, allocations: 25.7 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.066e-05/1.127, allocations: 88.27 kB / 1.092 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/1.127, allocations: 10.56 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.127e-05/1.127, allocations: 20.14 kB / 1.092 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.819e-05/1.127, allocations: 321.6 kB / 1.093 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003869/1.128, allocations: 91.33 kB / 1.093 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003739/1.128, allocations: 97.2 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006931/1.129, allocations: 172.8 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/1.129, allocations: 0.625 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0008324/1.13, allocations: 220.5 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/1.13, allocations: 4.656 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/1.13, allocations: 0.625 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/1.13, allocations: 0.6875 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/1.13, allocations: 33.73 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/1.13, allocations: 0.875 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/1.13, allocations: 30.61 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/1.13, allocations: 6 kB / 1.093 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 9.37e-05/1.13, allocations: 124.4 kB / 1.093 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.381e-05/1.13, allocations: 6.766 kB / 1.093 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.077e-05/1.13, allocations: 11.77 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/1.13, allocations: 0.625 kB / 1.093 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/1.13, allocations: 9.719 kB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/1.13, allocations: 3.938 kB / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002436/1.131, allocations: 212.7 kB / 1.094 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/1.131, allocations: 0.7188 kB / 1.094 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002333/1.131, allocations: 32.3 kB / 1.094 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/1.131, allocations: 9.344 kB / 1.094 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/1.131, allocations: 2.453 kB / 1.094 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/1.131, allocations: 0 / 1.094 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/1.131, allocations: 0.7188 kB / 1.094 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008713/1.132, allocations: 311.1 kB / 1.094 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.685e-05/1.132, allocations: 83.64 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/1.132, allocations: 1.719 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/1.132, allocations: 34.86 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.048e-05/1.132, allocations: 2.812 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/1.132, allocations: 2.344 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.579e-05/1.132, allocations: 97.33 kB / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.81e-07/1.132, allocations: 0 / 1.094 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000254/1.133, allocations: 12.25 kB / 1.094 GB, free: 1.547 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.00016/1.133, allocations: 103.7 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009342/1.134, allocations: 193.2 kB / 1.095 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.134, allocations: 0.5625 kB / 1.095 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004302/1.134, allocations: 103.8 kB / 1.095 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000287/1.134, allocations: 7.531 kB / 1.095 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/1.135, allocations: 259.5 kB / 1.095 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001648/1.136, allocations: 0.691 MB / 1.096 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.139e-05/1.136, allocations: 17.91 kB / 1.096 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/1.136, allocations: 14.14 kB / 1.096 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of SimCode: time 7.21e-07/1.136, allocations: 288 / 1.096 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of Templates: time 0.004034/1.14, allocations: 0.9476 MB / 1.097 GB, free: 480 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothMin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches