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.001225/0.001224, allocations: 106.5 kB / 16.41 MB, free: 6.461 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.00127/0.00127, 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.43/1.43, 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 11.0.1-master/package.mo): time 2.643/2.643, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 67.89 kB / 1.055 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9527/0.954, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.002824/0.9568, allocations: 1.461 MB / 1.21 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.9579, allocations: 0.5571 MB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.586e-05/0.958, allocations: 8 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.948e-05/0.958, allocations: 3.938 kB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.357e-05/0.9581, allocations: 7.922 kB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000298/0.9584, allocations: 51.83 kB / 1.21 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.643e-05/0.9585, allocations: 31.84 kB / 1.21 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.826e-05/0.9586, allocations: 4 kB / 1.21 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.047e-05/0.9587, allocations: 12 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.861e-05/0.9587, allocations: 19.92 kB / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.377e-05/0.9587, allocations: 0 / 1.211 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.9589, allocations: 59.94 kB / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.367e-05/0.9589, allocations: 3.938 kB / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.646e-05/0.959, allocations: 11.94 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.9591, allocations: 71.78 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.9591, allocations: 0 / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.303e-06/0.9591, allocations: 0 / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.9591, allocations: 0 / 1.211 GB, free: 11.3 MB / 0.9356 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.0004204/0.9596, allocations: 339.3 kB / 1.211 GB, free: 10.92 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.9596, allocations: 16.03 kB / 1.211 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.425e-05/0.9596, allocations: 4.844 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.9598, allocations: 174.2 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.9598, allocations: 384 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.196e-06/0.9598, allocations: 4.312 kB / 1.211 GB, free: 10.69 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.9599, allocations: 46 kB / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.9599, allocations: 0 / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.96, allocations: 0 / 1.211 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.96, allocations: 7.938 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.853e-05/0.9601, allocations: 23.92 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003218/0.9604, allocations: 256.8 kB / 1.211 GB, free: 10.31 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.239e-05/0.9605, allocations: 30.56 kB / 1.212 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.464e-05/0.9605, allocations: 16.92 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008133/0.9614, allocations: 481.4 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.9614, allocations: 30.56 kB / 1.212 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.9614, allocations: 0 / 1.212 GB, free: 9.648 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.000238/0.9617, allocations: 65.61 kB / 1.212 GB, free: 9.578 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.9617, allocations: 59.53 kB / 1.212 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.4e-05/0.9618, allocations: 109.8 kB / 1.212 GB, free: 9.391 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.9618, allocations: 29.7 kB / 1.212 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.9619, allocations: 80.14 kB / 1.212 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.862e-05/0.9619, allocations: 7.906 kB / 1.212 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.9619, allocations: 17.7 kB / 1.212 GB, free: 9.242 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.9621, allocations: 314.8 kB / 1.213 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.291e-05/0.9621, allocations: 8 kB / 1.213 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.708e-05/0.9622, allocations: 15.98 kB / 1.213 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.229e-05/0.9622, allocations: 32.72 kB / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.9623, allocations: 0 / 1.213 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00013/0.9624, allocations: 53.69 kB / 1.213 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.9624, allocations: 4 kB / 1.213 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.9624, allocations: 0 / 1.213 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.9624, allocations: 0 / 1.213 GB, free: 8.805 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.365e-05/0.9625, allocations: 16.08 kB / 1.213 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.9625, allocations: 0 / 1.213 GB, free: 8.789 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.532e-05/0.9626, allocations: 7.844 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.9626, allocations: 0 / 1.213 GB, free: 8.781 MB / 0.9356 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.997e-05/0.9627, allocations: 113.8 kB / 1.213 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.9627, allocations: 0 / 1.213 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001877/0.9629, allocations: 69.14 kB / 1.213 GB, free: 8.578 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.9629, allocations: 8.031 kB / 1.213 GB, free: 8.57 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.9629, allocations: 3.938 kB / 1.213 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.9629, allocations: 0 / 1.213 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.9631, allocations: 161.6 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.9631, allocations: 0 / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.212e-05/0.9632, allocations: 11.98 kB / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.9632, allocations: 0 / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.9632, allocations: 0 / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.9632, allocations: 0 / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.9632, allocations: 0 / 1.213 GB, free: 8.348 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000164/0.9634, allocations: 155.4 kB / 1.213 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.458e-05/0.9634, allocations: 92.94 kB / 1.213 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.9634, allocations: 0 / 1.213 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.833e-05/0.9635, allocations: 0 / 1.213 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.862e-05/0.9635, allocations: 4 kB / 1.213 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.9635, allocations: 0 / 1.213 GB, free: 8.066 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.454e-05/0.9636, allocations: 91.27 kB / 1.213 GB, free: 7.977 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9636, allocations: 4.031 kB / 1.213 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002376/0.9638, allocations: 16 kB / 1.214 GB, free: 7.957 MB / 0.9356 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.0001764/0.964, allocations: 115.2 kB / 1.214 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001308/0.9642, allocations: 19.98 kB / 1.214 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.9642, allocations: 0 / 1.214 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 4.722e-05/0.9642, allocations: 15.92 kB / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002116/0.9644, allocations: 13.5 kB / 1.214 GB, free: 7.789 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003091/0.9648, allocations: 156.4 kB / 1.214 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002487/0.965, allocations: 0.6807 MB / 1.214 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.34e-05/0.9651, allocations: 7.438 kB / 1.214 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.9651, allocations: 0 / 1.214 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of Templates: time 0.002445/0.9675, allocations: 0.8192 MB / 1.215 GB, free: 6.07 MB / 0.9356 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