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.001137/0.001137, allocations: 100.2 kB / 18.39 MB, free: 4.531 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.001139/0.001139, allocations: 188.3 kB / 19.33 MB, free: 3.605 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.253/1.253, allocations: 205.1 MB / 225.2 MB, free: 12.21 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: 51.94 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07389/0.07501, allocations: 46.62 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002558/0.07761, allocations: 1.669 MB / 377.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007973/0.07843, allocations: 0.5188 MB / 378 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.467e-05/0.07852, allocations: 8 kB / 378 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.07864, allocations: 15.8 kB / 378 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.704e-05/0.07871, allocations: 27.78 kB / 378 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.0789, allocations: 43.94 kB / 378.1 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001583/0.07906, allocations: 119.6 kB / 378.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.07917, allocations: 25.11 kB / 378.2 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.257e-05/0.07923, allocations: 43.8 kB / 378.3 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.138e-05/0.07933, allocations: 55.69 kB / 378.3 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.07936, allocations: 8 kB / 378.3 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.607e-05/0.07938, allocations: 8 kB / 378.3 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.396e-05/0.07941, allocations: 19.92 kB / 378.4 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.5e-05/0.07945, allocations: 43.69 kB / 378.4 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.07958, allocations: 99.5 kB / 378.5 MB, free: 1.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.07959, allocations: 0 / 378.5 MB, free: 1.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.0796, allocations: 0 / 378.5 MB, free: 1.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.07961, allocations: 0 / 378.5 MB, free: 1.867 MB / 318.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.0005244/0.08014, allocations: 427 kB / 378.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.08018, allocations: 8.031 kB / 378.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.533e-05/0.08023, allocations: 16.75 kB / 378.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.08047, allocations: 220.6 kB / 379.2 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.08049, allocations: 8.375 kB / 379.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.08052, allocations: 12.06 kB / 379.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002547/0.08079, allocations: 136.1 kB / 379.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.0808, allocations: 0 / 379.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.08082, allocations: 0 / 379.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.08083, allocations: 7.984 kB / 379.3 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.08103, allocations: 63.94 kB / 379.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006258/0.08167, allocations: 0.5554 MB / 379.9 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003178/0.08199, allocations: 134.4 kB / 380.1 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.08214, allocations: 56.81 kB / 380.1 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.08216, allocations: 0 / 380.1 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.08219, allocations: 34.56 kB / 380.2 MB, free: 32 kB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.022e-06/0.08219, allocations: 7.938 kB / 380.2 MB, free: 24 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.1522/0.2344, allocations: 0.5048 MB / 380.7 MB, free: 13.05 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.2345, allocations: 52.78 kB / 380.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.2346, allocations: 154.3 kB / 380.9 MB, free: 12.88 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.749e-06/0.2346, allocations: 30.2 kB / 380.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.089e-05/0.2347, allocations: 110.8 kB / 381 MB, free: 12.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.2347, allocations: 43.22 kB / 381.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.2347, allocations: 35.66 kB / 381.1 MB, free: 12.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.354e-05/0.2348, allocations: 321.2 kB / 381.4 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.2349, allocations: 52.25 kB / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.2351, allocations: 80.31 kB / 381.5 MB, free: 12.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.2354, allocations: 139.2 kB / 381.7 MB, free: 12.35 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.2354, allocations: 3.625 kB / 381.7 MB, free: 12.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003317/0.2357, allocations: 175 kB / 381.8 MB, free: 12.31 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.2357, allocations: 6.281 kB / 381.8 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2357, allocations: 3.281 kB / 381.8 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.2358, allocations: 2.75 kB / 381.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001544/0.2359, allocations: 43.89 kB / 381.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.2359, allocations: 2.016 kB / 381.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.751e-05/0.236, allocations: 15.86 kB / 381.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-06/0.236, allocations: 7.469 kB / 381.9 MB, free: 12.31 MB / 318.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 6.401e-05/0.2361, allocations: 119.2 kB / 382 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/0.2361, allocations: 17.06 kB / 382.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.643e-05/0.2362, allocations: 16.83 kB / 382.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.2362, allocations: 1.375 kB / 382.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.2362, allocations: 0 / 382.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.2362, allocations: 5.016 kB / 382.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006609/0.2369, allocations: 0.4928 MB / 382.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2369, allocations: 5.312 kB / 382.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001512/0.237, allocations: 34.98 kB / 382.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.237, allocations: 1.375 kB / 382.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.2371, allocations: 1.984 kB / 382.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2371, allocations: 8.172 kB / 382.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2371, allocations: 1.984 kB / 382.6 MB, free: 11.86 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005282/0.2376, allocations: 321.8 kB / 382.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.543e-05/0.2376, allocations: 86.45 kB / 383 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.2377, allocations: 2.031 kB / 383 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.2378, allocations: 15.94 kB / 383 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.2378, allocations: 14.7 kB / 383.1 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.2378, allocations: 7.281 kB / 383.1 MB, free: 11.6 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.161e-05/0.2379, allocations: 111.6 kB / 383.2 MB, free: 11.53 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2379, allocations: 3.969 kB / 383.2 MB, free: 11.53 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002458/0.2382, allocations: 21.12 kB / 383.2 MB, free: 11.53 MB / 318.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 7.719e-05/0.2382, allocations: 104.2 kB / 383.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003558/0.2386, allocations: 126.8 kB / 383.4 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2386, allocations: 0.5625 kB / 383.4 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.2388, allocations: 68.88 kB / 383.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.2392, allocations: 40.73 kB / 383.5 MB, free: 11.42 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005953/0.2398, allocations: 361.6 kB / 383.9 MB, free: 11.19 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/0.2399, allocations: 0.7091 MB / 384.6 MB, free: 10.49 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.897e-05/0.24, allocations: 15.88 kB / 384.6 MB, free: 10.48 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.24, allocations: 0 / 384.6 MB, free: 10.48 MB / 318.1 MB Notification: Performance of Templates: time 0.003189/0.2432, allocations: 1.709 MB / 386.3 MB, free: 10.38 MB / 318.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins1/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