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.01495/0.01495, allocations: 1.416 MB / 16.69 MB, free: 4.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1444/0.1444, allocations: 22.59 MB / 40.31 MB, free: 1.066 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.001123/0.001123, allocations: 102.4 kB / 48.07 MB, free: 2.398 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.001069/0.001069, allocations: 173.9 kB / 55.92 MB, free: 3.973 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.579/1.579, allocations: 223.3 MB / 286.9 MB, free: 2.609 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.9641/0.9641, allocations: 127.7 MB / 472.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005183/0.0005187, allocations: 21.34 kB / 0.5567 GB, free: 42.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1892/0.1897, allocations: 83.88 MB / 0.6386 GB, free: 10.98 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.002643/0.1924, allocations: 1.971 MB / 0.6405 GB, free: 8.992 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.1937, allocations: 0.6741 MB / 0.6412 GB, free: 8.312 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.699e-05/0.1937, allocations: 0 / 0.6412 GB, free: 8.312 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000106/0.1939, allocations: 7.875 kB / 0.6412 GB, free: 8.305 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 6.327e-05/0.1939, allocations: 23.84 kB / 0.6412 GB, free: 8.281 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003617/0.1943, allocations: 91.67 kB / 0.6413 GB, free: 8.195 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.1944, allocations: 83.7 kB / 0.6414 GB, free: 8.113 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.1946, allocations: 25.06 kB / 0.6414 GB, free: 8.09 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.755e-05/0.1947, allocations: 43.77 kB / 0.6415 GB, free: 8.047 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.227e-05/0.1947, allocations: 35.78 kB / 0.6415 GB, free: 8.012 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.1948, allocations: 4 kB / 0.6415 GB, free: 8.008 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.505e-05/0.1948, allocations: 4 kB / 0.6415 GB, free: 8.004 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.726e-05/0.1948, allocations: 15.92 kB / 0.6415 GB, free: 7.988 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 5.897e-05/0.1949, allocations: 61.44 kB / 0.6416 GB, free: 7.922 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.195, allocations: 75.69 kB / 0.6417 GB, free: 7.848 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.195, allocations: 0 / 0.6417 GB, free: 7.848 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.195, allocations: 0 / 0.6417 GB, free: 7.848 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.195, allocations: 0 / 0.6417 GB, free: 7.848 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.0006951/0.1957, allocations: 427.1 kB / 0.6421 GB, free: 7.383 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1958, allocations: 12.03 kB / 0.6421 GB, free: 7.371 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.462e-05/0.1958, allocations: 12.75 kB / 0.6421 GB, free: 7.359 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002128/0.1961, allocations: 198.7 kB / 0.6423 GB, free: 7.129 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.1961, allocations: 12.31 kB / 0.6423 GB, free: 7.117 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/0.1961, allocations: 8.125 kB / 0.6423 GB, free: 7.109 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/0.1965, allocations: 121.6 kB / 0.6424 GB, free: 6.984 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.1965, allocations: 0 / 0.6424 GB, free: 6.984 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.1965, allocations: 11.94 kB / 0.6424 GB, free: 6.973 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.1965, allocations: 0 / 0.6424 GB, free: 6.973 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004384/0.197, allocations: 127.9 kB / 0.6425 GB, free: 6.848 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007061/0.1977, allocations: 380.5 kB / 0.6429 GB, free: 6.426 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.198, allocations: 98.5 kB / 0.643 GB, free: 6.32 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000231/0.1982, allocations: 72.88 kB / 0.6431 GB, free: 6.246 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.1983, allocations: 3.984 kB / 0.6431 GB, free: 6.242 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.1983, allocations: 34.56 kB / 0.6431 GB, free: 6.199 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.1983, allocations: 0 / 0.6431 GB, free: 6.199 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007908/0.1991, allocations: 233.5 kB / 0.6433 GB, free: 5.965 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.1992, allocations: 59.34 kB / 0.6434 GB, free: 5.895 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.1993, allocations: 143.9 kB / 0.6435 GB, free: 5.738 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.1993, allocations: 29.7 kB / 0.6436 GB, free: 5.703 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.952e-05/0.1994, allocations: 104 kB / 0.6437 GB, free: 5.598 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.344e-05/0.1995, allocations: 19.66 kB / 0.6437 GB, free: 5.578 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.375e-05/0.1995, allocations: 17.7 kB / 0.6437 GB, free: 5.555 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1997, allocations: 318.8 kB / 0.644 GB, free: 5.234 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002205/0.1999, allocations: 71.88 kB / 0.6441 GB, free: 5.164 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.2001, allocations: 63.95 kB / 0.6441 GB, free: 5.102 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000434/0.2005, allocations: 132.8 kB / 0.6443 GB, free: 4.969 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2006, allocations: 0 / 0.6443 GB, free: 4.969 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004979/0.2011, allocations: 177.5 kB / 0.6444 GB, free: 4.789 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.2011, allocations: 11.94 kB / 0.6444 GB, free: 4.777 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.2011, allocations: 0 / 0.6444 GB, free: 4.777 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.2011, allocations: 3.984 kB / 0.6444 GB, free: 4.773 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00019/0.2013, allocations: 35.92 kB / 0.6445 GB, free: 4.738 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.2013, allocations: 0 / 0.6445 GB, free: 4.738 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.2015, allocations: 23.97 kB / 0.6445 GB, free: 4.715 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.2015, allocations: 4 kB / 0.6445 GB, free: 4.711 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.0001434/0.2016, allocations: 119.6 kB / 0.6446 GB, free: 4.586 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.272e-05/0.2017, allocations: 15.78 kB / 0.6446 GB, free: 4.57 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.2017, allocations: 16.7 kB / 0.6446 GB, free: 4.559 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2017, allocations: 4 kB / 0.6446 GB, free: 4.555 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.2018, allocations: 0 / 0.6446 GB, free: 4.555 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.2018, allocations: 256 / 0.6446 GB, free: 4.555 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.202, allocations: 205.5 kB / 0.6448 GB, free: 4.305 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.202, allocations: 7.984 kB / 0.6448 GB, free: 4.297 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/0.2022, allocations: 31.98 kB / 0.6449 GB, free: 4.266 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.2022, allocations: 7.938 kB / 0.6449 GB, free: 4.258 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.2022, allocations: 3.984 kB / 0.6449 GB, free: 4.254 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.2023, allocations: 0 / 0.6449 GB, free: 4.254 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2023, allocations: 4.234 kB / 0.6449 GB, free: 4.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007886/0.2031, allocations: 347.2 kB / 0.6452 GB, free: 3.895 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.435e-05/0.2031, allocations: 85.05 kB / 0.6453 GB, free: 3.793 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.2032, allocations: 7.922 kB / 0.6453 GB, free: 3.785 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.2033, allocations: 24.05 kB / 0.6453 GB, free: 3.762 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/0.2034, allocations: 11.98 kB / 0.6453 GB, free: 3.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-06/0.2034, allocations: 0 / 0.6453 GB, free: 3.75 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001274/0.2035, allocations: 109.5 kB / 0.6455 GB, free: 3.645 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2035, allocations: 0 / 0.6455 GB, free: 3.645 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002218/0.2038, allocations: 16 kB / 0.6455 GB, free: 3.629 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.0001324/0.2039, allocations: 95.25 kB / 0.6456 GB, free: 3.523 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005131/0.2044, allocations: 151.8 kB / 0.6457 GB, free: 3.375 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2044, allocations: 0 / 0.6457 GB, free: 3.375 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.2047, allocations: 71.95 kB / 0.6458 GB, free: 3.305 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.205, allocations: 17.81 kB / 0.6458 GB, free: 3.289 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008/0.2058, allocations: 275.5 kB / 0.6461 GB, free: 2.992 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.2062, allocations: 0.6965 MB / 0.6467 GB, free: 2.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.267e-05/0.2062, allocations: 8 kB / 0.6467 GB, free: 2.262 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.21e-05/0.2063, allocations: 11.44 kB / 0.6468 GB, free: 2.25 MB / 462.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2063, allocations: 3.938 kB / 0.6468 GB, free: 2.246 MB / 462.1 MB Notification: Performance of Templates: time 0.003207/0.2095, allocations: 0.8751 MB / 0.6476 GB, free: 1.383 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