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.01447/0.01447, allocations: 1.416 MB / 16.69 MB, free: 4.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1328/0.1328, allocations: 22.59 MB / 40.31 MB, free: 1.113 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.000951/0.0009511, allocations: 88.27 kB / 48.06 MB, free: 2.41 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.001329/0.001329, allocations: 179.2 kB / 55.92 MB, free: 3.977 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.616/1.616, allocations: 223.3 MB / 286.9 MB, free: 2.586 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.8811/0.8811, allocations: 127.7 MB / 472.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005095/0.0005095, allocations: 18.66 kB / 0.5567 GB, free: 42.77 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1595, allocations: 83.88 MB / 0.6386 GB, free: 10.95 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.002549/0.1621, allocations: 1.975 MB / 0.6405 GB, free: 8.957 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.1633, allocations: 0.6702 MB / 0.6412 GB, free: 8.281 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.317e-05/0.1634, allocations: 0 / 0.6412 GB, free: 8.281 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 9.527e-05/0.1635, allocations: 11.86 kB / 0.6412 GB, free: 8.27 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 5.64e-05/0.1635, allocations: 15.86 kB / 0.6412 GB, free: 8.254 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003304/0.1639, allocations: 95.83 kB / 0.6413 GB, free: 8.16 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000116/0.164, allocations: 79.7 kB / 0.6414 GB, free: 8.082 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.1641, allocations: 29.05 kB / 0.6414 GB, free: 8.055 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.625e-05/0.1642, allocations: 35.78 kB / 0.6415 GB, free: 8.02 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.746e-05/0.1643, allocations: 43.72 kB / 0.6415 GB, free: 7.977 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.1643, allocations: 0 / 0.6415 GB, free: 7.977 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.26e-05/0.1643, allocations: 4 kB / 0.6415 GB, free: 7.973 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.575e-05/0.1643, allocations: 19.92 kB / 0.6415 GB, free: 7.953 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 5.447e-05/0.1644, allocations: 61.44 kB / 0.6416 GB, free: 7.887 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.1645, allocations: 71.69 kB / 0.6416 GB, free: 7.816 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1645, allocations: 0 / 0.6416 GB, free: 7.816 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1645, allocations: 0 / 0.6416 GB, free: 7.816 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1645, allocations: 0 / 0.6416 GB, free: 7.816 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.0006289/0.1652, allocations: 431.1 kB / 0.6421 GB, free: 7.348 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.1652, allocations: 8.031 kB / 0.6421 GB, free: 7.34 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.942e-05/0.1653, allocations: 16.73 kB / 0.6421 GB, free: 7.324 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.1654, allocations: 198.7 kB / 0.6423 GB, free: 7.094 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.758e-06/0.1655, allocations: 8.312 kB / 0.6423 GB, free: 7.086 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.672e-05/0.1655, allocations: 8.125 kB / 0.6423 GB, free: 7.078 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003488/0.1659, allocations: 121.6 kB / 0.6424 GB, free: 6.953 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1659, allocations: 4 kB / 0.6424 GB, free: 6.949 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.1659, allocations: 8 kB / 0.6424 GB, free: 6.941 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1659, allocations: 0 / 0.6424 GB, free: 6.941 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004249/0.1663, allocations: 131.9 kB / 0.6425 GB, free: 6.812 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006368/0.167, allocations: 384.5 kB / 0.6429 GB, free: 6.387 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002854/0.1673, allocations: 90.53 kB / 0.643 GB, free: 6.289 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002207/0.1675, allocations: 76.86 kB / 0.6431 GB, free: 6.211 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.1675, allocations: 4 kB / 0.6431 GB, free: 6.207 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.49e-05/0.1676, allocations: 30.56 kB / 0.6431 GB, free: 6.168 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.1676, allocations: 0 / 0.6431 GB, free: 6.168 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007407/0.1683, allocations: 233.5 kB / 0.6433 GB, free: 5.934 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.1684, allocations: 55.34 kB / 0.6434 GB, free: 5.867 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/0.1685, allocations: 148.9 kB / 0.6435 GB, free: 5.707 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.1685, allocations: 25.7 kB / 0.6435 GB, free: 5.676 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.009e-05/0.1686, allocations: 108 kB / 0.6436 GB, free: 5.566 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.883e-05/0.1686, allocations: 23.66 kB / 0.6437 GB, free: 5.543 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.672e-05/0.1687, allocations: 9.719 kB / 0.6437 GB, free: 5.527 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1688, allocations: 322.8 kB / 0.644 GB, free: 5.203 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/0.169, allocations: 67.89 kB / 0.644 GB, free: 5.137 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.1692, allocations: 63.94 kB / 0.6441 GB, free: 5.074 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/0.1697, allocations: 136.8 kB / 0.6442 GB, free: 4.938 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1697, allocations: 0 / 0.6442 GB, free: 4.938 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000456/0.1701, allocations: 173.5 kB / 0.6444 GB, free: 4.762 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.1702, allocations: 15.94 kB / 0.6444 GB, free: 4.746 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1702, allocations: 0 / 0.6444 GB, free: 4.746 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1702, allocations: 0 / 0.6444 GB, free: 4.746 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.1704, allocations: 39.84 kB / 0.6445 GB, free: 4.707 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1704, allocations: 0 / 0.6445 GB, free: 4.707 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.1705, allocations: 35.95 kB / 0.6445 GB, free: 4.672 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.1705, allocations: 0 / 0.6445 GB, free: 4.672 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.677e-05/0.1706, allocations: 117.8 kB / 0.6446 GB, free: 4.547 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.108e-05/0.1707, allocations: 15.78 kB / 0.6446 GB, free: 4.531 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.287e-05/0.1707, allocations: 16.7 kB / 0.6446 GB, free: 4.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1707, allocations: 0 / 0.6446 GB, free: 4.52 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1707, allocations: 0 / 0.6446 GB, free: 4.52 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.1707, allocations: 0 / 0.6446 GB, free: 4.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002057/0.1709, allocations: 209.5 kB / 0.6448 GB, free: 4.266 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.1709, allocations: 0 / 0.6448 GB, free: 4.266 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.1711, allocations: 31.97 kB / 0.6449 GB, free: 4.234 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1711, allocations: 3.938 kB / 0.6449 GB, free: 4.23 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1712, allocations: 4 kB / 0.6449 GB, free: 4.227 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.1712, allocations: 4 kB / 0.6449 GB, free: 4.223 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1712, allocations: 0 / 0.6449 GB, free: 4.223 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007583/0.1719, allocations: 351.5 kB / 0.6452 GB, free: 3.863 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.017e-05/0.172, allocations: 85.05 kB / 0.6453 GB, free: 3.762 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.172, allocations: 7.938 kB / 0.6453 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.1722, allocations: 23.97 kB / 0.6453 GB, free: 3.73 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.171e-05/0.1722, allocations: 7.984 kB / 0.6453 GB, free: 3.723 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.279e-06/0.1722, allocations: 4.062 kB / 0.6453 GB, free: 3.719 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.933e-05/0.1723, allocations: 111.3 kB / 0.6454 GB, free: 3.609 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1723, allocations: 0 / 0.6454 GB, free: 3.609 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002186/0.1725, allocations: 12 kB / 0.6455 GB, free: 3.598 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.0001153/0.1727, allocations: 99.23 kB / 0.6455 GB, free: 3.488 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000476/0.1731, allocations: 143.8 kB / 0.6457 GB, free: 3.348 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1732, allocations: 0 / 0.6457 GB, free: 3.348 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002282/0.1734, allocations: 71.95 kB / 0.6458 GB, free: 3.277 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.1737, allocations: 20.44 kB / 0.6458 GB, free: 3.258 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007126/0.1744, allocations: 275.5 kB / 0.646 GB, free: 2.961 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.1747, allocations: 0.6965 MB / 0.6467 GB, free: 2.238 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 4.33e-05/0.1748, allocations: 4 kB / 0.6467 GB, free: 2.234 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.1748, allocations: 11.44 kB / 0.6467 GB, free: 2.223 MB / 462.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1748, allocations: 3.938 kB / 0.6467 GB, free: 2.219 MB / 462.1 MB Notification: Performance of Templates: time 0.4564/0.6312, allocations: 0.8849 MB / 0.6476 GB, free: 1.348 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