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.008656/0.008656, allocations: 1.435 MB / 17.74 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1142/0.1142, allocations: 22.38 MB / 41.16 MB, free: 7.781 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.001086/0.001086, allocations: 104 kB / 48.64 MB, free: 276 kB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 195.4 kB / 56.25 MB, free: 9.465 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.388/1.388, allocations: 222.9 MB / 286.6 MB, free: 13.97 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.9001/0.9001, allocations: 127.8 MB / 471.2 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002401/0.002401, allocations: 124.4 kB / 0.6359 GB, free: 13.2 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4752/0.4777, allocations: 82.36 MB / 0.7164 GB, free: 9.852 MB / 0.5138 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003688/0.4814, allocations: 2.272 MB / 0.7186 GB, free: 8.102 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.001359/0.4828, allocations: 0.6875 MB / 0.7193 GB, free: 7.555 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.163e-05/0.4829, allocations: 1.594 kB / 0.7193 GB, free: 7.555 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.483, allocations: 11.81 kB / 0.7193 GB, free: 7.543 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 5.371e-05/0.4831, allocations: 13.31 kB / 0.7193 GB, free: 7.531 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004337/0.4835, allocations: 108.7 kB / 0.7194 GB, free: 7.453 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.4837, allocations: 93.84 kB / 0.7195 GB, free: 7.395 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.4838, allocations: 24.22 kB / 0.7195 GB, free: 7.387 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 8.653e-05/0.4839, allocations: 40.58 kB / 0.7195 GB, free: 7.359 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 8.259e-05/0.484, allocations: 46.67 kB / 0.7196 GB, free: 7.324 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 2.099e-05/0.484, allocations: 6.812 kB / 0.7196 GB, free: 7.324 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 2.255e-05/0.4841, allocations: 12 kB / 0.7196 GB, free: 7.32 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 3.241e-05/0.4841, allocations: 22.38 kB / 0.7196 GB, free: 7.301 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 5.415e-05/0.4842, allocations: 39.45 kB / 0.7197 GB, free: 7.27 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0001464/0.4843, allocations: 87.14 kB / 0.7197 GB, free: 7.203 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4843, allocations: 4 kB / 0.7197 GB, free: 7.199 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.532e-06/0.4843, allocations: 0 / 0.7197 GB, free: 7.199 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.4844, allocations: 0 / 0.7197 GB, free: 7.199 MB / 0.5138 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.0007162/0.4851, allocations: 429.6 kB / 0.7202 GB, free: 6.777 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.4851, allocations: 9.781 kB / 0.7202 GB, free: 6.777 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.347e-05/0.4852, allocations: 10.34 kB / 0.7202 GB, free: 6.773 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.4854, allocations: 196.2 kB / 0.7204 GB, free: 6.551 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.797e-06/0.4854, allocations: 4.438 kB / 0.7204 GB, free: 6.551 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.636e-05/0.4854, allocations: 12.03 kB / 0.7204 GB, free: 6.543 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.4858, allocations: 101 kB / 0.7205 GB, free: 6.477 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.4858, allocations: 4 kB / 0.7205 GB, free: 6.473 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.4859, allocations: 0 / 0.7205 GB, free: 6.473 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.4859, allocations: 2.781 kB / 0.7205 GB, free: 6.473 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.4863, allocations: 103.6 kB / 0.7206 GB, free: 6.426 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006669/0.4869, allocations: 371.1 kB / 0.7209 GB, free: 6.066 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.4872, allocations: 74.86 kB / 0.721 GB, free: 6.016 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002119/0.4874, allocations: 61.72 kB / 0.7211 GB, free: 5.98 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.4875, allocations: 1.438 kB / 0.7211 GB, free: 5.98 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.4875, allocations: 32.75 kB / 0.7211 GB, free: 5.941 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.4875, allocations: 0 / 0.7211 GB, free: 5.941 MB / 0.5138 GB Notification: Performance of matching and sorting (n=6): time 0.0007387/0.4882, allocations: 195.4 kB / 0.7213 GB, free: 5.832 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.4883, allocations: 56.72 kB / 0.7213 GB, free: 5.766 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.4884, allocations: 139.6 kB / 0.7215 GB, free: 5.641 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.4885, allocations: 25.7 kB / 0.7215 GB, free: 5.609 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 7.69e-05/0.4885, allocations: 109.5 kB / 0.7216 GB, free: 5.504 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 3.243e-05/0.4886, allocations: 26.39 kB / 0.7216 GB, free: 5.48 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.4886, allocations: 17.84 kB / 0.7216 GB, free: 5.461 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.4888, allocations: 329.5 kB / 0.722 GB, free: 5.133 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002017/0.489, allocations: 47.45 kB / 0.722 GB, free: 5.113 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002016/0.4892, allocations: 48.83 kB / 0.722 GB, free: 5.094 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003947/0.4896, allocations: 111.7 kB / 0.7221 GB, free: 5.035 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4896, allocations: 0 / 0.7221 GB, free: 5.035 MB / 0.5138 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004351/0.49, allocations: 148.9 kB / 0.7223 GB, free: 4.949 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.4901, allocations: 13.44 kB / 0.7223 GB, free: 4.941 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.4901, allocations: 0 / 0.7223 GB, free: 4.941 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.4901, allocations: 0 / 0.7223 GB, free: 4.941 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.4903, allocations: 31.16 kB / 0.7223 GB, free: 4.93 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.4903, allocations: 0 / 0.7223 GB, free: 4.93 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.4904, allocations: 13.61 kB / 0.7223 GB, free: 4.926 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.4904, allocations: 1.375 kB / 0.7223 GB, free: 4.926 MB / 0.5138 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 0.0001054/0.4905, allocations: 126 kB / 0.7225 GB, free: 4.797 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.359e-05/0.4906, allocations: 11.97 kB / 0.7225 GB, free: 4.789 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.146e-05/0.4906, allocations: 15.45 kB / 0.7225 GB, free: 4.773 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.4906, allocations: 1.375 kB / 0.7225 GB, free: 4.773 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4906, allocations: 0 / 0.7225 GB, free: 4.773 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4907, allocations: 0 / 0.7225 GB, free: 4.773 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002214/0.4909, allocations: 206.1 kB / 0.7227 GB, free: 4.543 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.4909, allocations: 0 / 0.7227 GB, free: 4.543 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.491, allocations: 25.84 kB / 0.7227 GB, free: 4.535 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4911, allocations: 7.938 kB / 0.7227 GB, free: 4.527 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.4911, allocations: 5.375 kB / 0.7227 GB, free: 4.523 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4911, allocations: 0 / 0.7227 GB, free: 4.523 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4911, allocations: 1.375 kB / 0.7227 GB, free: 4.523 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007422/0.4918, allocations: 304.1 kB / 0.723 GB, free: 4.305 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 4.583e-05/0.4919, allocations: 84.58 kB / 0.7231 GB, free: 4.207 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.4919, allocations: 4.25 kB / 0.7231 GB, free: 4.203 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.4921, allocations: 16.7 kB / 0.7231 GB, free: 4.195 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.241e-05/0.4921, allocations: 11.48 kB / 0.7231 GB, free: 4.188 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.4921, allocations: 1.375 kB / 0.7231 GB, free: 4.188 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 8.094e-05/0.4922, allocations: 112.4 kB / 0.7232 GB, free: 4.094 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4922, allocations: 0 / 0.7232 GB, free: 4.094 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0002333/0.4925, allocations: 12.59 kB / 0.7233 GB, free: 4.094 MB / 0.5138 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 0.0001511/0.4926, allocations: 103.4 kB / 0.7234 GB, free: 4 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0005016/0.4931, allocations: 114.5 kB / 0.7235 GB, free: 3.949 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4932, allocations: 1.438 kB / 0.7235 GB, free: 3.949 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.0002113/0.4934, allocations: 57.38 kB / 0.7235 GB, free: 3.926 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.4938, allocations: 20.64 kB / 0.7235 GB, free: 3.91 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007832/0.4946, allocations: 270 kB / 0.7238 GB, free: 3.684 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.4948, allocations: 0.7035 MB / 0.7245 GB, free: 2.973 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.211e-05/0.4949, allocations: 11.88 kB / 0.7245 GB, free: 2.965 MB / 0.5138 GB Notification: Performance of SimCode: time 2.11e-07/0.4949, allocations: 0 / 0.7245 GB, free: 2.965 MB / 0.5138 GB Notification: Performance of Templates: time 0.003485/0.4984, allocations: 1.284 MB / 0.7257 GB, free: 2.312 MB / 0.5138 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=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