Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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(Modelica.Blocks.Examples.SlewRateLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|limit_a.y|limit_v.y|positionSmoothed.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001273/0.001273, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.001246/0.001246, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.02/2.02, allocations: 222.9 MB / 241.8 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002248/0.002248, allocations: 36.97 kB / 300.6 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.1831, allocations: 49.44 MB / 350 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.006287/0.1894, allocations: 1.737 MB / 351.8 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.1911, allocations: 478.8 kB / 352.2 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.1913, allocations: 8 kB / 352.3 MB, free: 2.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001969/0.1916, allocations: 11.86 kB / 352.3 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.1918, allocations: 11.88 kB / 352.3 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002952/0.1922, allocations: 47.94 kB / 352.3 MB, free: 2.547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003293/0.1925, allocations: 115.5 kB / 352.4 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.1927, allocations: 25.11 kB / 352.5 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.1929, allocations: 43.78 kB / 352.5 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.193, allocations: 47.72 kB / 352.6 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.383e-05/0.1931, allocations: 4 kB / 352.6 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.908e-05/0.1931, allocations: 4 kB / 352.6 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.767e-05/0.1932, allocations: 15.92 kB / 352.6 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.371e-05/0.1933, allocations: 43.67 kB / 352.6 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.1935, allocations: 64.11 kB / 352.7 MB, free: 2.188 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1935, allocations: 3.938 kB / 352.7 MB, free: 2.184 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1935, allocations: 0 / 352.7 MB, free: 2.184 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.281e-06/0.1935, allocations: 0 / 352.7 MB, free: 2.184 MB / 286.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.0009916/0.1945, allocations: 427 kB / 353.1 MB, free: 1.719 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.579e-05/0.1946, allocations: 12.03 kB / 353.1 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.486e-05/0.1947, allocations: 12.75 kB / 353.1 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004013/0.1951, allocations: 216.6 kB / 353.3 MB, free: 1.445 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.437e-05/0.1952, allocations: 11.88 kB / 353.4 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.213e-05/0.1953, allocations: 12 kB / 353.4 MB, free: 1.422 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000531/0.1958, allocations: 136.2 kB / 353.5 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.1959, allocations: 3.906 kB / 353.5 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.1959, allocations: 0 / 353.5 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.1959, allocations: 4 kB / 353.5 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000395/0.1963, allocations: 67.88 kB / 353.6 MB, free: 1.199 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.1976, allocations: 0.5477 MB / 354.1 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006784/0.1983, allocations: 134.4 kB / 354.2 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.1986, allocations: 52.83 kB / 354.3 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.283e-05/0.1987, allocations: 4 kB / 354.3 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/0.1988, allocations: 38.55 kB / 354.3 MB, free: 356 kB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 3.296e-06/0.1988, allocations: 4 kB / 354.3 MB, free: 352 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.002174/0.201, allocations: 0.5135 MB / 354.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.201, allocations: 51.41 kB / 354.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.2013, allocations: 150.2 kB / 355.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.2014, allocations: 25.7 kB / 355.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.2015, allocations: 119.7 kB / 355.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.618e-05/0.2016, allocations: 43.36 kB / 355.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.2017, allocations: 29.72 kB / 355.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.2019, allocations: 322.8 kB / 355.6 MB, free: 15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002928/0.2022, allocations: 55.95 kB / 355.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003332/0.2026, allocations: 84.27 kB / 355.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000604/0.2032, allocations: 131.4 kB / 355.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2032, allocations: 0 / 355.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0007915/0.204, allocations: 196.3 kB / 356 MB, free: 14.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.2041, allocations: 6.344 kB / 356 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.2041, allocations: 0 / 356 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.564e-05/0.2041, allocations: 7.984 kB / 356.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.2045, allocations: 35.97 kB / 356.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.971e-05/0.2046, allocations: 3.938 kB / 356.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.2047, allocations: 11.98 kB / 356.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.2048, allocations: 12 kB / 356.1 MB, free: 14.45 MB / 302.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 0.0001687/0.205, allocations: 121.8 kB / 356.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.856e-05/0.2051, allocations: 11.84 kB / 356.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.792e-05/0.2051, allocations: 20.7 kB / 356.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.2051, allocations: 0 / 356.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.2052, allocations: 0 / 356.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.2052, allocations: 0 / 356.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001207/0.2064, allocations: 0.4921 MB / 356.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2064, allocations: 0 / 356.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.2067, allocations: 39.91 kB / 356.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.019e-05/0.2067, allocations: 8.062 kB / 356.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.2067, allocations: 3.938 kB / 356.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.2067, allocations: 0 / 356.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.2067, allocations: 4 kB / 356.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.2078, allocations: 321 kB / 357.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.208, allocations: 88.97 kB / 357.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.592e-05/0.208, allocations: 3.984 kB / 357.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002159/0.2083, allocations: 15.98 kB / 357.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.176e-05/0.2084, allocations: 7.984 kB / 357.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.2084, allocations: 7.938 kB / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001635/0.2086, allocations: 122.7 kB / 357.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.2086, allocations: 0 / 357.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004864/0.2091, allocations: 20 kB / 357.4 MB, free: 13.06 MB / 302.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.0001968/0.2093, allocations: 99.19 kB / 357.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007171/0.2101, allocations: 131.9 kB / 357.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.2101, allocations: 4 kB / 357.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003389/0.2104, allocations: 63.89 kB / 357.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000825/0.2113, allocations: 44.19 kB / 357.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.2126, allocations: 396.3 kB / 358.1 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.213, allocations: 0.7125 MB / 358.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.08e-05/0.2131, allocations: 15.44 kB / 358.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of SimCode: time 2.023e-06/0.2132, allocations: 0 / 358.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of Templates: time 0.006867/0.22, allocations: 1.672 MB / 360.5 MB, free: 9.867 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches