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.001104/0.001104, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001098/0.001097, allocations: 194.3 kB / 16.14 MB, free: 6.652 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.4/1.4, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.879/2.879, allocations: 461.9 MB / 0.7342 GB, free: 15 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.00151, allocations: 70.22 kB / 0.8984 GB, free: 37.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3456, allocations: 157.4 MB / 1.052 GB, free: 8.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.00283/0.3484, allocations: 1.518 MB / 1.054 GB, free: 7.309 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009293/0.3494, allocations: 0.5804 MB / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.83e-05/0.3494, allocations: 0 / 1.054 GB, free: 6.723 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.503e-05/0.3495, allocations: 3.938 kB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.18e-05/0.3495, allocations: 0 / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.3498, allocations: 47.83 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.168e-05/0.3499, allocations: 27.92 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.332e-05/0.35, allocations: 4 kB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.55e-05/0.3501, allocations: 23.86 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.145e-05/0.3501, allocations: 7.984 kB / 1.054 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.3502, allocations: 7.938 kB / 1.054 GB, free: 6.602 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.3503, allocations: 47.95 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.506e-05/0.3503, allocations: 4 kB / 1.054 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.233e-05/0.3503, allocations: 11.92 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.3505, allocations: 63.86 kB / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3505, allocations: 0 / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.81e-07/0.3505, allocations: 0 / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.3505, allocations: 0 / 1.054 GB, free: 6.477 MB / 0.8106 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.0004324/0.3509, allocations: 351.7 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.351, allocations: 12.03 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.498e-05/0.351, allocations: 0.9375 kB / 1.055 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.3512, allocations: 168.3 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.898e-06/0.3512, allocations: 4.312 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.3512, allocations: 4.375 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001375/0.3513, allocations: 42 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3514, allocations: 0 / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.3514, allocations: 7.938 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.3514, allocations: 8 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.993e-05/0.3515, allocations: 19.97 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003317/0.3518, allocations: 260.8 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 8.397e-05/0.3519, allocations: 34.55 kB / 1.055 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.947e-05/0.352, allocations: 16.92 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008391/0.3528, allocations: 477.4 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.31e-05/0.3529, allocations: 34.5 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.3529, allocations: 3.938 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.000262/0.3531, allocations: 69.58 kB / 1.056 GB, free: 4.734 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.3532, allocations: 55.41 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.3533, allocations: 105.8 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.317e-05/0.3533, allocations: 25.7 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.933e-05/0.3534, allocations: 84.14 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.3534, allocations: 7.906 kB / 1.056 GB, free: 4.43 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.592e-05/0.3534, allocations: 17.7 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3536, allocations: 323 kB / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.287e-05/0.3536, allocations: 7.984 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.862e-05/0.3536, allocations: 15.94 kB / 1.056 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.112e-05/0.3537, allocations: 28.78 kB / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3538, allocations: 0 / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001138/0.3539, allocations: 49.69 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3539, allocations: 4.094 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3539, allocations: 7.984 kB / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.3539, allocations: 0 / 1.057 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.346e-05/0.354, allocations: 8 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.354, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.1e-05/0.3541, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.3541, allocations: 0 / 1.057 GB, free: 3.953 MB / 0.8106 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 8.35e-05/0.3542, allocations: 121.8 kB / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.3542, allocations: 7.844 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001604/0.3544, allocations: 65.2 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.3544, allocations: 7.938 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3544, allocations: 0 / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.3544, allocations: 0 / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.3545, allocations: 157.6 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3546, allocations: 0 / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.395e-05/0.3546, allocations: 11.98 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.3546, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.3546, allocations: 0 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3546, allocations: 32 / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3546, allocations: 4 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.3548, allocations: 155.4 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-05/0.3548, allocations: 85.02 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.3549, allocations: 4 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.929e-05/0.3549, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.736e-05/0.355, allocations: 4 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.355, allocations: 8.016 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.662e-05/0.355, allocations: 87.28 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.355, allocations: 0 / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002303/0.3553, allocations: 19.94 kB / 1.057 GB, free: 3.129 MB / 0.8106 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.000175/0.3555, allocations: 115.2 kB / 1.057 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000129/0.3556, allocations: 19.98 kB / 1.057 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3556, allocations: 0 / 1.057 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 4.846e-05/0.3557, allocations: 23.98 kB / 1.057 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.3559, allocations: 7.938 kB / 1.057 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002838/0.3562, allocations: 128.3 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.3564, allocations: 0.677 MB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.515e-05/0.3565, allocations: 4.062 kB / 1.058 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.758e-05/0.3565, allocations: 11.44 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/0.3565, allocations: 0 / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of Templates: time 0.002748/0.3592, allocations: 0.6352 MB / 1.059 GB, free: 1.453 MB / 0.8106 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches