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.01416/0.01416, allocations: 1.43 MB / 16.93 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.1243/0.1243, allocations: 22.38 MB / 40.36 MB, free: 0.707 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.00107/0.00107, allocations: 106.5 kB / 47.83 MB, free: 2.379 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.001459/0.001459, allocations: 198.7 kB / 55.43 MB, free: 6.418 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.309/1.309, allocations: 222.9 MB / 285.8 MB, free: 1.254 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.8126/0.8126, allocations: 127.8 MB / 470.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002171/0.002171, allocations: 122.9 kB / 0.5533 GB, free: 42.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1422, allocations: 82.36 MB / 0.6337 GB, free: 12.75 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003361/0.1456, allocations: 2.257 MB / 0.6359 GB, free: 10.47 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.1468, allocations: 0.6816 MB / 0.6366 GB, free: 9.781 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.338e-05/0.1468, allocations: 4 kB / 0.6366 GB, free: 9.777 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.147, allocations: 11.86 kB / 0.6366 GB, free: 9.766 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 4.798e-05/0.147, allocations: 11.81 kB / 0.6366 GB, free: 9.754 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.1474, allocations: 107.7 kB / 0.6367 GB, free: 9.648 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.1475, allocations: 87.72 kB / 0.6368 GB, free: 9.562 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.1477, allocations: 41.27 kB / 0.6369 GB, free: 9.523 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.11e-05/0.1477, allocations: 35.84 kB / 0.6369 GB, free: 9.488 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.141e-05/0.1478, allocations: 43.78 kB / 0.6369 GB, free: 9.445 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.221e-05/0.1478, allocations: 11.98 kB / 0.6369 GB, free: 9.434 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.086e-05/0.1479, allocations: 8 kB / 0.637 GB, free: 9.426 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.965e-05/0.1479, allocations: 19.92 kB / 0.637 GB, free: 9.406 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 5.916e-05/0.148, allocations: 39.73 kB / 0.637 GB, free: 9.367 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001292/0.1481, allocations: 87.69 kB / 0.6371 GB, free: 9.281 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1481, allocations: 4 kB / 0.6371 GB, free: 9.277 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1481, allocations: 0 / 0.6371 GB, free: 9.277 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.1481, allocations: 0 / 0.6371 GB, free: 9.277 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.0006985/0.1488, allocations: 419 kB / 0.6375 GB, free: 8.82 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.1489, allocations: 8.031 kB / 0.6375 GB, free: 8.812 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.1489, allocations: 12.75 kB / 0.6375 GB, free: 8.801 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.1491, allocations: 203.9 kB / 0.6377 GB, free: 8.566 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.1492, allocations: 12.25 kB / 0.6377 GB, free: 8.555 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.1492, allocations: 16.03 kB / 0.6377 GB, free: 8.539 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.1495, allocations: 101.6 kB / 0.6378 GB, free: 8.434 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.1496, allocations: 0 / 0.6378 GB, free: 8.434 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.1496, allocations: 0 / 0.6378 GB, free: 8.434 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1496, allocations: 4 kB / 0.6378 GB, free: 8.43 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003913/0.15, allocations: 103.9 kB / 0.6379 GB, free: 8.328 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000637/0.1506, allocations: 376.5 kB / 0.6383 GB, free: 7.91 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002679/0.1509, allocations: 74.45 kB / 0.6384 GB, free: 7.828 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.1511, allocations: 56.94 kB / 0.6384 GB, free: 7.77 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.1512, allocations: 8 kB / 0.6384 GB, free: 7.762 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.1512, allocations: 34.55 kB / 0.6385 GB, free: 7.719 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.1512, allocations: 0 / 0.6385 GB, free: 7.719 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006925/0.1519, allocations: 185.5 kB / 0.6386 GB, free: 7.531 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.1519, allocations: 59.34 kB / 0.6387 GB, free: 7.461 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1521, allocations: 134.4 kB / 0.6388 GB, free: 7.312 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.1521, allocations: 29.7 kB / 0.6389 GB, free: 7.277 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.253e-05/0.1522, allocations: 108 kB / 0.639 GB, free: 7.168 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/0.1522, allocations: 19.64 kB / 0.639 GB, free: 7.148 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.573e-05/0.1523, allocations: 21.72 kB / 0.639 GB, free: 7.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1524, allocations: 322.8 kB / 0.6393 GB, free: 6.797 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.1526, allocations: 51.95 kB / 0.6394 GB, free: 6.746 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.1528, allocations: 51.94 kB / 0.6394 GB, free: 6.695 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003817/0.1532, allocations: 112.8 kB / 0.6395 GB, free: 6.582 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1532, allocations: 0 / 0.6395 GB, free: 6.582 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004316/0.1536, allocations: 145.6 kB / 0.6397 GB, free: 6.434 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.1536, allocations: 7.938 kB / 0.6397 GB, free: 6.426 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1537, allocations: 4 kB / 0.6397 GB, free: 6.422 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.1537, allocations: 0 / 0.6397 GB, free: 6.422 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.1539, allocations: 31.91 kB / 0.6397 GB, free: 6.391 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.1539, allocations: 4.062 kB / 0.6397 GB, free: 6.387 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.154, allocations: 15.97 kB / 0.6397 GB, free: 6.371 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.154, allocations: 8 kB / 0.6397 GB, free: 6.363 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 9.936e-05/0.1541, allocations: 113.8 kB / 0.6398 GB, free: 6.242 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.1542, allocations: 19.78 kB / 0.6398 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.793e-05/0.1542, allocations: 12.72 kB / 0.6399 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1542, allocations: 256 / 0.6399 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1542, allocations: 0 / 0.6399 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1542, allocations: 7.984 kB / 0.6399 GB, free: 6.207 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002234/0.1545, allocations: 197.6 kB / 0.6401 GB, free: 5.965 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1545, allocations: 0 / 0.6401 GB, free: 5.965 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.1546, allocations: 27.97 kB / 0.6401 GB, free: 5.938 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.1547, allocations: 11.88 kB / 0.6401 GB, free: 5.926 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.1547, allocations: 4 kB / 0.6401 GB, free: 5.922 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.1547, allocations: 0 / 0.6401 GB, free: 5.922 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1547, allocations: 0 / 0.6401 GB, free: 5.922 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006749/0.1554, allocations: 307.1 kB / 0.6404 GB, free: 5.605 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.868e-05/0.1554, allocations: 85.05 kB / 0.6405 GB, free: 5.504 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.1555, allocations: 3.938 kB / 0.6405 GB, free: 5.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.1556, allocations: 19.97 kB / 0.6405 GB, free: 5.48 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.468e-05/0.1556, allocations: 4 kB / 0.6405 GB, free: 5.477 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.797e-06/0.1557, allocations: 7.984 kB / 0.6405 GB, free: 5.469 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.723e-05/0.1557, allocations: 105 kB / 0.6406 GB, free: 5.367 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1557, allocations: 4.062 kB / 0.6406 GB, free: 5.363 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002151/0.156, allocations: 12 kB / 0.6406 GB, free: 5.352 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.0001206/0.1561, allocations: 99.25 kB / 0.6407 GB, free: 5.242 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004295/0.1565, allocations: 111.8 kB / 0.6408 GB, free: 5.133 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.1565, allocations: 4 kB / 0.6408 GB, free: 5.129 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001948/0.1567, allocations: 55.94 kB / 0.6409 GB, free: 5.074 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.157, allocations: 16.81 kB / 0.6409 GB, free: 5.059 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000718/0.1578, allocations: 239 kB / 0.6411 GB, free: 4.797 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.158, allocations: 0.7002 MB / 0.6418 GB, free: 4.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 4.714e-05/0.1581, allocations: 8 kB / 0.6418 GB, free: 4.062 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.778e-05/0.1581, allocations: 11.44 kB / 0.6418 GB, free: 4.051 MB / 462.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1581, allocations: 0 / 0.6418 GB, free: 4.051 MB / 462.1 MB Notification: Performance of Templates: time 0.00347/0.1616, allocations: 1.079 MB / 0.6429 GB, free: 2.988 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