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.01441/0.01441, allocations: 1.415 MB / 17.34 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1249/0.1249, allocations: 22.59 MB / 40.97 MB, free: 0.9688 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.0008072/0.0008073, allocations: 88 kB / 48.71 MB, free: 2.324 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.001258/0.001258, allocations: 178 kB / 56.57 MB, free: 3.953 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.561/1.561, allocations: 223.3 MB / 287.6 MB, free: 2.598 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 1.004/1.004, allocations: 127.7 MB / 473.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005887/0.0005887, allocations: 17.44 kB / 0.5573 GB, free: 42.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1892/0.1898, allocations: 83.86 MB / 0.6392 GB, free: 10.96 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.002732/0.1926, allocations: 1.987 MB / 0.6412 GB, free: 8.953 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001478/0.1941, allocations: 0.6779 MB / 0.6418 GB, free: 8.27 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.1943, allocations: 0 / 0.6418 GB, free: 8.27 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.1944, allocations: 7.922 kB / 0.6418 GB, free: 8.262 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 9.01e-05/0.1945, allocations: 15.88 kB / 0.6419 GB, free: 8.246 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000534/0.1951, allocations: 91.81 kB / 0.6419 GB, free: 8.156 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001979/0.1953, allocations: 87.66 kB / 0.642 GB, free: 8.07 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.1954, allocations: 21.05 kB / 0.642 GB, free: 8.051 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.1955, allocations: 31.86 kB / 0.6421 GB, free: 8.02 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.1957, allocations: 47.7 kB / 0.6421 GB, free: 7.973 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.1957, allocations: 4 kB / 0.6421 GB, free: 7.969 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.839e-05/0.1957, allocations: 4 kB / 0.6421 GB, free: 7.965 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.018e-05/0.1958, allocations: 11.92 kB / 0.6421 GB, free: 7.953 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 7.477e-05/0.1958, allocations: 65.44 kB / 0.6422 GB, free: 7.883 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001196/0.196, allocations: 51.88 kB / 0.6423 GB, free: 7.832 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.196, allocations: 4 kB / 0.6423 GB, free: 7.828 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.196, allocations: 0 / 0.6423 GB, free: 7.828 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.196, allocations: 0 / 0.6423 GB, free: 7.828 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.0009128/0.1969, allocations: 423.1 kB / 0.6427 GB, free: 7.367 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.197, allocations: 11.97 kB / 0.6427 GB, free: 7.355 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.624e-05/0.1971, allocations: 20.73 kB / 0.6427 GB, free: 7.336 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.1974, allocations: 190.8 kB / 0.6429 GB, free: 7.113 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.1974, allocations: 8.375 kB / 0.6429 GB, free: 7.105 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/0.1975, allocations: 16.06 kB / 0.6429 GB, free: 7.09 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004834/0.198, allocations: 121.1 kB / 0.643 GB, free: 6.969 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.198, allocations: 4 kB / 0.643 GB, free: 6.965 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.198, allocations: 0 / 0.643 GB, free: 6.965 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.198, allocations: 0 / 0.643 GB, free: 6.965 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005854/0.1986, allocations: 135.8 kB / 0.6431 GB, free: 6.832 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008608/0.1995, allocations: 388.6 kB / 0.6435 GB, free: 6.402 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/0.1999, allocations: 86.47 kB / 0.6436 GB, free: 6.309 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003085/0.2002, allocations: 80.92 kB / 0.6437 GB, free: 6.227 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.2003, allocations: 0 / 0.6437 GB, free: 6.227 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.2003, allocations: 30.56 kB / 0.6437 GB, free: 6.188 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.052e-06/0.2003, allocations: 0 / 0.6437 GB, free: 6.188 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.001033/0.2013, allocations: 233.5 kB / 0.6439 GB, free: 5.953 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.2014, allocations: 63.28 kB / 0.644 GB, free: 5.879 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.2016, allocations: 144.9 kB / 0.6441 GB, free: 5.723 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.2016, allocations: 29.7 kB / 0.6442 GB, free: 5.688 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.881e-05/0.2017, allocations: 104 kB / 0.6443 GB, free: 5.582 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.2018, allocations: 19.66 kB / 0.6443 GB, free: 5.562 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.421e-05/0.2018, allocations: 13.72 kB / 0.6443 GB, free: 5.543 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000258/0.2021, allocations: 322.8 kB / 0.6446 GB, free: 5.219 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.2024, allocations: 67.94 kB / 0.6447 GB, free: 5.152 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/0.2027, allocations: 67.95 kB / 0.6447 GB, free: 5.086 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005417/0.2032, allocations: 128.8 kB / 0.6448 GB, free: 4.957 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2033, allocations: 0 / 0.6448 GB, free: 4.957 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0006315/0.2039, allocations: 181.5 kB / 0.645 GB, free: 4.773 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.2039, allocations: 7.938 kB / 0.645 GB, free: 4.766 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2039, allocations: 4.172 kB / 0.645 GB, free: 4.762 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.204, allocations: 0 / 0.645 GB, free: 4.762 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002303/0.2042, allocations: 43.91 kB / 0.6451 GB, free: 4.719 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/0.2042, allocations: 7.984 kB / 0.6451 GB, free: 4.711 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.2044, allocations: 23.97 kB / 0.6451 GB, free: 4.688 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.2044, allocations: 0 / 0.6451 GB, free: 4.688 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.0001225/0.2046, allocations: 113.8 kB / 0.6452 GB, free: 4.566 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.608e-05/0.2046, allocations: 11.84 kB / 0.6452 GB, free: 4.555 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.379e-05/0.2047, allocations: 28.62 kB / 0.6453 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2047, allocations: 4 kB / 0.6453 GB, free: 4.527 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2047, allocations: 0 / 0.6453 GB, free: 4.527 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.2047, allocations: 0 / 0.6453 GB, free: 4.527 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004056/0.2051, allocations: 201.5 kB / 0.6454 GB, free: 4.281 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.2052, allocations: 4 kB / 0.6455 GB, free: 4.277 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.2054, allocations: 27.97 kB / 0.6455 GB, free: 4.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.2054, allocations: 7.938 kB / 0.6455 GB, free: 4.242 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.2054, allocations: 4 kB / 0.6455 GB, free: 4.238 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.2054, allocations: 3.938 kB / 0.6455 GB, free: 4.234 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.634e-06/0.2054, allocations: 0 / 0.6455 GB, free: 4.234 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.2066, allocations: 347.5 kB / 0.6458 GB, free: 3.879 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.2066, allocations: 81.02 kB / 0.6459 GB, free: 3.781 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.2067, allocations: 12.03 kB / 0.6459 GB, free: 3.77 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.2069, allocations: 32.03 kB / 0.6459 GB, free: 3.738 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.573e-05/0.207, allocations: 3.984 kB / 0.6459 GB, free: 3.734 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.207, allocations: 4 kB / 0.646 GB, free: 3.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001057/0.2071, allocations: 103.3 kB / 0.6461 GB, free: 3.629 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2071, allocations: 0 / 0.6461 GB, free: 3.629 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003229/0.2074, allocations: 16 kB / 0.6461 GB, free: 3.613 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.0001425/0.2076, allocations: 99.23 kB / 0.6462 GB, free: 3.504 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006366/0.2082, allocations: 147.8 kB / 0.6463 GB, free: 3.359 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.2082, allocations: 0 / 0.6463 GB, free: 3.359 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003115/0.2086, allocations: 67.95 kB / 0.6464 GB, free: 3.293 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004512/0.209, allocations: 26.16 kB / 0.6464 GB, free: 3.273 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.2101, allocations: 305.1 kB / 0.6467 GB, free: 2.941 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.2104, allocations: 0.7004 MB / 0.6474 GB, free: 2.215 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.56e-05/0.2105, allocations: 11.44 kB / 0.6474 GB, free: 2.203 MB / 462.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2105, allocations: 0 / 0.6474 GB, free: 2.203 MB / 462.1 MB Notification: Performance of Templates: time 0.004318/0.2149, allocations: 1.267 MB / 0.6486 GB, free: 0.9453 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.mat","/var/lib/jenkins1/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