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.00733/0.00733, allocations: 1.441 MB / 17.75 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.1095/0.1095, allocations: 22.38 MB / 41.17 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.001107/0.001107, allocations: 108 kB / 48.66 MB, free: 268 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.001269/0.001269, allocations: 199.4 kB / 56.26 MB, free: 9.469 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.344/1.344, allocations: 222.9 MB / 286.6 MB, free: 13.94 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.861/0.861, allocations: 127.8 MB / 471.3 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002333/0.002333, allocations: 123.8 kB / 0.636 GB, free: 13.19 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3981/0.4005, allocations: 82.34 MB / 0.7164 GB, free: 9.629 MB / 0.5138 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003275/0.4038, allocations: 2.271 MB / 0.7186 GB, free: 7.883 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.4049, allocations: 0.6797 MB / 0.7193 GB, free: 7.344 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.495e-05/0.405, allocations: 1.5 kB / 0.7193 GB, free: 7.344 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 9.371e-05/0.4051, allocations: 11.86 kB / 0.7193 GB, free: 7.332 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 5.207e-05/0.4052, allocations: 22.12 kB / 0.7193 GB, free: 7.312 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003577/0.4055, allocations: 104.4 kB / 0.7194 GB, free: 7.238 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.4056, allocations: 93.8 kB / 0.7195 GB, free: 7.18 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.4058, allocations: 28.28 kB / 0.7195 GB, free: 7.168 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 6.421e-05/0.4058, allocations: 41.12 kB / 0.7195 GB, free: 7.141 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 7.66e-05/0.4059, allocations: 38.69 kB / 0.7196 GB, free: 7.113 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 1.491e-05/0.4059, allocations: 6.875 kB / 0.7196 GB, free: 7.113 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 1.555e-05/0.406, allocations: 11.44 kB / 0.7196 GB, free: 7.109 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 2.727e-05/0.406, allocations: 22.53 kB / 0.7196 GB, free: 7.09 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 4.92e-05/0.406, allocations: 44.61 kB / 0.7197 GB, free: 7.055 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.4062, allocations: 88.86 kB / 0.7198 GB, free: 6.988 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4062, allocations: 1.406 kB / 0.7198 GB, free: 6.988 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.683e-06/0.4062, allocations: 0 / 0.7198 GB, free: 6.988 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.4062, allocations: 0 / 0.7198 GB, free: 6.988 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.0006216/0.4068, allocations: 436.7 kB / 0.7202 GB, free: 6.559 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.4069, allocations: 8.406 kB / 0.7202 GB, free: 6.559 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.832e-05/0.4069, allocations: 10.95 kB / 0.7202 GB, free: 6.555 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.4071, allocations: 195.6 kB / 0.7204 GB, free: 6.336 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.4071, allocations: 5.969 kB / 0.7204 GB, free: 6.332 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.4071, allocations: 17.53 kB / 0.7204 GB, free: 6.32 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.4075, allocations: 103.8 kB / 0.7205 GB, free: 6.25 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.4075, allocations: 5.25 kB / 0.7205 GB, free: 6.246 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.4075, allocations: 4 kB / 0.7205 GB, free: 6.242 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.4075, allocations: 1.344 kB / 0.7205 GB, free: 6.242 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004122/0.4079, allocations: 100 kB / 0.7206 GB, free: 6.199 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/0.4085, allocations: 371.6 kB / 0.721 GB, free: 5.84 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/0.4088, allocations: 71.53 kB / 0.721 GB, free: 5.793 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/0.409, allocations: 61.7 kB / 0.7211 GB, free: 5.758 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.409, allocations: 1.312 kB / 0.7211 GB, free: 5.758 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.4091, allocations: 39.84 kB / 0.7211 GB, free: 5.711 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/0.4091, allocations: 0 / 0.7211 GB, free: 5.711 MB / 0.5138 GB Notification: Performance of matching and sorting (n=6): time 0.0007251/0.4098, allocations: 192.7 kB / 0.7213 GB, free: 5.605 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/0.4098, allocations: 55.34 kB / 0.7214 GB, free: 5.539 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.41, allocations: 142.9 kB / 0.7215 GB, free: 5.41 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.41, allocations: 27.55 kB / 0.7215 GB, free: 5.379 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 6.738e-05/0.4101, allocations: 107.4 kB / 0.7216 GB, free: 5.273 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.4101, allocations: 22.36 kB / 0.7216 GB, free: 5.254 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.35e-05/0.4102, allocations: 18.78 kB / 0.7217 GB, free: 5.234 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.4103, allocations: 325.4 kB / 0.722 GB, free: 4.91 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.4105, allocations: 51.75 kB / 0.722 GB, free: 4.887 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.4107, allocations: 51.72 kB / 0.7221 GB, free: 4.863 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003983/0.4111, allocations: 105.2 kB / 0.7222 GB, free: 4.812 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.4111, allocations: 0 / 0.7222 GB, free: 4.812 MB / 0.5138 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000448/0.4116, allocations: 151.8 kB / 0.7223 GB, free: 4.723 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.4116, allocations: 9.812 kB / 0.7223 GB, free: 4.719 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.4116, allocations: 3.938 kB / 0.7223 GB, free: 4.715 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.4116, allocations: 1.438 kB / 0.7223 GB, free: 4.715 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.4118, allocations: 25.59 kB / 0.7224 GB, free: 4.707 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.4118, allocations: 0 / 0.7224 GB, free: 4.707 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.4119, allocations: 25.67 kB / 0.7224 GB, free: 4.691 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.412, allocations: 2.125 kB / 0.7224 GB, free: 4.691 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 8.814e-05/0.4121, allocations: 120 kB / 0.7225 GB, free: 4.57 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.4121, allocations: 7.547 kB / 0.7225 GB, free: 4.566 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.633e-05/0.4121, allocations: 23.05 kB / 0.7225 GB, free: 4.543 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.4121, allocations: 5.062 kB / 0.7225 GB, free: 4.539 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.4121, allocations: 0 / 0.7225 GB, free: 4.539 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 4.38e-05/0.4122, allocations: 83.38 kB / 0.7226 GB, free: 4.441 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.4122, allocations: 1.125 kB / 0.7226 GB, free: 4.441 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.4124, allocations: 17.34 kB / 0.7226 GB, free: 4.434 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/0.4124, allocations: 11.41 kB / 0.7226 GB, free: 4.426 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006233/0.4131, allocations: 228.5 kB / 0.7229 GB, free: 4.266 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000735/0.4138, allocations: 392.1 kB / 0.7232 GB, free: 3.961 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000225/0.414, allocations: 56.88 kB / 0.7233 GB, free: 3.934 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 7.392e-05/0.4141, allocations: 115.8 kB / 0.7234 GB, free: 3.84 MB / 0.5138 GB Notification: Performance of Backend: time 4.5e-07/0.4141, allocations: 0 / 0.7234 GB, free: 3.84 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0005319/0.4147, allocations: 138.6 kB / 0.7235 GB, free: 3.75 MB / 0.5138 GB Notification: Performance of SimCode: time 0.0006516/0.4153, allocations: 0.655 MB / 0.7242 GB, free: 3.094 MB / 0.5138 GB Notification: Performance of Templates: time 0.003816/0.4192, allocations: 1.351 MB / 0.7255 GB, free: 2.418 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