Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.2-main/package.mo", uses=false) 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/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/package.mo", uses=false) Using package ClaRa with version 1.8.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2/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 SMArtIInt with version 0.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo) Using package TILMedia with version 1.8.2 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.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_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_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.2-main/package.mo): time 0.1405/0.1405, allocations: 23.03 MB / 38.26 MB, free: 1.754 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo): time 0.00913/0.00913, allocations: 1.445 MB / 46.9 MB, free: 2.496 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 108 kB / 54.51 MB, free: 6.508 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 188.3 kB / 62.23 MB, free: 14.62 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.44/1.44, allocations: 222.9 MB / 292.7 MB, free: 0.668 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2/package.mo): time 0.8897/0.8897, allocations: 127.4 MB / 477 MB, free: 9.648 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003552/0.003552, allocations: 127.9 kB / 0.5596 GB, free: 42.97 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1369, allocations: 82.45 MB / 0.6402 GB, free: 12.25 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003747/0.1407, allocations: 2.331 MB / 0.6424 GB, free: 9.898 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.1419, allocations: 0.6739 MB / 0.6431 GB, free: 9.219 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.297e-05/0.142, allocations: 0 / 0.6431 GB, free: 9.219 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.1421, allocations: 7.922 kB / 0.6431 GB, free: 9.211 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 5.266e-05/0.1421, allocations: 11.88 kB / 0.6431 GB, free: 9.199 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003623/0.1425, allocations: 95.77 kB / 0.6432 GB, free: 9.105 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000129/0.1426, allocations: 91.7 kB / 0.6433 GB, free: 9.016 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.1428, allocations: 33.31 kB / 0.6433 GB, free: 8.984 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.146e-05/0.1428, allocations: 35.86 kB / 0.6434 GB, free: 8.949 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.643e-05/0.1429, allocations: 47.75 kB / 0.6434 GB, free: 8.902 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.1429, allocations: 8 kB / 0.6434 GB, free: 8.895 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.828e-05/0.143, allocations: 8 kB / 0.6434 GB, free: 8.887 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.621e-05/0.143, allocations: 19.92 kB / 0.6434 GB, free: 8.867 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.452e-05/0.143, allocations: 39.73 kB / 0.6435 GB, free: 8.828 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.1432, allocations: 79.7 kB / 0.6436 GB, free: 8.75 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1432, allocations: 0 / 0.6436 GB, free: 8.75 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1432, allocations: 3.938 kB / 0.6436 GB, free: 8.746 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1432, allocations: 0 / 0.6436 GB, free: 8.746 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.0006633/0.1439, allocations: 427 kB / 0.644 GB, free: 8.281 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1439, allocations: 11.97 kB / 0.644 GB, free: 8.27 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.04e-05/0.144, allocations: 16.75 kB / 0.644 GB, free: 8.254 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.1442, allocations: 203.5 kB / 0.6442 GB, free: 8.02 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.1442, allocations: 4.375 kB / 0.6442 GB, free: 8.016 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.73e-05/0.1442, allocations: 16.06 kB / 0.6442 GB, free: 8 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003145/0.1445, allocations: 101.6 kB / 0.6443 GB, free: 7.895 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1446, allocations: 0 / 0.6443 GB, free: 7.895 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.1446, allocations: 4 kB / 0.6443 GB, free: 7.891 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1446, allocations: 0 / 0.6443 GB, free: 7.891 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003744/0.145, allocations: 107.8 kB / 0.6444 GB, free: 7.785 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006283/0.1456, allocations: 368.6 kB / 0.6448 GB, free: 7.375 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.1459, allocations: 74.45 kB / 0.6448 GB, free: 7.293 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.1461, allocations: 52.94 kB / 0.6449 GB, free: 7.238 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.1461, allocations: 12 kB / 0.6449 GB, free: 7.227 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.1461, allocations: 30.56 kB / 0.6449 GB, free: 7.188 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.1461, allocations: 0 / 0.6449 GB, free: 7.188 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006788/0.1468, allocations: 201.4 kB / 0.6451 GB, free: 6.984 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.1469, allocations: 55.34 kB / 0.6452 GB, free: 6.918 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.147, allocations: 138.4 kB / 0.6453 GB, free: 6.766 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.147, allocations: 25.7 kB / 0.6453 GB, free: 6.734 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.508e-05/0.1471, allocations: 104 kB / 0.6454 GB, free: 6.629 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.854e-05/0.1471, allocations: 23.66 kB / 0.6454 GB, free: 6.605 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.749e-05/0.1472, allocations: 21.7 kB / 0.6455 GB, free: 6.578 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1474, allocations: 322.8 kB / 0.6458 GB, free: 6.254 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.1475, allocations: 47.95 kB / 0.6458 GB, free: 6.207 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.1477, allocations: 47.95 kB / 0.6459 GB, free: 6.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003695/0.1481, allocations: 112.7 kB / 0.646 GB, free: 6.047 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1481, allocations: 0 / 0.646 GB, free: 6.047 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004204/0.1485, allocations: 149.4 kB / 0.6461 GB, free: 5.895 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.1486, allocations: 11.94 kB / 0.6461 GB, free: 5.883 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1486, allocations: 0 / 0.6461 GB, free: 5.883 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.1486, allocations: 4 kB / 0.6461 GB, free: 5.879 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.1488, allocations: 23.97 kB / 0.6462 GB, free: 5.855 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.1488, allocations: 0 / 0.6462 GB, free: 5.855 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.1489, allocations: 19.92 kB / 0.6462 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-06/0.1489, allocations: 0 / 0.6462 GB, free: 5.836 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.605e-05/0.149, allocations: 125.8 kB / 0.6463 GB, free: 5.703 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.11e-05/0.149, allocations: 11.84 kB / 0.6463 GB, free: 5.691 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.1491, allocations: 12.72 kB / 0.6463 GB, free: 5.684 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.1491, allocations: 3.984 kB / 0.6463 GB, free: 5.68 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1491, allocations: 0 / 0.6463 GB, free: 5.68 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.1491, allocations: 0 / 0.6463 GB, free: 5.68 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002327/0.1493, allocations: 201.5 kB / 0.6465 GB, free: 5.434 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1493, allocations: 0 / 0.6465 GB, free: 5.434 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000157/0.1495, allocations: 31.91 kB / 0.6465 GB, free: 5.402 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1495, allocations: 7.938 kB / 0.6466 GB, free: 5.395 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.1495, allocations: 7.938 kB / 0.6466 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.1495, allocations: 0 / 0.6466 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1495, allocations: 0 / 0.6466 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006894/0.1502, allocations: 307.2 kB / 0.6469 GB, free: 5.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.473e-05/0.1503, allocations: 81.02 kB / 0.6469 GB, free: 4.973 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.1503, allocations: 4.25 kB / 0.6469 GB, free: 4.969 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.1505, allocations: 16.02 kB / 0.6469 GB, free: 4.953 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.1505, allocations: 15.98 kB / 0.647 GB, free: 4.938 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.441e-06/0.1505, allocations: 0 / 0.647 GB, free: 4.938 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.731e-05/0.1506, allocations: 112.8 kB / 0.6471 GB, free: 4.828 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1506, allocations: 0 / 0.6471 GB, free: 4.828 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002185/0.1509, allocations: 12 kB / 0.6471 GB, free: 4.816 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.0001289/0.151, allocations: 103.2 kB / 0.6472 GB, free: 4.703 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004405/0.1514, allocations: 111.9 kB / 0.6473 GB, free: 4.594 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1514, allocations: 0 / 0.6473 GB, free: 4.594 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001981/0.1516, allocations: 59.88 kB / 0.6473 GB, free: 4.535 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.152, allocations: 17.66 kB / 0.6474 GB, free: 4.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007737/0.1528, allocations: 275.1 kB / 0.6476 GB, free: 4.223 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000337/0.1531, allocations: 0.7002 MB / 0.6483 GB, free: 3.496 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 4.73e-05/0.1532, allocations: 8 kB / 0.6483 GB, free: 3.488 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.704e-05/0.1532, allocations: 11.44 kB / 0.6483 GB, free: 3.477 MB / 462.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1532, allocations: 0 / 0.6483 GB, free: 3.477 MB / 462.1 MB Notification: Performance of Templates: time 0.003546/0.1568, allocations: 0.925 MB / 0.6492 GB, free: 2.566 MB / 462.1 MB make -j1 -f ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.makefile (rm -f ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe ; mkfifo ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe ; head -c 1048576 < ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe >> ../files/ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.sim & ./ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe 2>&1) diffSimulationResults("ClaRa_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_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches