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.02127/0.02127, allocations: 1.436 MB / 17.07 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1304/0.1304, allocations: 22.37 MB / 40.49 MB, free: 0.4961 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.001045/0.001045, allocations: 112 kB / 47.98 MB, free: 2.117 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.001207/0.001207, allocations: 184.3 kB / 55.58 MB, free: 6.16 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.458/1.458, allocations: 222.9 MB / 285.9 MB, free: 1.203 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.9131/0.9131, allocations: 127.8 MB / 470.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002483/0.002483, allocations: 127.8 kB / 0.6353 GB, free: 11.18 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1687, allocations: 82.33 MB / 0.7157 GB, free: 8.777 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003661/0.1724, allocations: 2.272 MB / 0.7179 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.1738, allocations: 0.6777 MB / 0.7186 GB, free: 5.809 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.288e-05/0.1739, allocations: 4 kB / 0.7186 GB, free: 5.805 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.174, allocations: 7.875 kB / 0.7186 GB, free: 5.797 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.613e-05/0.1741, allocations: 27.72 kB / 0.7186 GB, free: 5.77 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004849/0.1746, allocations: 107.7 kB / 0.7187 GB, free: 5.664 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.1747, allocations: 87.7 kB / 0.7188 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.1749, allocations: 29.05 kB / 0.7188 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.91e-05/0.1749, allocations: 43.83 kB / 0.7189 GB, free: 5.508 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.93e-05/0.175, allocations: 39.78 kB / 0.7189 GB, free: 5.469 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.175, allocations: 12 kB / 0.7189 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.854e-05/0.1751, allocations: 8 kB / 0.7189 GB, free: 5.449 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.659e-05/0.1751, allocations: 15.92 kB / 0.719 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.877e-05/0.1752, allocations: 43.73 kB / 0.719 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001377/0.1753, allocations: 91.56 kB / 0.7191 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1753, allocations: 0 / 0.7191 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.392e-06/0.1753, allocations: 0 / 0.7191 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.1753, allocations: 0 / 0.7191 GB, free: 5.301 MB / 0.5294 GB 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.0006929/0.176, allocations: 434.9 kB / 0.7195 GB, free: 4.828 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1761, allocations: 8.031 kB / 0.7195 GB, free: 4.82 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.933e-05/0.1761, allocations: 12.84 kB / 0.7195 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/0.1764, allocations: 196.7 kB / 0.7197 GB, free: 4.578 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.1764, allocations: 384 / 0.7197 GB, free: 4.578 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.1764, allocations: 12.12 kB / 0.7197 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003134/0.1767, allocations: 101.6 kB / 0.7198 GB, free: 4.461 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.1767, allocations: 4 kB / 0.7198 GB, free: 4.457 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.1768, allocations: 7.984 kB / 0.7198 GB, free: 4.449 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.1768, allocations: 4 kB / 0.7198 GB, free: 4.445 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003378/0.1771, allocations: 95.91 kB / 0.7199 GB, free: 4.352 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.1778, allocations: 376.4 kB / 0.7203 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.178, allocations: 78.52 kB / 0.7204 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.1782, allocations: 56.94 kB / 0.7204 GB, free: 3.789 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.1782, allocations: 3.984 kB / 0.7204 GB, free: 3.785 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.1782, allocations: 38.56 kB / 0.7205 GB, free: 3.738 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.1782, allocations: 0 / 0.7205 GB, free: 3.738 MB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0006116/0.1789, allocations: 189.4 kB / 0.7206 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.276e-05/0.1789, allocations: 59.34 kB / 0.7207 GB, free: 3.477 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.179, allocations: 136.7 kB / 0.7208 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.1791, allocations: 25.7 kB / 0.7208 GB, free: 3.297 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.846e-05/0.1791, allocations: 116 kB / 0.721 GB, free: 3.18 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.562e-05/0.1792, allocations: 23.64 kB / 0.721 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.326e-05/0.1792, allocations: 17.72 kB / 0.721 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1793, allocations: 326.8 kB / 0.7213 GB, free: 2.805 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.1795, allocations: 47.95 kB / 0.7214 GB, free: 2.758 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.1797, allocations: 52.19 kB / 0.7214 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003275/0.18, allocations: 104.8 kB / 0.7215 GB, free: 2.602 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.18, allocations: 4 kB / 0.7215 GB, free: 2.598 MB / 0.5294 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003862/0.1804, allocations: 153.4 kB / 0.7217 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1804, allocations: 7.938 kB / 0.7217 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1805, allocations: 0 / 0.7217 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1805, allocations: 0 / 0.7217 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.1806, allocations: 27.97 kB / 0.7217 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.1807, allocations: 240 / 0.7217 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.659e-05/0.1808, allocations: 15.97 kB / 0.7217 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.1808, allocations: 7.984 kB / 0.7217 GB, free: 2.383 MB / 0.5294 GB 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.356e-05/0.1809, allocations: 117.8 kB / 0.7218 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.059e-05/0.1809, allocations: 11.84 kB / 0.7218 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.019e-05/0.1809, allocations: 12.72 kB / 0.7218 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1809, allocations: 4 kB / 0.7219 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.181, allocations: 7.922 kB / 0.7219 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.181, allocations: 0 / 0.7219 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002238/0.1812, allocations: 205.5 kB / 0.7221 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1812, allocations: 0 / 0.7221 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.1813, allocations: 23.97 kB / 0.7221 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.1814, allocations: 7.938 kB / 0.7221 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.1814, allocations: 4 kB / 0.7221 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1814, allocations: 0 / 0.7221 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1814, allocations: 0 / 0.7221 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006368/0.182, allocations: 299.3 kB / 0.7224 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 4.042e-05/0.1821, allocations: 85.05 kB / 0.7225 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.1821, allocations: 7.938 kB / 0.7225 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.1823, allocations: 19.91 kB / 0.7225 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.1823, allocations: 11.92 kB / 0.7225 GB, free: 1.484 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.1823, allocations: 4 kB / 0.7225 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 7.352e-05/0.1824, allocations: 117.5 kB / 0.7226 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1824, allocations: 0 / 0.7226 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002249/0.1826, allocations: 12 kB / 0.7226 GB, free: 1.355 MB / 0.5294 GB 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.0001011/0.1828, allocations: 95.88 kB / 0.7227 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004075/0.1832, allocations: 120 kB / 0.7228 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1832, allocations: 0 / 0.7228 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.1834, allocations: 59.88 kB / 0.7229 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.1837, allocations: 15.94 kB / 0.7229 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007059/0.1844, allocations: 231.2 kB / 0.7231 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.1847, allocations: 0.7 MB / 0.7238 GB, free: 88 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 4.452e-05/0.1847, allocations: 4 kB / 0.7238 GB, free: 84 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.773e-05/0.1848, allocations: 11.44 kB / 0.7238 GB, free: 72 kB / 0.5294 GB Notification: Performance of SimCode: time 2e-07/0.1848, allocations: 0 / 0.7238 GB, free: 72 kB / 0.5294 GB Notification: Performance of Templates: time 0.003545/0.1883, allocations: 1.088 MB / 0.7249 GB, free: 15 MB / 0.545 GB 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