Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Blocks.Examples.SlewRateLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001434/0.001434, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.024/2.024, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001161/0.001161, allocations: 99.36 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.523e-05/2.531e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3459, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1269/0.4728, allocations: 75.78 MB / 438.1 MB, free: 10.54 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.4732, allocations: 67.97 kB / 438.2 MB, free: 10.48 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01037/0.4835, allocations: 2.373 MB / 440.5 MB, free: 8.129 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4836, allocations: 0 / 440.5 MB, free: 8.129 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.002e-05/0.4836, allocations: 4 kB / 440.5 MB, free: 8.125 MB / 331.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.0006478/0.4843, allocations: 411.7 kB / 440.9 MB, free: 7.684 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.4844, allocations: 12.03 kB / 441 MB, free: 7.672 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.875e-05/0.4844, allocations: 12.91 kB / 441 MB, free: 7.66 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.4848, allocations: 209 kB / 441.2 MB, free: 7.414 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.4848, allocations: 4 kB / 441.2 MB, free: 7.41 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.4848, allocations: 15.95 kB / 441.2 MB, free: 7.395 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001399/0.485, allocations: 35.94 kB / 441.2 MB, free: 7.359 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/0.4852, allocations: 103.8 kB / 441.3 MB, free: 7.246 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.4853, allocations: 0 / 441.3 MB, free: 7.246 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.4853, allocations: 0 / 441.3 MB, free: 7.246 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.4853, allocations: 4 kB / 441.3 MB, free: 7.242 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.4863, allocations: 0.5054 MB / 441.8 MB, free: 6.691 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.4865, allocations: 74.5 kB / 441.9 MB, free: 6.609 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.525e-05/0.4866, allocations: 32.86 kB / 441.9 MB, free: 6.574 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.4867, allocations: 0 / 441.9 MB, free: 6.574 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.4867, allocations: 34.56 kB / 442 MB, free: 6.531 MB / 331.1 MB Notification: Performance of pre-optimization done (n=9): time 1.703e-06/0.4867, allocations: 0 / 442 MB, free: 6.531 MB / 331.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007515/0.4875, allocations: 339.5 kB / 442.3 MB, free: 6.148 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.984e-05/0.4875, allocations: 56.44 kB / 442.4 MB, free: 6.082 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.4877, allocations: 141.5 kB / 442.5 MB, free: 5.938 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.4878, allocations: 25.7 kB / 442.5 MB, free: 5.906 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.4879, allocations: 174.6 kB / 442.7 MB, free: 5.73 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.678e-05/0.4879, allocations: 35.89 kB / 442.7 MB, free: 5.695 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-06/0.488, allocations: 0 / 442.7 MB, free: 5.695 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.4881, allocations: 314.8 kB / 443 MB, free: 5.379 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-05/0.4882, allocations: 24 kB / 443.1 MB, free: 5.355 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.4883, allocations: 59.36 kB / 443.1 MB, free: 5.285 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.487e-05/0.4884, allocations: 27.98 kB / 443.2 MB, free: 5.258 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.4884, allocations: 0 / 443.2 MB, free: 5.258 MB / 331.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002623/0.4887, allocations: 103 kB / 443.3 MB, free: 5.152 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.4887, allocations: 4 kB / 443.3 MB, free: 5.148 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.4888, allocations: 0 / 443.3 MB, free: 5.148 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.4888, allocations: 11.98 kB / 443.3 MB, free: 5.137 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.4891, allocations: 43.78 kB / 443.3 MB, free: 5.098 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.4891, allocations: 4 kB / 443.3 MB, free: 5.094 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001528/0.4893, allocations: 18.14 kB / 443.3 MB, free: 5.078 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.85e-05/0.4893, allocations: 8 kB / 443.3 MB, free: 5.07 MB / 331.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.4894, allocations: 108.9 kB / 443.4 MB, free: 4.957 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.588e-05/0.4895, allocations: 15.75 kB / 443.5 MB, free: 4.941 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.515e-05/0.4896, allocations: 16.61 kB / 443.5 MB, free: 4.93 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.4896, allocations: 0 / 443.5 MB, free: 4.93 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.4896, allocations: 3.953 kB / 443.5 MB, free: 4.926 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4896, allocations: 0 / 443.5 MB, free: 4.926 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00075/0.4904, allocations: 387.9 kB / 443.9 MB, free: 4.5 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4904, allocations: 0 / 443.9 MB, free: 4.5 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/0.4907, allocations: 27.98 kB / 443.9 MB, free: 4.473 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.4907, allocations: 3.938 kB / 443.9 MB, free: 4.469 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.4907, allocations: 7.953 kB / 443.9 MB, free: 4.461 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4907, allocations: 0 / 443.9 MB, free: 4.461 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4908, allocations: 0 / 443.9 MB, free: 4.461 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003859/0.4912, allocations: 238.5 kB / 444.1 MB, free: 4.203 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.358e-05/0.4912, allocations: 87.45 kB / 444.2 MB, free: 4.102 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.4913, allocations: 7.984 kB / 444.2 MB, free: 4.094 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.4915, allocations: 15.98 kB / 444.2 MB, free: 4.078 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/0.4916, allocations: 15.98 kB / 444.3 MB, free: 4.062 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.4916, allocations: 4 kB / 444.3 MB, free: 4.059 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001086/0.4917, allocations: 104.3 kB / 444.4 MB, free: 3.957 MB / 331.1 MB Notification: Performance of sort global known variables: time 4e-07/0.4917, allocations: 0 / 444.4 MB, free: 3.957 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.4921, allocations: 23.92 kB / 444.4 MB, free: 3.934 MB / 331.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (v.u,limit_a.y,positionSmoothed.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001717/0.4923, allocations: 91.25 kB / 444.5 MB, free: 3.832 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.000224/0.4925, allocations: 68.42 kB / 444.5 MB, free: 3.766 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4925, allocations: 4.188 kB / 444.5 MB, free: 3.762 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.4926, allocations: 32 kB / 444.6 MB, free: 3.73 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.4931, allocations: 27.97 kB / 444.6 MB, free: 3.703 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000625/0.4938, allocations: 233.3 kB / 444.8 MB, free: 3.445 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.4941, allocations: 0.7162 MB / 445.6 MB, free: 2.703 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.635e-05/0.4942, allocations: 15.44 kB / 445.6 MB, free: 2.688 MB / 331.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4942, allocations: 0 / 445.6 MB, free: 2.688 MB / 331.1 MB Notification: Performance of Templates: time 0.004879/0.4991, allocations: 1.573 MB / 447.1 MB, free: 1.148 MB / 331.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_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:a.u,a.y,aLimited,aMax,limit_a.Falling,limit_a.Rising,limit_a.Td,der(limit_a.y),limit_a.initType,limit_a.strict,limit_a.u,limit_a.val,limit_a.y,limit_a.y_start,limit_v.Falling,limit_v.Rising,limit_v.Td,der(limit_v.y),limit_v.initType,limit_v.strict,limit_v.u,limit_v.val,limit_v.y,limit_v.y_start,der(positionSmoothed.y),positionSmoothed.initType,positionSmoothed.k,positionSmoothed.local_reset,positionSmoothed.local_set,positionSmoothed.u,positionSmoothed.use_reset,positionSmoothed.use_set,positionSmoothed.y,positionSmoothed.y_start,positionStep.height,positionStep.offset,positionStep.startTime,positionStep.y,s,sSmoothed,time,der(v.u),v.u,v.y,vLimited,vMax