Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Blocks.Examples.SlewRateLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|limit_a.y|limit_v.y|positionSmoothed.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter") translateModel(Modelica.Blocks.Examples.SlewRateLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|limit_a.y|limit_v.y|positionSmoothed.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 98.88 kB / 17.58 MB, free: 5.418 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.001067/0.001067, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.202/1.202, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 52.16 kB / 280.6 MB, free: 3.199 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0806/0.08172, allocations: 46.63 MB / 327.3 MB, free: 4.496 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002741/0.0845, allocations: 1.659 MB / 328.9 MB, free: 2.812 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008629/0.08538, allocations: 0.5269 MB / 329.5 MB, free: 2.277 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.329e-05/0.08549, allocations: 4 kB / 329.5 MB, free: 2.273 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.91e-05/0.08562, allocations: 11.81 kB / 329.5 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.381e-05/0.08571, allocations: 27.78 kB / 329.5 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.08586, allocations: 47.94 kB / 329.5 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000161/0.08603, allocations: 111.6 kB / 329.7 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.08615, allocations: 28.89 kB / 329.7 MB, free: 2.051 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.553e-05/0.08622, allocations: 47.78 kB / 329.7 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.899e-05/0.0863, allocations: 51.64 kB / 329.8 MB, free: 1.953 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.08633, allocations: 12 kB / 329.8 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.854e-05/0.08636, allocations: 8 kB / 329.8 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.417e-05/0.08638, allocations: 23.86 kB / 329.8 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.694e-05/0.08644, allocations: 35.75 kB / 329.9 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.08657, allocations: 107.8 kB / 330 MB, free: 1.77 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.08658, allocations: 0 / 330 MB, free: 1.77 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.08659, allocations: 0 / 330 MB, free: 1.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.0866, allocations: 0 / 330 MB, free: 1.77 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005112/0.08711, allocations: 427 kB / 330.4 MB, free: 1.305 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.08715, allocations: 8.031 kB / 330.4 MB, free: 1.297 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.928e-05/0.0872, allocations: 16.75 kB / 330.4 MB, free: 1.281 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002113/0.08741, allocations: 212.6 kB / 330.6 MB, free: 1.035 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.08743, allocations: 4.375 kB / 330.6 MB, free: 1.031 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.591e-05/0.08746, allocations: 12.12 kB / 330.6 MB, free: 1.02 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.08773, allocations: 128.2 kB / 330.8 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.08775, allocations: 4 kB / 330.8 MB, free: 0.875 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.08777, allocations: 0 / 330.8 MB, free: 0.875 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.08778, allocations: 4 kB / 330.8 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000188/0.08797, allocations: 79.77 kB / 330.8 MB, free: 0.793 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006175/0.0886, allocations: 0.5477 MB / 331.4 MB, free: 192 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/0.08892, allocations: 130.4 kB / 331.5 MB, free: 52 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001444/0.08908, allocations: 56.81 kB / 331.6 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.0891, allocations: 0 / 331.6 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.805e-05/0.08912, allocations: 34.56 kB / 331.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 9.02e-07/0.08913, allocations: 0 / 331.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001052/0.09018, allocations: 0.5179 MB / 332.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.935e-05/0.09022, allocations: 51.88 kB / 332.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.09035, allocations: 154.3 kB / 332.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.09037, allocations: 25.7 kB / 332.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.958e-05/0.09044, allocations: 111.9 kB / 332.5 MB, free: 15.01 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.09049, allocations: 51.34 kB / 332.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.032e-05/0.09054, allocations: 33.64 kB / 332.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.09066, allocations: 326.8 kB / 332.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.0908, allocations: 47.95 kB / 332.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.09097, allocations: 87.39 kB / 333 MB, free: 14.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002742/0.09125, allocations: 131.3 kB / 333.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.09126, allocations: 0 / 333.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003572/0.09162, allocations: 181.3 kB / 333.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.09165, allocations: 8 kB / 333.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.09167, allocations: 12.02 kB / 333.3 MB, free: 14.11 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.09168, allocations: 0 / 333.3 MB, free: 14.11 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.09184, allocations: 35.97 kB / 333.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.09186, allocations: 4 kB / 333.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.535e-05/0.09194, allocations: 11.98 kB / 333.4 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.09197, allocations: 8 kB / 333.4 MB, free: 14.05 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (positionSmoothed.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 9.347e-05/0.09207, allocations: 121.7 kB / 333.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.565e-05/0.09211, allocations: 11.91 kB / 333.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.889e-05/0.09217, allocations: 20.66 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.09217, allocations: 0 / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.09218, allocations: 4 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.09219, allocations: 3.984 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007282/0.09293, allocations: 499.9 kB / 334 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.09294, allocations: 4 kB / 334 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.0931, allocations: 35.97 kB / 334.1 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.09311, allocations: 3.938 kB / 334.1 MB, free: 13.28 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.09313, allocations: 4 kB / 334.1 MB, free: 13.28 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.09314, allocations: 64 / 334.1 MB, free: 13.28 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.09315, allocations: 4 kB / 334.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005739/0.09372, allocations: 317.8 kB / 334.4 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.587e-05/0.09379, allocations: 88.92 kB / 334.5 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.09382, allocations: 4 kB / 334.5 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.09393, allocations: 12.03 kB / 334.5 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.983e-05/0.09399, allocations: 15.92 kB / 334.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.918e-06/0.094, allocations: 8 kB / 334.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.572e-05/0.09408, allocations: 108.1 kB / 334.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09409, allocations: 4.094 kB / 334.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.09434, allocations: 27.94 kB / 334.6 MB, free: 12.66 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (v.u,positionSmoothed.y,a.u) * 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 (12): * Single equations (assignments): 12 * 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.0001217/0.09447, allocations: 107.1 kB / 334.7 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.09483, allocations: 131.8 kB / 334.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.09484, allocations: 0 / 334.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.095, allocations: 72.08 kB / 334.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003833/0.09539, allocations: 43.47 kB / 335 MB, free: 12.3 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006403/0.09604, allocations: 313.1 kB / 335.3 MB, free: 11.96 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.09638, allocations: 0.7123 MB / 336 MB, free: 11.23 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.495e-05/0.09644, allocations: 17.5 kB / 336 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.286e-05/0.09649, allocations: 15.44 kB / 336 MB, free: 11.2 MB / 286.1 MB Notification: Performance of SimCode: time 4.51e-07/0.0965, allocations: 0 / 336 MB, free: 11.2 MB / 286.1 MB Notification: Performance of Templates: time 0.004394/0.1009, allocations: 1.705 MB / 337.7 MB, free: 9.496 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches