Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 108.5 kB / 15.99 MB, free: 5.91 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.001436/0.001436, allocations: 193.7 kB / 16.91 MB, free: 5.754 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.355/1.355, allocations: 222.9 MB / 240.6 MB, free: 13.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.649/2.649, allocations: 469.4 MB / 0.7423 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 71.05 kB / 0.9083 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/0.3705, allocations: 159.1 MB / 1.064 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003424/0.374, allocations: 1.526 MB / 1.065 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.3751, allocations: 0.5572 MB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.529e-05/0.3752, allocations: 0 / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.723e-05/0.3752, allocations: 3.938 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.688e-05/0.3753, allocations: 3.938 kB / 1.066 GB, free: 13.26 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003479/0.3756, allocations: 47.95 kB / 1.066 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.536e-05/0.3757, allocations: 27.86 kB / 1.066 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.3758, allocations: 8 kB / 1.066 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.376, allocations: 11.92 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.818e-05/0.376, allocations: 11.94 kB / 1.066 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.561e-05/0.376, allocations: 4 kB / 1.066 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.3762, allocations: 55.94 kB / 1.066 GB, free: 13.1 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.697e-05/0.3762, allocations: 4 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.384e-05/0.3763, allocations: 19.92 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.3764, allocations: 39.94 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3764, allocations: 0 / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.764e-06/0.3764, allocations: 3.938 kB / 1.066 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.3764, allocations: 0 / 1.066 GB, free: 13.03 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000486/0.3769, allocations: 347.7 kB / 1.066 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.377, allocations: 12.62 kB / 1.066 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.53e-05/0.377, allocations: 8.844 kB / 1.066 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.3772, allocations: 164.4 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.3772, allocations: 4.375 kB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.31e-05/0.3772, allocations: 384 / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001544/0.3774, allocations: 49.94 kB / 1.067 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.3774, allocations: 0 / 1.067 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.3774, allocations: 3.984 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3774, allocations: 4 kB / 1.067 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.264e-05/0.3775, allocations: 19.98 kB / 1.067 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003728/0.3779, allocations: 252.9 kB / 1.067 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 9.679e-05/0.378, allocations: 34.5 kB / 1.067 GB, free: 12 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.253e-05/0.3781, allocations: 24.91 kB / 1.067 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008582/0.3789, allocations: 473.4 kB / 1.067 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.379, allocations: 34.56 kB / 1.067 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.263e-06/0.379, allocations: 0 / 1.067 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0002539/0.3792, allocations: 61.58 kB / 1.067 GB, free: 11.31 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.3793, allocations: 55.41 kB / 1.067 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.8e-05/0.3794, allocations: 109.8 kB / 1.068 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.3794, allocations: 33.83 kB / 1.068 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.813e-05/0.3795, allocations: 88.12 kB / 1.068 GB, free: 11 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.836e-05/0.3795, allocations: 7.891 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.44e-05/0.3795, allocations: 13.72 kB / 1.068 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3797, allocations: 314.8 kB / 1.068 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.856e-05/0.3797, allocations: 11.98 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.414e-05/0.3798, allocations: 8 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.062e-05/0.3799, allocations: 36.78 kB / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3799, allocations: 0 / 1.068 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001344/0.38, allocations: 57.67 kB / 1.068 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.38, allocations: 7.938 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.38, allocations: 0 / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.3801, allocations: 4 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.332e-05/0.3801, allocations: 7.938 kB / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3801, allocations: 320 / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.563e-05/0.3802, allocations: 8.031 kB / 1.068 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.3802, allocations: 4 kB / 1.068 GB, free: 10.5 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 (2): * Single equations (assignments): 2 * 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.979e-05/0.3803, allocations: 113.8 kB / 1.068 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.666e-05/0.3803, allocations: 3.906 kB / 1.068 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001758/0.3805, allocations: 65.2 kB / 1.068 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3805, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3805, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3805, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.3807, allocations: 161.6 kB / 1.068 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3807, allocations: 4 kB / 1.068 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.963e-05/0.3808, allocations: 7.984 kB / 1.068 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3808, allocations: 3.938 kB / 1.068 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.094e-06/0.3808, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3808, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3808, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.381, allocations: 159.5 kB / 1.069 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.932e-05/0.3811, allocations: 81.02 kB / 1.069 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.3811, allocations: 0 / 1.069 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.398e-05/0.3811, allocations: 7.984 kB / 1.069 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.302e-05/0.3812, allocations: 0 / 1.069 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.3812, allocations: 3.984 kB / 1.069 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.279e-05/0.3813, allocations: 91.27 kB / 1.069 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3813, allocations: 0 / 1.069 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002393/0.3815, allocations: 16 kB / 1.069 GB, free: 9.695 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 (2): * Single equations (assignments): 2 * 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.0001925/0.3817, allocations: 115.3 kB / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001481/0.3819, allocations: 23.92 kB / 1.069 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3819, allocations: 4 kB / 1.069 GB, free: 9.547 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 4.505e-05/0.3819, allocations: 15.92 kB / 1.069 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.3821, allocations: 7.938 kB / 1.069 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003485/0.3825, allocations: 156.4 kB / 1.069 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.3828, allocations: 0.6807 MB / 1.07 GB, free: 8.633 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.283e-05/0.3828, allocations: 7.438 kB / 1.07 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.3828, allocations: 0 / 1.07 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of Templates: time 0.002524/0.3854, allocations: 0.818 MB / 1.071 GB, free: 7.812 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches