Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001358/0.001358, allocations: 203.8 kB / 17.06 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 226.6 MB / 244.3 MB, free: 6.559 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007679/0.0007682, allocations: 107.7 kB / 296.4 MB, free: 6.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000215/0.000215, allocations: 11.98 kB / 356.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1817/0.1819, allocations: 51.3 MB / 407.5 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.001159/0.1831, allocations: 1.358 MB / 408.8 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005473/0.1837, allocations: 491.2 kB / 409.3 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.573e-05/0.1837, allocations: 4.688 kB / 409.3 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.575e-05/0.1838, allocations: 11.92 kB / 409.3 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.314e-05/0.1839, allocations: 17.25 kB / 409.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000107/0.184, allocations: 31.97 kB / 409.4 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001015/0.1841, allocations: 103.6 kB / 409.5 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.143e-05/0.1842, allocations: 26.69 kB / 409.5 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.873e-05/0.1843, allocations: 37.02 kB / 409.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.817e-05/0.1843, allocations: 35.78 kB / 409.6 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.1843, allocations: 4 kB / 409.6 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.407e-05/0.1844, allocations: 4.531 kB / 409.6 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.22e-05/0.1844, allocations: 16.61 kB / 409.6 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.924e-05/0.1844, allocations: 37.64 kB / 409.6 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.548e-05/0.1845, allocations: 67.39 kB / 409.7 MB, free: 25.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1845, allocations: 0 / 409.7 MB, free: 25.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1845, allocations: 0 / 409.7 MB, free: 25.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.1845, allocations: 3.938 kB / 409.7 MB, free: 25.53 MB / 298.7 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.0003739/0.1849, allocations: 420.8 kB / 410.1 MB, free: 25.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.821e-05/0.1849, allocations: 8.031 kB / 410.1 MB, free: 25.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.185, allocations: 16.41 kB / 410.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.1851, allocations: 212.1 kB / 410.4 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.1851, allocations: 8 kB / 410.4 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.129e-05/0.1852, allocations: 11.95 kB / 410.4 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002481/0.1854, allocations: 138.1 kB / 410.5 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1854, allocations: 7.844 kB / 410.5 MB, free: 24.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.1855, allocations: 11.98 kB / 410.5 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1855, allocations: 1.812 kB / 410.5 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.1857, allocations: 87.88 kB / 410.6 MB, free: 24.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004881/0.1861, allocations: 0.5517 MB / 411.2 MB, free: 23.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.1865, allocations: 150.4 kB / 411.3 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001348/0.1866, allocations: 68.83 kB / 411.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.1866, allocations: 0 / 411.4 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/0.1867, allocations: 42.5 kB / 411.4 MB, free: 23.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 9.62e-07/0.1867, allocations: 3.938 kB / 411.4 MB, free: 23.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0009333/0.1876, allocations: 0.5527 MB / 412 MB, free: 23.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.027e-05/0.1876, allocations: 55.41 kB / 412 MB, free: 22.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.111e-05/0.1877, allocations: 148.5 kB / 412.2 MB, free: 22.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.989e-06/0.1877, allocations: 33.7 kB / 412.2 MB, free: 22.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.1878, allocations: 111.9 kB / 412.3 MB, free: 22.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.1878, allocations: 43.36 kB / 412.4 MB, free: 22.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-06/0.1878, allocations: 0 / 412.4 MB, free: 22.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.509e-05/0.1878, allocations: 326.8 kB / 412.7 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.188, allocations: 59.97 kB / 412.7 MB, free: 22.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.1881, allocations: 94.19 kB / 412.8 MB, free: 22.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.1883, allocations: 71.34 kB / 412.9 MB, free: 22.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1883, allocations: 0 / 412.9 MB, free: 22.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003219/0.1886, allocations: 198.3 kB / 413.1 MB, free: 21.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.1886, allocations: 7.953 kB / 413.1 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.1886, allocations: 0 / 413.1 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.1887, allocations: 4 kB / 413.1 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.1888, allocations: 44.03 kB / 413.2 MB, free: 21.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1888, allocations: 3.938 kB / 413.2 MB, free: 21.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.644e-05/0.1889, allocations: 27.92 kB / 413.2 MB, free: 21.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1889, allocations: 4 kB / 413.2 MB, free: 21.78 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.759e-05/0.189, allocations: 121.8 kB / 413.3 MB, free: 21.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.836e-05/0.189, allocations: 7.906 kB / 413.3 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.192e-05/0.1891, allocations: 32.59 kB / 413.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1891, allocations: 0 / 413.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.1891, allocations: 0 / 413.3 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.1891, allocations: 4 kB / 413.4 MB, free: 21.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000598/0.1897, allocations: 0.5194 MB / 413.9 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1897, allocations: 0 / 413.9 MB, free: 21.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001518/0.1899, allocations: 43.91 kB / 413.9 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1899, allocations: 0 / 413.9 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.1899, allocations: 0 / 413.9 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.1899, allocations: 4 kB / 413.9 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1899, allocations: 4.062 kB / 413.9 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004553/0.1904, allocations: 352 kB / 414.3 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.343e-05/0.1904, allocations: 96.95 kB / 414.4 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.1904, allocations: 4 kB / 414.4 MB, free: 20.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.1905, allocations: 15.98 kB / 414.4 MB, free: 20.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.1906, allocations: 15.98 kB / 414.4 MB, free: 20.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.1906, allocations: 4 kB / 414.4 MB, free: 20.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.642e-05/0.1906, allocations: 115.3 kB / 414.5 MB, free: 20.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1906, allocations: 4 kB / 414.5 MB, free: 20.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002094/0.1908, allocations: 20 kB / 414.5 MB, free: 20.32 MB / 298.7 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 (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 6.24e-05/0.1909, allocations: 99.25 kB / 414.6 MB, free: 20.21 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003089/0.1912, allocations: 143.8 kB / 414.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1912, allocations: 0 / 414.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.1914, allocations: 80.2 kB / 414.9 MB, free: 20 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.1918, allocations: 40.2 kB / 414.9 MB, free: 19.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004567/0.1922, allocations: 393.4 kB / 415.3 MB, free: 19.53 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.978e-05/0.1923, allocations: 0.7087 MB / 416 MB, free: 18.79 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.57e-05/0.1924, allocations: 15.44 kB / 416 MB, free: 18.78 MB / 298.7 MB Notification: Performance of SimCode: time 9.12e-07/0.1924, allocations: 0 / 416 MB, free: 18.78 MB / 298.7 MB Notification: Performance of Templates: time 0.002264/0.1946, allocations: 1.667 MB / 417.7 MB, free: 17.12 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches