Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit") translateModel(Buildings.Utilities.Math.Examples.SmoothLimit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoLim.y",fileNamePrefix="Buildings_9_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.001443/0.001443, allocations: 105 kB / 16.41 MB, free: 6.457 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.00158/0.00158, allocations: 189.5 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.405/1.405, allocations: 222.9 MB / 241 MB, free: 15.16 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.327/2.327, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 63.91 kB / 0.9515 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9618/0.9636, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003163/0.9668, allocations: 1.446 MB / 1.09 GB, free: 4.508 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.9679, allocations: 0.5795 MB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.116e-05/0.9679, allocations: 0 / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.738e-05/0.9679, allocations: 1.469 kB / 1.091 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.86e-05/0.968, allocations: 4.906 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003112/0.9683, allocations: 48.94 kB / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.615e-05/0.9684, allocations: 26.48 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.9686, allocations: 8.641 kB / 1.091 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.348e-05/0.9686, allocations: 20.53 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.863e-05/0.9687, allocations: 14.19 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.9687, allocations: 2.031 kB / 1.091 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001452/0.9689, allocations: 54.62 kB / 1.091 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.645e-05/0.9689, allocations: 10.34 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.592e-05/0.9689, allocations: 15.09 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.9691, allocations: 63.05 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.9691, allocations: 4 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.505e-06/0.9692, allocations: 0 / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.902e-06/0.9692, allocations: 1.344 kB / 1.091 GB, free: 3.973 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004564/0.9696, allocations: 347.2 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.9697, allocations: 9.812 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.509e-05/0.9697, allocations: 7.328 kB / 1.091 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.992e-05/0.9698, allocations: 165.6 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.9698, allocations: 5.594 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.9698, allocations: 1.281 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/0.97, allocations: 51.25 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.97, allocations: 1.031 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.97, allocations: 0 / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.97, allocations: 1.188 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.319e-05/0.9701, allocations: 19.72 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003264/0.9705, allocations: 258 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.011e-05/0.9706, allocations: 29.75 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.195e-05/0.9706, allocations: 18.17 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007762/0.9714, allocations: 475.6 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.9714, allocations: 39.27 kB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.9714, allocations: 0 / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0002581/0.9717, allocations: 62.95 kB / 1.092 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.9717, allocations: 52.56 kB / 1.092 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.081e-05/0.9718, allocations: 110.9 kB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.9718, allocations: 26.98 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.508e-05/0.9719, allocations: 90.34 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.9719, allocations: 9.859 kB / 1.093 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.734e-05/0.9719, allocations: 21.31 kB / 1.093 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.335e-05/0.972, allocations: 312.6 kB / 1.093 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.393e-05/0.972, allocations: 12.69 kB / 1.093 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.43e-05/0.9721, allocations: 7.453 kB / 1.093 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.263e-05/0.9722, allocations: 36.31 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.9722, allocations: 1.344 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001115/0.9723, allocations: 51.25 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.9723, allocations: 5 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.9723, allocations: 2.141 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.9724, allocations: 0 / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.631e-05/0.9724, allocations: 6 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.9725, allocations: 5.469 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.359e-05/0.9725, allocations: 6.609 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-06/0.9725, allocations: 5.375 kB / 1.093 GB, free: 1.773 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 (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 5.905e-05/0.9726, allocations: 111.6 kB / 1.093 GB, free: 1.656 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.74e-05/0.9726, allocations: 7.109 kB / 1.093 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.9728, allocations: 60.61 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.9728, allocations: 0.9062 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.9728, allocations: 0 / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.9728, allocations: 0.5625 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.9729, allocations: 170.4 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.973, allocations: 4.734 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.396e-05/0.973, allocations: 6.516 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.973, allocations: 0.8438 kB / 1.093 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.973, allocations: 4 kB / 1.093 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.973, allocations: 1.641 kB / 1.093 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.973, allocations: 3.938 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001505/0.9732, allocations: 152 kB / 1.094 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.573e-05/0.9732, allocations: 82.69 kB / 1.094 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.9732, allocations: 1.453 kB / 1.094 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.144e-05/0.9733, allocations: 2.25 kB / 1.094 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.9734, allocations: 6.094 kB / 1.094 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.9734, allocations: 6.172 kB / 1.094 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.616e-05/0.9734, allocations: 87.09 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9734, allocations: 0 / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002373/0.9737, allocations: 16.7 kB / 1.094 GB, free: 1.062 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 (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.00018/0.9739, allocations: 119.6 kB / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001515/0.974, allocations: 27.55 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.974, allocations: 0 / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.834e-05/0.9741, allocations: 9.938 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.9743, allocations: 13.66 kB / 1.094 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002989/0.9746, allocations: 146.2 kB / 1.094 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.9748, allocations: 0.6786 MB / 1.095 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.468e-05/0.9749, allocations: 10.05 kB / 1.095 GB, free: 16.1 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9749, allocations: 0 / 1.095 GB, free: 16.1 MB / 0.8731 GB Notification: Performance of Templates: time 0.003229/0.9781, allocations: 0.8012 MB / 1.095 GB, free: 16.03 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_SmoothLimit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches