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.0148/0.0148, allocations: 1.435 MB / 17.07 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1278/0.1278, allocations: 22.37 MB / 40.49 MB, free: 0.5195 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.001171/0.001171, allocations: 112.8 kB / 47.99 MB, free: 2.141 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.001389/0.001389, allocations: 188.5 kB / 55.58 MB, free: 6.172 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.446/1.446, allocations: 222.9 MB / 285.9 MB, free: 1.215 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.9449/0.9449, allocations: 127.8 MB / 470.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 131.8 kB / 0.6353 GB, free: 11.21 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1552, allocations: 82.34 MB / 0.7157 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.00302/0.1582, allocations: 2.272 MB / 0.7179 GB, free: 6.512 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001075/0.1593, allocations: 0.6778 MB / 0.7186 GB, free: 5.828 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.82e-05/0.1594, allocations: 0 / 0.7186 GB, free: 5.828 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.1595, allocations: 11.86 kB / 0.7186 GB, free: 5.816 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.343e-05/0.1596, allocations: 15.81 kB / 0.7186 GB, free: 5.801 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003888/0.16, allocations: 111.6 kB / 0.7187 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001222/0.1601, allocations: 99.62 kB / 0.7188 GB, free: 5.594 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.73e-05/0.1602, allocations: 21.12 kB / 0.7188 GB, free: 5.574 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.639e-05/0.1603, allocations: 39.84 kB / 0.7189 GB, free: 5.535 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.232e-05/0.1604, allocations: 47.77 kB / 0.7189 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.657e-05/0.1604, allocations: 8 kB / 0.7189 GB, free: 5.48 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.692e-05/0.1604, allocations: 8 kB / 0.7189 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.911e-05/0.1605, allocations: 19.92 kB / 0.719 GB, free: 5.453 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.627e-05/0.1605, allocations: 39.73 kB / 0.719 GB, free: 5.414 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.1606, allocations: 99.44 kB / 0.7191 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1607, allocations: 0 / 0.7191 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1607, allocations: 0 / 0.7191 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.1607, allocations: 0 / 0.7191 GB, free: 5.316 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.0006307/0.1613, allocations: 426.9 kB / 0.7195 GB, free: 4.852 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.1613, allocations: 12.03 kB / 0.7195 GB, free: 4.84 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.055e-05/0.1614, allocations: 8.891 kB / 0.7195 GB, free: 4.832 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.1616, allocations: 196.8 kB / 0.7197 GB, free: 4.602 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.1616, allocations: 4.375 kB / 0.7197 GB, free: 4.598 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.746e-05/0.1616, allocations: 12.12 kB / 0.7197 GB, free: 4.586 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003321/0.1619, allocations: 110 kB / 0.7198 GB, free: 4.473 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.162, allocations: 4 kB / 0.7198 GB, free: 4.469 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.162, allocations: 3.984 kB / 0.7198 GB, free: 4.465 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.162, allocations: 0 / 0.7198 GB, free: 4.465 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003849/0.1624, allocations: 99.89 kB / 0.7199 GB, free: 4.367 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006091/0.163, allocations: 376.5 kB / 0.7203 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.1633, allocations: 70.53 kB / 0.7203 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.1635, allocations: 68.92 kB / 0.7204 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.1635, allocations: 0 / 0.7204 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.1635, allocations: 30.56 kB / 0.7204 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.1635, allocations: 0 / 0.7204 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0007011/0.1642, allocations: 197.4 kB / 0.7206 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.1643, allocations: 55.34 kB / 0.7207 GB, free: 3.496 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.1644, allocations: 144.3 kB / 0.7208 GB, free: 3.34 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.1644, allocations: 29.7 kB / 0.7209 GB, free: 3.305 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.1645, allocations: 108 kB / 0.721 GB, free: 3.195 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.1645, allocations: 19.8 kB / 0.721 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.501e-05/0.1646, allocations: 17.72 kB / 0.721 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.341e-05/0.1647, allocations: 326.8 kB / 0.7213 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.1649, allocations: 51.94 kB / 0.7214 GB, free: 2.773 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.1651, allocations: 51.94 kB / 0.7214 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/0.1654, allocations: 104.8 kB / 0.7215 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.1655, allocations: 4 kB / 0.7215 GB, free: 2.613 MB / 0.5294 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004297/0.1659, allocations: 149.4 kB / 0.7216 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.1659, allocations: 11.94 kB / 0.7217 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.1659, allocations: 0 / 0.7217 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1659, allocations: 0 / 0.7217 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.1661, allocations: 23.97 kB / 0.7217 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.1661, allocations: 0 / 0.7217 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.1662, allocations: 23.92 kB / 0.7217 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.1663, allocations: 4 kB / 0.7217 GB, free: 2.398 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 7.548e-05/0.1663, allocations: 117.8 kB / 0.7218 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.327e-05/0.1664, allocations: 11.89 kB / 0.7218 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.241e-05/0.1664, allocations: 16.7 kB / 0.7218 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1664, allocations: 0 / 0.7218 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1664, allocations: 0 / 0.7218 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1664, allocations: 0 / 0.7218 GB, free: 2.242 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.1666, allocations: 193.6 kB / 0.722 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1667, allocations: 7.938 kB / 0.722 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001616/0.1668, allocations: 27.97 kB / 0.7221 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1668, allocations: 7.938 kB / 0.7221 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.1669, allocations: 0 / 0.7221 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1669, allocations: 0 / 0.7221 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1669, allocations: 0 / 0.7221 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006982/0.1676, allocations: 303.7 kB / 0.7224 GB, free: 1.648 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/0.1676, allocations: 88.95 kB / 0.7224 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.1676, allocations: 7.969 kB / 0.7225 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.1678, allocations: 19.97 kB / 0.7225 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.728e-05/0.1679, allocations: 11.98 kB / 0.7225 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.1679, allocations: 0 / 0.7225 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 6.537e-05/0.1679, allocations: 117.6 kB / 0.7226 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.168, allocations: 0 / 0.7226 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002338/0.1682, allocations: 16 kB / 0.7226 GB, free: 1.375 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 9.996e-05/0.1683, allocations: 105.7 kB / 0.7227 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004498/0.1688, allocations: 111.9 kB / 0.7228 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1688, allocations: 0 / 0.7228 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002065/0.169, allocations: 59.89 kB / 0.7229 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.1693, allocations: 21.58 kB / 0.7229 GB, free: 1.078 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006963/0.17, allocations: 238.9 kB / 0.7231 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.1703, allocations: 0.7059 MB / 0.7238 GB, free: 92 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 4.858e-05/0.1703, allocations: 7.984 kB / 0.7238 GB, free: 84 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.942e-05/0.1704, allocations: 11.44 kB / 0.7238 GB, free: 72 kB / 0.5294 GB Notification: Performance of SimCode: time 2.5e-07/0.1704, allocations: 0 / 0.7238 GB, free: 72 kB / 0.5294 GB Notification: Performance of Templates: time 0.003411/0.1738, allocations: 1.081 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=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