Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo", uses=false) Using package ClaRa with version 1.8.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo) 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) Using package TILMedia with version 1.8.1 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo) Using package SMArtIInt with version 0.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo) Running command: translateModel(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="CPUtime|EventCounter|Time|add.k1|add.k2|add.u1|add.u2|add.y|sine.duration|sine.height|sine.offset|sine.startTime|sine.y|sine1.duration|sine1.height|sine1.offset|sine1.startTime|sine1.y|step.height|step.offset|step.startTime|step.y|step1.height|step1.offset|step1.startTime|step1.y|variableGradientLimiter.Nd|variableGradientLimiter.constantLimits|variableGradientLimiter.maxGrad|variableGradientLimiter.maxGrad_const|variableGradientLimiter.minGrad|variableGradientLimiter.minGrad_const|variableGradientLimiter.thres|variableGradientLimiter.u|variableGradientLimiter.useThresh|variableGradientLimiter.y",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter") translateModel(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="CPUtime|EventCounter|Time|add.k1|add.k2|add.u1|add.u2|add.y|sine.duration|sine.height|sine.offset|sine.startTime|sine.y|sine1.duration|sine1.height|sine1.offset|sine1.startTime|sine1.y|step.height|step.offset|step.startTime|step.y|step1.height|step1.offset|step1.startTime|step1.y|variableGradientLimiter.Nd|variableGradientLimiter.constantLimits|variableGradientLimiter.maxGrad|variableGradientLimiter.maxGrad_const|variableGradientLimiter.minGrad|variableGradientLimiter.minGrad_const|variableGradientLimiter.thres|variableGradientLimiter.u|variableGradientLimiter.useThresh|variableGradientLimiter.y",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo): time 0.02136/0.02136, allocations: 1.431 MB / 16.55 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1535/0.1535, allocations: 22.4 MB / 39.97 MB, free: 0.8281 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 109.4 kB / 47.42 MB, free: 2.418 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 191.5 kB / 55 MB, free: 6.477 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 222.9 MB / 285.3 MB, free: 1.066 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.9055/0.9055, allocations: 127.8 MB / 470 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002121/0.002121, allocations: 124.9 kB / 0.5526 GB, free: 43.22 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1815, allocations: 82.36 MB / 0.633 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003654/0.1852, allocations: 2.317 MB / 0.6353 GB, free: 11.11 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.1864, allocations: 0.6934 MB / 0.6359 GB, free: 10.41 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.21e-05/0.1865, allocations: 0 / 0.6359 GB, free: 10.41 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.1866, allocations: 3.938 kB / 0.6359 GB, free: 10.41 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 5.91e-05/0.1867, allocations: 19.86 kB / 0.636 GB, free: 10.39 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.187, allocations: 83.78 kB / 0.636 GB, free: 10.3 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.1871, allocations: 87.7 kB / 0.6361 GB, free: 10.22 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.1873, allocations: 37.3 kB / 0.6362 GB, free: 10.18 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.679e-05/0.1873, allocations: 31.86 kB / 0.6362 GB, free: 10.15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.665e-05/0.1874, allocations: 47.7 kB / 0.6362 GB, free: 10.11 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.703e-05/0.1875, allocations: 4 kB / 0.6362 GB, free: 10.1 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.877e-05/0.1875, allocations: 4 kB / 0.6362 GB, free: 10.1 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.824e-05/0.1875, allocations: 19.92 kB / 0.6363 GB, free: 10.08 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.629e-05/0.1876, allocations: 39.72 kB / 0.6363 GB, free: 10.04 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001257/0.1877, allocations: 75.7 kB / 0.6364 GB, free: 9.965 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1877, allocations: 4 kB / 0.6364 GB, free: 9.961 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1877, allocations: 0 / 0.6364 GB, free: 9.961 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1877, allocations: 0 / 0.6364 GB, free: 9.961 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006668/0.1884, allocations: 431 kB / 0.6368 GB, free: 9.492 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.1884, allocations: 8.031 kB / 0.6368 GB, free: 9.484 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.266e-05/0.1885, allocations: 12.75 kB / 0.6368 GB, free: 9.473 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002138/0.1887, allocations: 191.6 kB / 0.637 GB, free: 9.25 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.1887, allocations: 8.312 kB / 0.637 GB, free: 9.242 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.1888, allocations: 16.03 kB / 0.637 GB, free: 9.227 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000343/0.1891, allocations: 109.5 kB / 0.6371 GB, free: 9.113 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1891, allocations: 0 / 0.6371 GB, free: 9.113 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.1891, allocations: 0 / 0.6371 GB, free: 9.113 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.1892, allocations: 4 kB / 0.6371 GB, free: 9.109 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003906/0.1895, allocations: 103.9 kB / 0.6372 GB, free: 9.008 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006264/0.1902, allocations: 376.5 kB / 0.6376 GB, free: 8.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.1904, allocations: 70.52 kB / 0.6376 GB, free: 8.512 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.1906, allocations: 52.94 kB / 0.6377 GB, free: 8.457 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.1907, allocations: 8 kB / 0.6377 GB, free: 8.449 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.1907, allocations: 34.56 kB / 0.6377 GB, free: 8.406 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.683e-06/0.1907, allocations: 0 / 0.6377 GB, free: 8.406 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006977/0.1914, allocations: 193.4 kB / 0.6379 GB, free: 8.211 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.1915, allocations: 59.34 kB / 0.638 GB, free: 8.141 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.1916, allocations: 138.4 kB / 0.6381 GB, free: 7.988 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.1916, allocations: 25.7 kB / 0.6381 GB, free: 7.957 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.685e-05/0.1917, allocations: 108 kB / 0.6382 GB, free: 7.848 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.907e-05/0.1917, allocations: 19.66 kB / 0.6383 GB, free: 7.828 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-05/0.1918, allocations: 25.7 kB / 0.6383 GB, free: 7.797 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1919, allocations: 322.8 kB / 0.6386 GB, free: 7.473 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.1921, allocations: 51.94 kB / 0.6386 GB, free: 7.422 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.1923, allocations: 47.95 kB / 0.6387 GB, free: 7.375 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003648/0.1927, allocations: 112.9 kB / 0.6388 GB, free: 7.262 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1927, allocations: 0 / 0.6388 GB, free: 7.262 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004379/0.1931, allocations: 149.4 kB / 0.6389 GB, free: 7.109 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1932, allocations: 11.92 kB / 0.6389 GB, free: 7.098 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1932, allocations: 4 kB / 0.6389 GB, free: 7.094 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1932, allocations: 0 / 0.6389 GB, free: 7.094 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/0.1934, allocations: 27.97 kB / 0.639 GB, free: 7.066 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1934, allocations: 0 / 0.639 GB, free: 7.066 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.1935, allocations: 11.98 kB / 0.639 GB, free: 7.055 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.1935, allocations: 4 kB / 0.639 GB, free: 7.051 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001035/0.1936, allocations: 119.6 kB / 0.6391 GB, free: 6.926 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.196e-05/0.1937, allocations: 19.78 kB / 0.6391 GB, free: 6.906 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.202e-05/0.1937, allocations: 12.7 kB / 0.6391 GB, free: 6.898 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1937, allocations: 4 kB / 0.6391 GB, free: 6.895 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.1937, allocations: 3.938 kB / 0.6391 GB, free: 6.891 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1937, allocations: 0 / 0.6391 GB, free: 6.891 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1939, allocations: 197.6 kB / 0.6393 GB, free: 6.648 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1939, allocations: 0 / 0.6393 GB, free: 6.648 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001541/0.1941, allocations: 19.98 kB / 0.6393 GB, free: 6.629 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.1941, allocations: 7.922 kB / 0.6394 GB, free: 6.621 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.1941, allocations: 12 kB / 0.6394 GB, free: 6.609 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1941, allocations: 0 / 0.6394 GB, free: 6.609 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1941, allocations: 0 / 0.6394 GB, free: 6.609 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006579/0.1948, allocations: 295.2 kB / 0.6396 GB, free: 6.305 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.547e-05/0.1949, allocations: 96.97 kB / 0.6397 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.1949, allocations: 8.234 kB / 0.6398 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.195, allocations: 15.98 kB / 0.6398 GB, free: 6.168 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.1951, allocations: 7.922 kB / 0.6398 GB, free: 6.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.1951, allocations: 12 kB / 0.6398 GB, free: 6.148 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.784e-05/0.1952, allocations: 110.6 kB / 0.6399 GB, free: 6.043 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1952, allocations: 4.062 kB / 0.6399 GB, free: 6.039 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002193/0.1954, allocations: 12 kB / 0.6399 GB, free: 6.027 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (variableGradientLimiter.y_aux) * 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 (6): * Single equations (assignments): 6 * 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.0001192/0.1955, allocations: 95.25 kB / 0.64 GB, free: 5.922 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004127/0.196, allocations: 111.9 kB / 0.6401 GB, free: 5.812 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.196, allocations: 4 kB / 0.6401 GB, free: 5.809 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.1962, allocations: 55.89 kB / 0.6402 GB, free: 5.754 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.1965, allocations: 23.86 kB / 0.6402 GB, free: 5.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007733/0.1973, allocations: 268.6 kB / 0.6404 GB, free: 5.438 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.1976, allocations: 0.6965 MB / 0.6411 GB, free: 4.715 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.078e-05/0.1977, allocations: 8 kB / 0.6411 GB, free: 4.707 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.843e-05/0.1977, allocations: 11.44 kB / 0.6411 GB, free: 4.695 MB / 462.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1977, allocations: 0 / 0.6411 GB, free: 4.695 MB / 462.1 MB Notification: Performance of Templates: time 0.00301/0.2007, allocations: 0.8838 MB / 0.642 GB, free: 3.824 MB / 462.1 MB make -j1 -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.makefile (rm -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe ; mkfifo ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe >> ../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.sim & ./ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches