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.02493/0.02493, allocations: 1.423 MB / 17.2 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.2957/0.2957, allocations: 22.37 MB / 40.6 MB, free: 0.7969 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.001738/0.001738, allocations: 111.1 kB / 48.08 MB, free: 2.484 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.00224/0.00224, allocations: 188.5 kB / 55.65 MB, free: 6.539 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.475/2.475, allocations: 222.9 MB / 286 MB, free: 1.438 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 1.776/1.776, allocations: 127.8 MB / 470.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004564/0.004564, allocations: 130.2 kB / 0.5532 GB, free: 42.81 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3208, allocations: 82.35 MB / 0.6336 GB, free: 13.46 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.006749/0.3276, allocations: 2.327 MB / 0.6359 GB, free: 11.12 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.3299, allocations: 0.6895 MB / 0.6366 GB, free: 10.42 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.696e-05/0.3301, allocations: 0 / 0.6366 GB, free: 10.42 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001834/0.3303, allocations: 3.938 kB / 0.6366 GB, free: 10.42 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 9.559e-05/0.3304, allocations: 19.86 kB / 0.6366 GB, free: 10.4 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005887/0.331, allocations: 87.83 kB / 0.6367 GB, free: 10.31 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002244/0.3312, allocations: 91.64 kB / 0.6368 GB, free: 10.22 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.3315, allocations: 25.33 kB / 0.6368 GB, free: 10.2 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.3316, allocations: 35.84 kB / 0.6368 GB, free: 10.16 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.3318, allocations: 39.78 kB / 0.6369 GB, free: 10.12 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.774e-05/0.3318, allocations: 4 kB / 0.6369 GB, free: 10.12 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.745e-05/0.3318, allocations: 8 kB / 0.6369 GB, free: 10.11 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.601e-05/0.3319, allocations: 19.91 kB / 0.6369 GB, free: 10.09 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 7.825e-05/0.332, allocations: 35.73 kB / 0.6369 GB, free: 10.06 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001811/0.3322, allocations: 63.89 kB / 0.637 GB, free: 9.996 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3322, allocations: 3.938 kB / 0.637 GB, free: 9.992 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3322, allocations: 0 / 0.637 GB, free: 9.992 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.3323, allocations: 0 / 0.637 GB, free: 9.992 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.001236/0.3335, allocations: 431 kB / 0.6374 GB, free: 9.523 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.089e-05/0.3336, allocations: 12.03 kB / 0.6374 GB, free: 9.512 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.625e-05/0.3337, allocations: 16.75 kB / 0.6374 GB, free: 9.496 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.334, allocations: 188.8 kB / 0.6376 GB, free: 9.273 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.904e-05/0.334, allocations: 4.375 kB / 0.6376 GB, free: 9.27 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.3341, allocations: 16.03 kB / 0.6376 GB, free: 9.254 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005686/0.3347, allocations: 109.5 kB / 0.6377 GB, free: 9.141 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3347, allocations: 0 / 0.6377 GB, free: 9.141 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.3347, allocations: 0 / 0.6377 GB, free: 9.141 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.3348, allocations: 4 kB / 0.6377 GB, free: 9.137 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006553/0.3354, allocations: 111.3 kB / 0.6378 GB, free: 9.031 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.3365, allocations: 368.6 kB / 0.6382 GB, free: 8.621 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004282/0.3369, allocations: 78.45 kB / 0.6383 GB, free: 8.535 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003468/0.3373, allocations: 52.94 kB / 0.6383 GB, free: 8.48 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.288e-05/0.3374, allocations: 4 kB / 0.6383 GB, free: 8.477 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.041e-05/0.3374, allocations: 34.56 kB / 0.6383 GB, free: 8.434 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 2.345e-06/0.3375, allocations: 4 kB / 0.6384 GB, free: 8.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.001197/0.3387, allocations: 185.5 kB / 0.6385 GB, free: 8.242 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002173/0.3389, allocations: 59.28 kB / 0.6386 GB, free: 8.172 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.3391, allocations: 143.2 kB / 0.6387 GB, free: 8.016 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.933e-05/0.3392, allocations: 25.7 kB / 0.6387 GB, free: 7.984 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.3393, allocations: 104 kB / 0.6388 GB, free: 7.879 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.935e-05/0.3394, allocations: 23.66 kB / 0.6389 GB, free: 7.855 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.763e-05/0.3395, allocations: 21.7 kB / 0.6389 GB, free: 7.828 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002317/0.3397, allocations: 326.8 kB / 0.6392 GB, free: 7.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.3401, allocations: 47.95 kB / 0.6392 GB, free: 7.453 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.3404, allocations: 47.95 kB / 0.6393 GB, free: 7.406 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006691/0.3411, allocations: 108.8 kB / 0.6394 GB, free: 7.297 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3411, allocations: 0 / 0.6394 GB, free: 7.297 MB / 462.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0007802/0.3419, allocations: 145.5 kB / 0.6395 GB, free: 7.148 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.342, allocations: 15.88 kB / 0.6395 GB, free: 7.133 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.342, allocations: 7.938 kB / 0.6396 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.342, allocations: 0 / 0.6396 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002859/0.3423, allocations: 27.97 kB / 0.6396 GB, free: 7.098 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.3424, allocations: 0 / 0.6396 GB, free: 7.098 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001844/0.3425, allocations: 11.98 kB / 0.6396 GB, free: 7.086 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.3426, allocations: 4 kB / 0.6396 GB, free: 7.082 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 0.0001686/0.3428, allocations: 119.6 kB / 0.6397 GB, free: 6.957 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.589e-05/0.3428, allocations: 15.83 kB / 0.6397 GB, free: 6.941 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.001e-05/0.3429, allocations: 12.72 kB / 0.6397 GB, free: 6.934 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.3429, allocations: 0 / 0.6397 GB, free: 6.934 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3429, allocations: 4 kB / 0.6397 GB, free: 6.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.3429, allocations: 0 / 0.6397 GB, free: 6.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003784/0.3433, allocations: 197.9 kB / 0.6399 GB, free: 6.688 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3434, allocations: 0 / 0.6399 GB, free: 6.688 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.3436, allocations: 27.97 kB / 0.64 GB, free: 6.66 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.73e-06/0.3437, allocations: 3.938 kB / 0.64 GB, free: 6.656 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.3437, allocations: 4 kB / 0.64 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.3437, allocations: 11.88 kB / 0.64 GB, free: 6.641 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3437, allocations: 0 / 0.64 GB, free: 6.641 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.345, allocations: 299.2 kB / 0.6403 GB, free: 6.332 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.3452, allocations: 92.97 kB / 0.6404 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.023e-05/0.3452, allocations: 7.938 kB / 0.6404 GB, free: 6.215 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.3455, allocations: 11.98 kB / 0.6404 GB, free: 6.203 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.3456, allocations: 11.97 kB / 0.6404 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.3457, allocations: 0 / 0.6404 GB, free: 6.191 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001695/0.3458, allocations: 114.8 kB / 0.6405 GB, free: 6.082 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3459, allocations: 4.062 kB / 0.6405 GB, free: 6.078 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0004567/0.3463, allocations: 16 kB / 0.6405 GB, free: 6.062 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.00026/0.3466, allocations: 95.25 kB / 0.6406 GB, free: 5.957 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008553/0.3475, allocations: 111.8 kB / 0.6407 GB, free: 5.848 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.3475, allocations: 4 kB / 0.6407 GB, free: 5.844 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000401/0.3479, allocations: 55.95 kB / 0.6408 GB, free: 5.789 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007289/0.3486, allocations: 11.92 kB / 0.6408 GB, free: 5.777 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.3503, allocations: 306.3 kB / 0.6411 GB, free: 5.441 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.3509, allocations: 0.6965 MB / 0.6417 GB, free: 4.719 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.357e-05/0.351, allocations: 11.44 kB / 0.6418 GB, free: 4.707 MB / 462.1 MB Notification: Performance of SimCode: time 7.32e-07/0.351, allocations: 4 kB / 0.6418 GB, free: 4.703 MB / 462.1 MB Notification: Performance of Templates: time 0.00537/0.3564, allocations: 1.278 MB / 0.643 GB, free: 3.438 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