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.007739/0.007739, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002282/0.002282, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.535/1.535, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.337/2.337, allocations: 390.2 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001225, allocations: 64.09 kB / 0.9508 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.073/1.074, allocations: 140.4 MB / 1.088 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothLimit): time 0.003144/1.077, allocations: 1.459 MB / 1.089 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001186/1.078, allocations: 0.5671 MB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.834e-05/1.078, allocations: 1.062 kB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.142e-05/1.078, allocations: 4.875 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.451e-05/1.079, allocations: 4.969 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000348/1.079, allocations: 53.59 kB / 1.09 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.648e-05/1.079, allocations: 27.06 kB / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/1.079, allocations: 3.516 kB / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.89e-05/1.079, allocations: 16.59 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.995e-05/1.079, allocations: 9.875 kB / 1.09 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/1.079, allocations: 7 kB / 1.09 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/1.079, allocations: 57.53 kB / 1.09 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.054e-05/1.08, allocations: 5.969 kB / 1.09 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.358e-05/1.08, allocations: 12.25 kB / 1.09 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000197/1.08, allocations: 70.62 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/1.08, allocations: 0 / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.595e-06/1.08, allocations: 0 / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.124e-06/1.08, allocations: 1.094 kB / 1.09 GB, free: 3.977 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.0004403/1.08, allocations: 348.7 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/1.08, allocations: 9.125 kB / 1.091 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.626e-05/1.08, allocations: 7.547 kB / 1.091 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.491e-05/1.08, allocations: 164.2 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/1.08, allocations: 5.125 kB / 1.091 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/1.08, allocations: 5.375 kB / 1.091 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/1.081, allocations: 47.19 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/1.081, allocations: 0.6094 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/1.081, allocations: 1.125 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/1.081, allocations: 3.938 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.194e-05/1.081, allocations: 23.64 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003186/1.081, allocations: 263 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.269e-05/1.081, allocations: 33.17 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.977e-05/1.081, allocations: 13.55 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007737/1.082, allocations: 480 kB / 1.092 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/1.082, allocations: 35.22 kB / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.443e-06/1.082, allocations: 4.969 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0002638/1.082, allocations: 62.02 kB / 1.092 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/1.082, allocations: 52.2 kB / 1.092 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.154e-05/1.082, allocations: 107.8 kB / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.934e-06/1.082, allocations: 25.7 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/1.083, allocations: 91.83 kB / 1.092 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/1.083, allocations: 5.969 kB / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/1.083, allocations: 12.67 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.387e-05/1.083, allocations: 320.9 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.291e-05/1.083, allocations: 8 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.602e-05/1.083, allocations: 12.2 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.939e-05/1.083, allocations: 32.38 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/1.083, allocations: 5.031 kB / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000116/1.083, allocations: 55.5 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/1.083, allocations: 5.25 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/1.083, allocations: 1.125 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/1.083, allocations: 0 / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.684e-05/1.083, allocations: 6.391 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/1.083, allocations: 4.906 kB / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.229e-05/1.083, allocations: 3.078 kB / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/1.083, allocations: 0.9062 kB / 1.092 GB, free: 1.77 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.954e-05/1.083, allocations: 121.1 kB / 1.092 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/1.083, allocations: 1.062 kB / 1.092 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001733/1.083, allocations: 69.34 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/1.083, allocations: 1.453 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/1.083, allocations: 0 / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/1.083, allocations: 0.8125 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001353/1.084, allocations: 162.7 kB / 1.093 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/1.084, allocations: 4.031 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.379e-05/1.084, allocations: 5.844 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/1.084, allocations: 1.797 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/1.084, allocations: 0 / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/1.084, allocations: 1.031 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.084, allocations: 4.609 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001468/1.084, allocations: 159.7 kB / 1.093 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.552e-05/1.084, allocations: 86.81 kB / 1.093 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.481e-05/1.084, allocations: 1 kB / 1.093 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.94e-05/1.084, allocations: 3.094 kB / 1.093 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/1.084, allocations: 1.812 kB / 1.093 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-06/1.084, allocations: 1.75 kB / 1.093 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.492e-05/1.084, allocations: 87.53 kB / 1.093 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.2e-07/1.084, allocations: 0 / 1.093 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002355/1.084, allocations: 17.22 kB / 1.093 GB, free: 1.055 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.0001768/1.084, allocations: 123.1 kB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001442/1.085, allocations: 22.33 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/1.085, allocations: 0.625 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.22e-05/1.085, allocations: 19.05 kB / 1.093 GB, free: 0.9414 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/1.085, allocations: 8.625 kB / 1.093 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003029/1.085, allocations: 120.2 kB / 1.093 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/1.085, allocations: 0.6832 MB / 1.094 GB, free: 16.12 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 2.362e-05/1.085, allocations: 1.969 kB / 1.094 GB, free: 16.12 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.919e-05/1.085, allocations: 12.91 kB / 1.094 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of SimCode: time 2e-07/1.085, allocations: 0 / 1.094 GB, free: 16.11 MB / 0.8731 GB Notification: Performance of Templates: time 0.003218/1.089, allocations: 0.6664 MB / 1.095 GB, free: 16.02 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothLimit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches