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.009639/0.00964, allocations: 1.433 MB / 17.32 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1048/0.1048, allocations: 22.38 MB / 40.72 MB, free: 0.7812 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.001011/0.001011, allocations: 113.5 kB / 48.2 MB, free: 2.492 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.001169/0.001169, allocations: 188.5 kB / 55.78 MB, free: 6.543 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.37/1.37, allocations: 222.9 MB / 286.1 MB, free: 1.039 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.8955/0.8955, allocations: 127.8 MB / 470.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002237, allocations: 131.7 kB / 0.5534 GB, free: 43.35 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1589, allocations: 82.35 MB / 0.6338 GB, free: 13.26 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003382/0.1623, allocations: 2.325 MB / 0.6361 GB, free: 10.91 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.1634, allocations: 0.6778 MB / 0.6368 GB, free: 10.23 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.324e-05/0.1634, allocations: 0 / 0.6368 GB, free: 10.23 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 9.712e-05/0.1636, allocations: 7.938 kB / 0.6368 GB, free: 10.22 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 4.742e-05/0.1636, allocations: 11.86 kB / 0.6368 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003456/0.164, allocations: 95.83 kB / 0.6369 GB, free: 10.12 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001247/0.1641, allocations: 95.64 kB / 0.637 GB, free: 10.02 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.1642, allocations: 25.33 kB / 0.637 GB, free: 10 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.879e-05/0.1643, allocations: 35.86 kB / 0.637 GB, free: 9.965 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.904e-05/0.1643, allocations: 47.77 kB / 0.6371 GB, free: 9.918 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.636e-05/0.1644, allocations: 8 kB / 0.6371 GB, free: 9.91 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.503e-05/0.1644, allocations: 8 kB / 0.6371 GB, free: 9.902 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.155e-05/0.1644, allocations: 19.92 kB / 0.6371 GB, free: 9.883 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.88e-05/0.1645, allocations: 39.73 kB / 0.6371 GB, free: 9.844 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 8.73e-05/0.1646, allocations: 59.89 kB / 0.6372 GB, free: 9.785 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1646, allocations: 0 / 0.6372 GB, free: 9.785 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1646, allocations: 0 / 0.6372 GB, free: 9.785 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1646, allocations: 0 / 0.6372 GB, free: 9.785 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.0006139/0.1652, allocations: 428.5 kB / 0.6376 GB, free: 9.32 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.1652, allocations: 8.031 kB / 0.6376 GB, free: 9.312 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.352e-05/0.1653, allocations: 16.75 kB / 0.6376 GB, free: 9.297 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.1655, allocations: 192.8 kB / 0.6378 GB, free: 9.07 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.434e-06/0.1655, allocations: 12.25 kB / 0.6378 GB, free: 9.059 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.1655, allocations: 12.03 kB / 0.6378 GB, free: 9.047 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003119/0.1658, allocations: 109.6 kB / 0.6379 GB, free: 8.934 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/0.1658, allocations: 0 / 0.6379 GB, free: 8.934 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.1658, allocations: 0 / 0.6379 GB, free: 8.934 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.1659, allocations: 8 kB / 0.6379 GB, free: 8.926 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000355/0.1662, allocations: 107.8 kB / 0.638 GB, free: 8.82 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000576/0.1668, allocations: 368.6 kB / 0.6384 GB, free: 8.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000227/0.167, allocations: 78.45 kB / 0.6385 GB, free: 8.324 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/0.1672, allocations: 56.94 kB / 0.6385 GB, free: 8.266 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.1673, allocations: 0 / 0.6385 GB, free: 8.266 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.1673, allocations: 34.56 kB / 0.6386 GB, free: 8.223 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 8.72e-07/0.1673, allocations: 0 / 0.6386 GB, free: 8.223 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006308/0.1679, allocations: 185.5 kB / 0.6387 GB, free: 8.035 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/0.168, allocations: 67.27 kB / 0.6388 GB, free: 7.957 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.1681, allocations: 135.2 kB / 0.6389 GB, free: 7.809 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1681, allocations: 29.7 kB / 0.639 GB, free: 7.773 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.1682, allocations: 108 kB / 0.6391 GB, free: 7.664 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.1682, allocations: 15.66 kB / 0.6391 GB, free: 7.648 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.773e-05/0.1683, allocations: 29.7 kB / 0.6391 GB, free: 7.613 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1684, allocations: 322.8 kB / 0.6394 GB, free: 7.289 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.1686, allocations: 43.95 kB / 0.6395 GB, free: 7.246 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.1688, allocations: 47.95 kB / 0.6395 GB, free: 7.199 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.1691, allocations: 116.7 kB / 0.6396 GB, free: 7.082 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1691, allocations: 0 / 0.6396 GB, free: 7.082 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003921/0.1695, allocations: 145.5 kB / 0.6397 GB, free: 6.934 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1695, allocations: 11.88 kB / 0.6398 GB, free: 6.922 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.1695, allocations: 0 / 0.6398 GB, free: 6.922 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.1696, allocations: 0 / 0.6398 GB, free: 6.922 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.1697, allocations: 27.97 kB / 0.6398 GB, free: 6.895 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1697, allocations: 0 / 0.6398 GB, free: 6.895 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.546e-05/0.1698, allocations: 15.98 kB / 0.6398 GB, free: 6.879 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.1698, allocations: 4 kB / 0.6398 GB, free: 6.875 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.889e-05/0.1699, allocations: 119.6 kB / 0.6399 GB, free: 6.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.141e-05/0.17, allocations: 23.75 kB / 0.6399 GB, free: 6.727 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.733e-05/0.17, allocations: 8.719 kB / 0.64 GB, free: 6.723 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.17, allocations: 4 kB / 0.64 GB, free: 6.719 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.17, allocations: 0 / 0.64 GB, free: 6.719 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.17, allocations: 0 / 0.64 GB, free: 6.719 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.1702, allocations: 201.6 kB / 0.6401 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1702, allocations: 0 / 0.6401 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/0.1704, allocations: 27.97 kB / 0.6402 GB, free: 6.445 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1704, allocations: 7.875 kB / 0.6402 GB, free: 6.438 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.1704, allocations: 4.25 kB / 0.6402 GB, free: 6.434 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1704, allocations: 4.172 kB / 0.6402 GB, free: 6.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1704, allocations: 4 kB / 0.6402 GB, free: 6.426 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006382/0.1711, allocations: 303.2 kB / 0.6405 GB, free: 6.113 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.1711, allocations: 92.97 kB / 0.6406 GB, free: 6.004 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.1712, allocations: 3.938 kB / 0.6406 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.1713, allocations: 15.98 kB / 0.6406 GB, free: 5.984 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.574e-05/0.1713, allocations: 7.984 kB / 0.6406 GB, free: 5.977 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.1714, allocations: 4.062 kB / 0.6406 GB, free: 5.973 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.017e-05/0.1714, allocations: 114.8 kB / 0.6407 GB, free: 5.863 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1714, allocations: 0 / 0.6407 GB, free: 5.863 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002151/0.1717, allocations: 16 kB / 0.6407 GB, free: 5.848 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.000103/0.1718, allocations: 95.25 kB / 0.6408 GB, free: 5.742 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004165/0.1722, allocations: 115.8 kB / 0.6409 GB, free: 5.629 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.1722, allocations: 0 / 0.6409 GB, free: 5.629 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.1724, allocations: 55.89 kB / 0.641 GB, free: 5.574 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.1727, allocations: 23.75 kB / 0.641 GB, free: 5.555 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007288/0.1735, allocations: 300.8 kB / 0.6413 GB, free: 5.227 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.1737, allocations: 0.7041 MB / 0.642 GB, free: 4.496 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.425e-05/0.1738, allocations: 11.44 kB / 0.642 GB, free: 4.484 MB / 462.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1738, allocations: 0 / 0.642 GB, free: 4.484 MB / 462.1 MB Notification: Performance of Templates: time 0.002555/0.1764, allocations: 1.272 MB / 0.6432 GB, free: 3.219 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