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.01964/0.01964, allocations: 1.437 MB / 16.56 MB, free: 5.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1508/0.1508, allocations: 22.38 MB / 39.96 MB, free: 0.8945 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.001928/0.001928, allocations: 114.6 kB / 47.43 MB, free: 2.531 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.002149/0.002149, allocations: 181.4 kB / 55 MB, free: 6.59 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.445/1.445, allocations: 222.9 MB / 285.3 MB, free: 1.102 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.975/0.975, allocations: 127.8 MB / 469.9 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002362/0.002362, allocations: 129.1 kB / 0.5526 GB, free: 43.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1573, allocations: 82.36 MB / 0.633 GB, free: 13.43 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003303/0.1607, allocations: 2.325 MB / 0.6353 GB, free: 11.09 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1619, allocations: 0.6895 MB / 0.6359 GB, free: 10.39 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.218e-05/0.1619, allocations: 0 / 0.6359 GB, free: 10.39 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.1621, allocations: 7.938 kB / 0.6359 GB, free: 10.38 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 5.488e-05/0.1621, allocations: 11.86 kB / 0.6359 GB, free: 10.37 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003232/0.1625, allocations: 87.78 kB / 0.636 GB, free: 10.29 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.1626, allocations: 91.69 kB / 0.6361 GB, free: 10.2 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.1627, allocations: 33.31 kB / 0.6362 GB, free: 10.16 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.304e-05/0.1628, allocations: 31.86 kB / 0.6362 GB, free: 10.13 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.726e-05/0.1629, allocations: 43.77 kB / 0.6362 GB, free: 10.09 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.1629, allocations: 8 kB / 0.6362 GB, free: 10.08 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.201e-05/0.1629, allocations: 4 kB / 0.6362 GB, free: 10.08 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.546e-05/0.163, allocations: 19.84 kB / 0.6363 GB, free: 10.06 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.611e-05/0.163, allocations: 43.73 kB / 0.6363 GB, free: 10.02 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.1631, allocations: 79.7 kB / 0.6364 GB, free: 9.938 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1631, allocations: 0 / 0.6364 GB, free: 9.938 MB / 462.1 MB Notification: Performance of FrontEnd: time 6.72e-07/0.1631, allocations: 0 / 0.6364 GB, free: 9.938 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.1632, allocations: 0 / 0.6364 GB, free: 9.938 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.0006876/0.1639, allocations: 423 kB / 0.6368 GB, free: 9.477 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.1639, allocations: 8.031 kB / 0.6368 GB, free: 9.469 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.156e-05/0.1639, allocations: 20.75 kB / 0.6368 GB, free: 9.449 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.1641, allocations: 184.8 kB / 0.637 GB, free: 9.23 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.1641, allocations: 8.375 kB / 0.637 GB, free: 9.223 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.678e-05/0.1642, allocations: 15.97 kB / 0.637 GB, free: 9.207 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003426/0.1645, allocations: 113.2 kB / 0.6371 GB, free: 9.094 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.1645, allocations: 0 / 0.6371 GB, free: 9.094 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.1646, allocations: 0 / 0.6371 GB, free: 9.094 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1646, allocations: 0 / 0.6371 GB, free: 9.094 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003952/0.165, allocations: 103.9 kB / 0.6372 GB, free: 8.992 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006251/0.1656, allocations: 376.5 kB / 0.6376 GB, free: 8.574 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.1659, allocations: 74.52 kB / 0.6376 GB, free: 8.492 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.1661, allocations: 60.94 kB / 0.6377 GB, free: 8.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.1661, allocations: 0 / 0.6377 GB, free: 8.43 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.1661, allocations: 30.56 kB / 0.6377 GB, free: 8.391 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.1662, allocations: 0 / 0.6377 GB, free: 8.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007236/0.1669, allocations: 197.3 kB / 0.6379 GB, free: 8.191 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.287e-05/0.1669, allocations: 55.34 kB / 0.638 GB, free: 8.125 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.1671, allocations: 144.7 kB / 0.6381 GB, free: 7.969 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.1671, allocations: 29.7 kB / 0.6381 GB, free: 7.934 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.825e-05/0.1672, allocations: 104 kB / 0.6382 GB, free: 7.828 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.1672, allocations: 19.66 kB / 0.6383 GB, free: 7.809 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.704e-05/0.1672, allocations: 21.7 kB / 0.6383 GB, free: 7.781 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1674, allocations: 322.8 kB / 0.6386 GB, free: 7.457 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.1676, allocations: 51.94 kB / 0.6386 GB, free: 7.406 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.1678, allocations: 47.95 kB / 0.6387 GB, free: 7.359 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003661/0.1682, allocations: 112.8 kB / 0.6388 GB, free: 7.246 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1682, allocations: 0 / 0.6388 GB, free: 7.246 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004202/0.1686, allocations: 141.7 kB / 0.6389 GB, free: 7.102 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1686, allocations: 19.92 kB / 0.6389 GB, free: 7.082 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1686, allocations: 0 / 0.6389 GB, free: 7.082 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.1686, allocations: 4 kB / 0.6389 GB, free: 7.078 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.1688, allocations: 23.97 kB / 0.639 GB, free: 7.055 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.1688, allocations: 4.234 kB / 0.639 GB, free: 7.051 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.1689, allocations: 15.98 kB / 0.639 GB, free: 7.035 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.169, allocations: 3.984 kB / 0.639 GB, free: 7.031 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 8.602e-05/0.1691, allocations: 119.6 kB / 0.6391 GB, free: 6.906 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.956e-05/0.1691, allocations: 11.84 kB / 0.6391 GB, free: 6.895 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.012e-05/0.1691, allocations: 20.64 kB / 0.6391 GB, free: 6.879 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1691, allocations: 0 / 0.6391 GB, free: 6.879 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1692, allocations: 0 / 0.6391 GB, free: 6.879 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1692, allocations: 0 / 0.6391 GB, free: 6.879 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1694, allocations: 201.6 kB / 0.6393 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1694, allocations: 7.938 kB / 0.6393 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001578/0.1695, allocations: 19.98 kB / 0.6393 GB, free: 6.605 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.1696, allocations: 15.91 kB / 0.6394 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.1696, allocations: 0 / 0.6394 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1696, allocations: 0 / 0.6394 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1696, allocations: 0 / 0.6394 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006813/0.1703, allocations: 303.2 kB / 0.6397 GB, free: 6.277 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.1703, allocations: 92.97 kB / 0.6397 GB, free: 6.168 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.142e-05/0.1704, allocations: 3.938 kB / 0.6397 GB, free: 6.164 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.1705, allocations: 11.98 kB / 0.6398 GB, free: 6.152 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.747e-05/0.1706, allocations: 11.98 kB / 0.6398 GB, free: 6.141 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.1706, allocations: 0 / 0.6398 GB, free: 6.141 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.685e-05/0.1706, allocations: 116.8 kB / 0.6399 GB, free: 6.027 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1707, allocations: 4 kB / 0.6399 GB, free: 6.023 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000231/0.1709, allocations: 12 kB / 0.6399 GB, free: 6.012 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.0001309/0.171, allocations: 103.2 kB / 0.64 GB, free: 5.898 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004609/0.1715, allocations: 107.9 kB / 0.6401 GB, free: 5.793 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1715, allocations: 0 / 0.6401 GB, free: 5.793 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.1717, allocations: 59.89 kB / 0.6402 GB, free: 5.734 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003564/0.1721, allocations: 15.92 kB / 0.6402 GB, free: 5.719 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007768/0.1729, allocations: 268.8 kB / 0.6404 GB, free: 5.426 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.1731, allocations: 0.7004 MB / 0.6411 GB, free: 4.699 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.19e-05/0.1732, allocations: 8 kB / 0.6411 GB, free: 4.691 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.858e-05/0.1733, allocations: 11.44 kB / 0.6411 GB, free: 4.68 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1733, allocations: 0 / 0.6411 GB, free: 4.68 MB / 462.1 MB Notification: Performance of Templates: time 0.003168/0.1764, allocations: 0.8902 MB / 0.642 GB, free: 3.805 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=50 -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