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.01249/0.01249, allocations: 1.426 MB / 16.66 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1038/0.1038, allocations: 22.37 MB / 40.06 MB, free: 0.832 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.001067/0.001067, allocations: 100.1 kB / 47.53 MB, free: 2.504 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.001204/0.001204, allocations: 188.5 kB / 55.12 MB, free: 6.551 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.262/1.262, allocations: 222.9 MB / 285.5 MB, free: 1.414 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.8136/0.8136, allocations: 127.8 MB / 470.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 132.7 kB / 0.5528 GB, free: 42.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1343, allocations: 82.34 MB / 0.6332 GB, free: 13.4 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003105/0.1374, allocations: 2.329 MB / 0.6355 GB, free: 11.05 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.1385, allocations: 0.6739 MB / 0.6361 GB, free: 10.37 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.309e-05/0.1386, allocations: 0 / 0.6361 GB, free: 10.37 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.1387, allocations: 11.86 kB / 0.6361 GB, free: 10.36 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 4.998e-05/0.1387, allocations: 15.86 kB / 0.6361 GB, free: 10.34 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.1391, allocations: 91.83 kB / 0.6362 GB, free: 10.25 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.1392, allocations: 87.72 kB / 0.6363 GB, free: 10.16 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.1393, allocations: 33.33 kB / 0.6363 GB, free: 10.13 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.02e-05/0.1394, allocations: 39.78 kB / 0.6364 GB, free: 10.09 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.843e-05/0.1395, allocations: 47.77 kB / 0.6364 GB, free: 10.05 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.1395, allocations: 8 kB / 0.6364 GB, free: 10.04 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.339e-05/0.1395, allocations: 4 kB / 0.6364 GB, free: 10.04 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.448e-05/0.1395, allocations: 19.92 kB / 0.6365 GB, free: 10.02 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.79e-05/0.1396, allocations: 39.73 kB / 0.6365 GB, free: 9.977 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.1397, allocations: 87.7 kB / 0.6366 GB, free: 9.891 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.1397, allocations: 0 / 0.6366 GB, free: 9.891 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1397, allocations: 0 / 0.6366 GB, free: 9.891 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1397, allocations: 0 / 0.6366 GB, free: 9.891 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.0005639/0.1403, allocations: 419 kB / 0.637 GB, free: 9.434 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1403, allocations: 12.03 kB / 0.637 GB, free: 9.422 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.733e-05/0.1404, allocations: 12.75 kB / 0.637 GB, free: 9.41 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001525/0.1405, allocations: 203.3 kB / 0.6372 GB, free: 9.176 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.1406, allocations: 8.312 kB / 0.6372 GB, free: 9.168 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/0.1406, allocations: 16.03 kB / 0.6372 GB, free: 9.152 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.1409, allocations: 105.6 kB / 0.6373 GB, free: 9.043 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-06/0.1409, allocations: 0 / 0.6373 GB, free: 9.043 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.1409, allocations: 0 / 0.6373 GB, free: 9.043 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1409, allocations: 0 / 0.6373 GB, free: 9.043 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003589/0.1413, allocations: 106.5 kB / 0.6374 GB, free: 8.941 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005614/0.1419, allocations: 372.5 kB / 0.6378 GB, free: 8.527 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.1421, allocations: 78.5 kB / 0.6378 GB, free: 8.441 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.1423, allocations: 56.94 kB / 0.6379 GB, free: 8.383 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.1423, allocations: 4 kB / 0.6379 GB, free: 8.379 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.1424, allocations: 34.5 kB / 0.6379 GB, free: 8.336 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.1424, allocations: 0 / 0.6379 GB, free: 8.336 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006218/0.143, allocations: 193.4 kB / 0.6381 GB, free: 8.141 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.143, allocations: 55.34 kB / 0.6382 GB, free: 8.074 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.1431, allocations: 138.4 kB / 0.6383 GB, free: 7.922 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.1432, allocations: 29.7 kB / 0.6383 GB, free: 7.887 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.985e-05/0.1432, allocations: 108 kB / 0.6384 GB, free: 7.777 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.675e-05/0.1433, allocations: 27.62 kB / 0.6385 GB, free: 7.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.994e-05/0.1433, allocations: 17.72 kB / 0.6385 GB, free: 7.727 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.86e-05/0.1434, allocations: 326.8 kB / 0.6388 GB, free: 7.398 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.1436, allocations: 47.95 kB / 0.6388 GB, free: 7.352 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.1438, allocations: 51.94 kB / 0.6389 GB, free: 7.301 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003363/0.1441, allocations: 113 kB / 0.639 GB, free: 7.188 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1441, allocations: 0 / 0.639 GB, free: 7.188 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003846/0.1445, allocations: 141.5 kB / 0.6391 GB, free: 7.043 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.1445, allocations: 15.94 kB / 0.6391 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1445, allocations: 0 / 0.6391 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.1445, allocations: 0 / 0.6391 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.1447, allocations: 23.97 kB / 0.6392 GB, free: 7.004 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.1447, allocations: 4 kB / 0.6392 GB, free: 7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.1448, allocations: 19.97 kB / 0.6392 GB, free: 6.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.1448, allocations: 0 / 0.6392 GB, free: 6.98 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 7.569e-05/0.1449, allocations: 123.5 kB / 0.6393 GB, free: 6.852 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.145, allocations: 19.78 kB / 0.6393 GB, free: 6.832 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.672e-05/0.145, allocations: 8.719 kB / 0.6393 GB, free: 6.828 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.145, allocations: 0 / 0.6393 GB, free: 6.828 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.145, allocations: 0 / 0.6393 GB, free: 6.828 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.145, allocations: 4 kB / 0.6393 GB, free: 6.824 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.1452, allocations: 205.6 kB / 0.6395 GB, free: 6.574 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1452, allocations: 0 / 0.6395 GB, free: 6.574 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.1454, allocations: 23.97 kB / 0.6396 GB, free: 6.551 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1454, allocations: 3.938 kB / 0.6396 GB, free: 6.547 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.1454, allocations: 4 kB / 0.6396 GB, free: 6.543 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.1454, allocations: 0 / 0.6396 GB, free: 6.543 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1454, allocations: 4 kB / 0.6396 GB, free: 6.539 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006497/0.146, allocations: 307.1 kB / 0.6399 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.175e-05/0.1461, allocations: 88.98 kB / 0.64 GB, free: 6.117 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.1461, allocations: 3.938 kB / 0.64 GB, free: 6.113 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.1463, allocations: 15.97 kB / 0.64 GB, free: 6.098 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.708e-05/0.1463, allocations: 8 kB / 0.64 GB, free: 6.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.1464, allocations: 0 / 0.64 GB, free: 6.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.631e-05/0.1464, allocations: 118.7 kB / 0.6401 GB, free: 5.977 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1464, allocations: 0 / 0.6401 GB, free: 5.977 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002167/0.1467, allocations: 12 kB / 0.6401 GB, free: 5.965 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.0001312/0.1468, allocations: 99.25 kB / 0.6402 GB, free: 5.855 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004439/0.1473, allocations: 111.8 kB / 0.6403 GB, free: 5.746 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1473, allocations: 4 kB / 0.6403 GB, free: 5.742 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001964/0.1475, allocations: 60 kB / 0.6404 GB, free: 5.684 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/0.1478, allocations: 18.06 kB / 0.6404 GB, free: 5.668 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007812/0.1486, allocations: 271.1 kB / 0.6406 GB, free: 5.375 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.1489, allocations: 0.7002 MB / 0.6413 GB, free: 4.648 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.145e-05/0.149, allocations: 8 kB / 0.6413 GB, free: 4.641 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.425e-05/0.149, allocations: 11.44 kB / 0.6413 GB, free: 4.629 MB / 462.1 MB Notification: Performance of SimCode: time 1.723e-06/0.1491, allocations: 0 / 0.6413 GB, free: 4.629 MB / 462.1 MB Notification: Performance of Templates: time 0.002962/0.152, allocations: 0.9292 MB / 0.6422 GB, free: 3.711 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