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.001037/0.001038, allocations: 107.4 kB / 18.4 MB, free: 4.68 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.001004/0.001004, allocations: 183.1 kB / 19.34 MB, free: 3.758 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.282/1.282, allocations: 205.1 MB / 225.2 MB, free: 12.22 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.001244/0.001244, allocations: 51.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07365/0.0749, 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.002755/0.0777, allocations: 1.663 MB / 377.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009494/0.07868, allocations: 0.5305 MB / 378 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.992e-05/0.0788, allocations: 4 kB / 378 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.07893, allocations: 11.81 kB / 378 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.936e-05/0.07902, allocations: 23.8 kB / 378 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001649/0.07919, allocations: 47.92 kB / 378.1 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001878/0.07939, allocations: 115.6 kB / 378.2 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.07951, allocations: 25.12 kB / 378.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.64e-05/0.07958, allocations: 55.7 kB / 378.3 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.894e-05/0.07968, allocations: 39.78 kB / 378.3 MB, free: 2.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.304e-05/0.07971, allocations: 8 kB / 378.3 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.854e-05/0.07973, allocations: 8 kB / 378.3 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.788e-05/0.07977, allocations: 23.92 kB / 378.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.609e-05/0.07983, allocations: 51.61 kB / 378.4 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.07997, allocations: 95.56 kB / 378.5 MB, free: 1.867 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.07998, allocations: 0 / 378.5 MB, free: 1.867 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.07999, allocations: 0 / 378.5 MB, free: 1.867 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.08, 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.0005545/0.08056, allocations: 427 kB / 378.9 MB, free: 1.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.08061, allocations: 8.031 kB / 378.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.909e-05/0.08065, allocations: 16.75 kB / 379 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.08093, allocations: 216.6 kB / 379.2 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.08096, allocations: 8.375 kB / 379.2 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.08099, allocations: 16.11 kB / 379.2 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.08129, allocations: 132.1 kB / 379.3 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.08132, allocations: 0 / 379.3 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.08134, allocations: 4 kB / 379.3 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.08135, allocations: 7.938 kB / 379.3 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002032/0.08156, allocations: 67.94 kB / 379.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006742/0.08224, allocations: 0.5553 MB / 379.9 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.08259, allocations: 122.5 kB / 380.1 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.08275, allocations: 60.81 kB / 380.1 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.08277, allocations: 0 / 380.1 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.0828, allocations: 30.56 kB / 380.2 MB, free: 40 kB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.08281, allocations: 7.938 kB / 380.2 MB, free: 32 kB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.1465/0.2294, allocations: 0.508 MB / 380.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.473e-05/0.2294, allocations: 54.16 kB / 380.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.2295, allocations: 157.5 kB / 380.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.496e-06/0.2295, allocations: 25.7 kB / 380.9 MB, free: 12.81 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.099e-05/0.2296, allocations: 110.3 kB / 381 MB, free: 12.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.2296, allocations: 46.05 kB / 381.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.2297, allocations: 35.75 kB / 381.1 MB, free: 12.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.91e-05/0.2297, allocations: 324 kB / 381.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.2299, allocations: 49.66 kB / 381.5 MB, free: 12.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.23, allocations: 83.44 kB / 381.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.2303, allocations: 129.8 kB / 381.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2303, allocations: 4.469 kB / 381.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003488/0.2306, allocations: 181.9 kB / 381.8 MB, free: 12.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.2307, allocations: 7.359 kB / 381.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2307, allocations: 10.14 kB / 381.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.2307, allocations: 1.375 kB / 381.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.2309, allocations: 37.88 kB / 381.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.2309, allocations: 1.344 kB / 381.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.923e-05/0.231, allocations: 18.69 kB / 381.9 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.231, allocations: 4.312 kB / 381.9 MB, free: 12.27 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 5.948e-05/0.231, allocations: 123 kB / 382 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.321e-05/0.2311, allocations: 13.34 kB / 382.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.493e-05/0.2311, allocations: 16.2 kB / 382.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2311, allocations: 0.75 kB / 382.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2311, allocations: 0 / 382.1 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.509e-05/0.2312, allocations: 91.03 kB / 382.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.946e-05/0.2312, allocations: 3.062 kB / 382.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.2313, allocations: 15.22 kB / 382.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.953e-05/0.2314, allocations: 12.75 kB / 382.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004472/0.2318, allocations: 249.8 kB / 382.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005018/0.2323, allocations: 392.9 kB / 382.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001638/0.2325, allocations: 63.88 kB / 382.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.391e-05/0.2326, allocations: 116 kB / 383 MB, free: 11.64 MB / 318.1 MB Notification: Performance of Backend: time 3e-07/0.2326, allocations: 0 / 383 MB, free: 11.64 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004716/0.2331, allocations: 149.1 kB / 383.1 MB, free: 11.58 MB / 318.1 MB Notification: Performance of SimCode: time 0.0006096/0.2337, allocations: 0.7668 MB / 383.9 MB, free: 10.92 MB / 318.1 MB Notification: Performance of Templates: time 0.004267/0.238, allocations: 1.825 MB / 385.7 MB, free: 10.81 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) "" Variables in the reference:time,limit_a.y,limit_v.y,positionSmoothed.y Variables in the result:aMax,limit_a.Falling,limit_a.Rising,limit_a.Td,limit_a.initType,limit_a.strict,limit_a.y,limit_a.y_start,limit_v.Falling,limit_v.Rising,limit_v.Td,limit_v.initType,limit_v.strict,limit_v.y,limit_v.y_start,positionSmoothed.initType,positionSmoothed.k,positionSmoothed.y,positionSmoothed.y_start,positionStep.height,positionStep.offset,positionStep.startTime,time,vMax