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.01248/0.01248, allocations: 1.443 MB / 17.75 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1483/0.1483, allocations: 22.38 MB / 41.17 MB, free: 7.75 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.001053/0.001053, allocations: 104 kB / 48.66 MB, free: 236 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.001325/0.001325, allocations: 189.3 kB / 56.25 MB, free: 9.449 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.414/1.414, allocations: 222.9 MB / 286.6 MB, free: 13.93 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.8589/0.8589, allocations: 127.8 MB / 471.3 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002463/0.002463, allocations: 127.8 kB / 0.636 GB, free: 13.17 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.4133, allocations: 82.35 MB / 0.7164 GB, free: 9.773 MB / 0.5138 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003106/0.4164, allocations: 2.275 MB / 0.7186 GB, free: 8.02 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.001116/0.4176, allocations: 0.6795 MB / 0.7193 GB, free: 7.48 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.756e-05/0.4176, allocations: 5.438 kB / 0.7193 GB, free: 7.477 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.0001075/0.4177, allocations: 17.3 kB / 0.7193 GB, free: 7.461 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 5.299e-05/0.4178, allocations: 13.28 kB / 0.7193 GB, free: 7.449 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004221/0.4182, allocations: 107.9 kB / 0.7194 GB, free: 7.371 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.000126/0.4184, allocations: 90.83 kB / 0.7195 GB, free: 7.316 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.4185, allocations: 27.81 kB / 0.7195 GB, free: 7.305 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 7.513e-05/0.4186, allocations: 49 kB / 0.7196 GB, free: 7.27 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 6.674e-05/0.4186, allocations: 47.11 kB / 0.7196 GB, free: 7.234 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.4187, allocations: 7.312 kB / 0.7196 GB, free: 7.234 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 1.629e-05/0.4187, allocations: 7.312 kB / 0.7196 GB, free: 7.234 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 2.707e-05/0.4187, allocations: 17.8 kB / 0.7196 GB, free: 7.219 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 4.337e-05/0.4188, allocations: 40.67 kB / 0.7197 GB, free: 7.188 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.4189, allocations: 88.77 kB / 0.7198 GB, free: 7.121 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4189, allocations: 5.781 kB / 0.7198 GB, free: 7.117 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.022e-06/0.4189, allocations: 0 / 0.7198 GB, free: 7.117 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.4189, allocations: 0 / 0.7198 GB, free: 7.117 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.0006081/0.4195, allocations: 429.6 kB / 0.7202 GB, free: 6.695 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4196, allocations: 7.188 kB / 0.7202 GB, free: 6.695 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.796e-05/0.4196, allocations: 14.55 kB / 0.7202 GB, free: 6.688 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.4198, allocations: 205.1 kB / 0.7204 GB, free: 6.457 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.4198, allocations: 7.906 kB / 0.7204 GB, free: 6.453 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.155e-05/0.4199, allocations: 11.97 kB / 0.7204 GB, free: 6.445 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003032/0.4202, allocations: 105.6 kB / 0.7205 GB, free: 6.375 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.4202, allocations: 0 / 0.7205 GB, free: 6.375 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.4202, allocations: 0 / 0.7205 GB, free: 6.375 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.4202, allocations: 2.75 kB / 0.7205 GB, free: 6.375 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.4206, allocations: 102.9 kB / 0.7206 GB, free: 6.328 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005806/0.4212, allocations: 367.6 kB / 0.721 GB, free: 5.973 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.4214, allocations: 71.53 kB / 0.721 GB, free: 5.926 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.4216, allocations: 61.8 kB / 0.7211 GB, free: 5.891 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.4216, allocations: 1.375 kB / 0.7211 GB, free: 5.891 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.4217, allocations: 35.88 kB / 0.7211 GB, free: 5.848 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.4217, allocations: 4 kB / 0.7211 GB, free: 5.844 MB / 0.5138 GB Notification: Performance of matching and sorting (n=6): time 0.000639/0.4223, allocations: 184.2 kB / 0.7213 GB, free: 5.746 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.52e-05/0.4224, allocations: 55.34 kB / 0.7214 GB, free: 5.68 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001157/0.4225, allocations: 148.9 kB / 0.7215 GB, free: 5.547 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.4225, allocations: 25.7 kB / 0.7215 GB, free: 5.516 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/0.4226, allocations: 109.5 kB / 0.7216 GB, free: 5.41 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.4226, allocations: 18.59 kB / 0.7216 GB, free: 5.395 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.513e-05/0.4227, allocations: 21.83 kB / 0.7217 GB, free: 5.371 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.4228, allocations: 325.5 kB / 0.722 GB, free: 5.047 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.423, allocations: 55.12 kB / 0.722 GB, free: 5.02 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.4231, allocations: 52.52 kB / 0.7221 GB, free: 4.996 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.4235, allocations: 100.4 kB / 0.7222 GB, free: 4.949 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4235, allocations: 4 kB / 0.7222 GB, free: 4.945 MB / 0.5138 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004077/0.4239, allocations: 144.2 kB / 0.7223 GB, free: 4.863 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.4239, allocations: 5.469 kB / 0.7223 GB, free: 4.863 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.4239, allocations: 3.938 kB / 0.7223 GB, free: 4.859 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.424, allocations: 5.156 kB / 0.7223 GB, free: 4.855 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.4241, allocations: 29.62 kB / 0.7224 GB, free: 4.844 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.4241, allocations: 1.188 kB / 0.7224 GB, free: 4.844 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.4243, allocations: 24.8 kB / 0.7224 GB, free: 4.828 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.988e-06/0.4243, allocations: 6.875 kB / 0.7224 GB, free: 4.824 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 7.347e-05/0.4244, allocations: 117 kB / 0.7225 GB, free: 4.703 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.071e-05/0.4244, allocations: 8.266 kB / 0.7225 GB, free: 4.699 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.09e-05/0.4244, allocations: 19.48 kB / 0.7225 GB, free: 4.68 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.4244, allocations: 4 kB / 0.7225 GB, free: 4.676 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.4244, allocations: 0 / 0.7225 GB, free: 4.676 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 3.92e-05/0.4245, allocations: 88.23 kB / 0.7226 GB, free: 4.574 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.4245, allocations: 1.469 kB / 0.7226 GB, free: 4.574 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.4247, allocations: 16.81 kB / 0.7226 GB, free: 4.566 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.4247, allocations: 7.375 kB / 0.7226 GB, free: 4.562 MB / 0.5138 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005737/0.4253, allocations: 235.7 kB / 0.7229 GB, free: 4.395 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000659/0.426, allocations: 384 kB / 0.7232 GB, free: 4.098 MB / 0.5138 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001934/0.4262, allocations: 57.75 kB / 0.7233 GB, free: 4.07 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 6.572e-05/0.4262, allocations: 108.2 kB / 0.7234 GB, free: 3.98 MB / 0.5138 GB Notification: Performance of Backend: time 3.21e-07/0.4263, allocations: 0 / 0.7234 GB, free: 3.98 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0004955/0.4268, allocations: 141.5 kB / 0.7235 GB, free: 3.887 MB / 0.5138 GB Notification: Performance of SimCode: time 0.0005834/0.4274, allocations: 0.6416 MB / 0.7242 GB, free: 3.242 MB / 0.5138 GB Notification: Performance of Templates: time 0.003636/0.431, allocations: 1.36 MB / 0.7255 GB, free: 2.559 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