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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo", uses=false) loadFile("/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo", uses=false) Using package ClaRa with version 1.8.0 (/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo) Using package TILMedia with version 1.8.0 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/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 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) Running command: translateModel(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time_bak|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="Time|Time_bak|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/Complex 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 222.9 MB / 239.7 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009811/0.0009811, allocations: 109.1 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.0854/0.0854, allocations: 20.13 MB / 360.1 MB, free: 4.816 MB / 298.7 MB Notification: Performance of loadFile(/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo): time 0.9501/0.9501, allocations: 126.3 MB / 0.5296 GB, free: 14.97 MB / 362.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001386, allocations: 75.88 kB / 0.6208 GB, free: 1.508 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3631, allocations: 81.16 MB / 0.7 GB, free: 33.47 MB / 474.8 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003081/0.3662, allocations: 2.331 MB / 0.7023 GB, free: 31.84 MB / 474.8 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.3673, allocations: 0.6874 MB / 0.703 GB, free: 31.38 MB / 474.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.309e-05/0.3674, allocations: 3.812 kB / 0.703 GB, free: 31.38 MB / 474.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.3675, allocations: 11.12 kB / 0.703 GB, free: 31.37 MB / 474.8 MB Notification: Performance of NFTyping.typeBindings: time 4.933e-05/0.3676, allocations: 12.97 kB / 0.703 GB, free: 31.36 MB / 474.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/0.3679, allocations: 93.81 kB / 0.7031 GB, free: 31.31 MB / 474.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.368, allocations: 83.22 kB / 0.7032 GB, free: 31.28 MB / 474.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.3681, allocations: 28 kB / 0.7032 GB, free: 31.27 MB / 474.8 MB Notification: Performance of NFEvalConstants.evaluate: time 5.851e-05/0.3682, allocations: 39.78 kB / 0.7032 GB, free: 31.25 MB / 474.8 MB Notification: Performance of NFSimplifyModel.simplify: time 6.488e-05/0.3683, allocations: 41.03 kB / 0.7033 GB, free: 31.23 MB / 474.8 MB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/0.3683, allocations: 4.406 kB / 0.7033 GB, free: 31.23 MB / 474.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.605e-05/0.3683, allocations: 7.781 kB / 0.7033 GB, free: 31.23 MB / 474.8 MB Notification: Performance of NFScalarize.scalarize: time 2.439e-05/0.3683, allocations: 18.11 kB / 0.7033 GB, free: 31.21 MB / 474.8 MB Notification: Performance of NFVerifyModel.verify: time 3.91e-05/0.3684, allocations: 39.72 kB / 0.7033 GB, free: 31.19 MB / 474.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.3685, allocations: 81.33 kB / 0.7034 GB, free: 31.15 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3685, allocations: 0 / 0.7034 GB, free: 31.15 MB / 474.8 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3685, allocations: 0.9688 kB / 0.7034 GB, free: 31.15 MB / 474.8 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.3685, allocations: 0 / 0.7034 GB, free: 31.15 MB / 474.8 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.000584/0.3691, allocations: 425.5 kB / 0.7038 GB, free: 30.76 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.3692, allocations: 9.656 kB / 0.7038 GB, free: 30.76 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.3692, allocations: 14.44 kB / 0.7039 GB, free: 30.75 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.3693, allocations: 193.1 kB / 0.704 GB, free: 30.54 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.3694, allocations: 11.45 kB / 0.7041 GB, free: 30.53 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.3694, allocations: 8.406 kB / 0.7041 GB, free: 30.53 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003118/0.3697, allocations: 104.7 kB / 0.7042 GB, free: 30.48 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3697, allocations: 2 kB / 0.7042 GB, free: 30.48 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.191e-05/0.3697, allocations: 4.609 kB / 0.7042 GB, free: 30.48 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.3697, allocations: 4.5 kB / 0.7042 GB, free: 30.48 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.3701, allocations: 96.5 kB / 0.7043 GB, free: 30.46 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005288/0.3707, allocations: 379 kB / 0.7046 GB, free: 30.14 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.3709, allocations: 77.22 kB / 0.7047 GB, free: 30.11 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.3711, allocations: 55.17 kB / 0.7048 GB, free: 30.09 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.3712, allocations: 2.75 kB / 0.7048 GB, free: 30.09 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.331e-05/0.3712, allocations: 36.19 kB / 0.7048 GB, free: 30.05 MB / 474.8 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.3712, allocations: 0 / 0.7048 GB, free: 30.05 MB / 474.8 MB Notification: Performance of matching and sorting (n=6): time 0.0006778/0.3719, allocations: 194.2 kB / 0.705 GB, free: 29.99 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.089e-05/0.3719, allocations: 56.47 kB / 0.705 GB, free: 29.92 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.303e-05/0.372, allocations: 144.6 kB / 0.7052 GB, free: 29.8 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 9.358e-06/0.372, allocations: 26.92 kB / 0.7052 GB, free: 29.77 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.978e-05/0.3721, allocations: 109.1 kB / 0.7053 GB, free: 29.67 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.09e-05/0.3721, allocations: 20.97 kB / 0.7053 GB, free: 29.65 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.832e-05/0.3721, allocations: 19.95 kB / 0.7053 GB, free: 29.63 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 4.371e-05/0.3722, allocations: 323.1 kB / 0.7056 GB, free: 29.32 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002015/0.3724, allocations: 49.22 kB / 0.7057 GB, free: 29.31 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.3726, allocations: 55.89 kB / 0.7057 GB, free: 29.3 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003936/0.373, allocations: 104.2 kB / 0.7058 GB, free: 29.27 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.373, allocations: 0 / 0.7058 GB, free: 29.27 MB / 474.8 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004275/0.3734, allocations: 149.8 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3735, allocations: 12.34 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3735, allocations: 1.688 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.3735, allocations: 1.469 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.3737, allocations: 29.92 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.279e-06/0.3737, allocations: 0.75 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.3738, allocations: 17.36 kB / 0.706 GB, free: 29.21 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.3738, allocations: 6.609 kB / 0.7061 GB, free: 29.2 MB / 474.8 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 5.563e-05/0.3739, allocations: 115.1 kB / 0.7062 GB, free: 29.09 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.3739, allocations: 16.25 kB / 0.7062 GB, free: 29.07 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.919e-05/0.3739, allocations: 13.09 kB / 0.7062 GB, free: 29.07 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3739, allocations: 2.062 kB / 0.7062 GB, free: 29.07 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3739, allocations: 1.344 kB / 0.7062 GB, free: 29.07 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.374, allocations: 5.922 kB / 0.7062 GB, free: 29.07 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.3741, allocations: 203.4 kB / 0.7064 GB, free: 28.86 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3741, allocations: 0 / 0.7064 GB, free: 28.86 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.3743, allocations: 27.05 kB / 0.7064 GB, free: 28.86 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.155e-06/0.3743, allocations: 4.781 kB / 0.7064 GB, free: 28.85 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.3743, allocations: 1.094 kB / 0.7064 GB, free: 28.85 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3743, allocations: 1.062 kB / 0.7064 GB, free: 28.85 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3743, allocations: 0.7969 kB / 0.7064 GB, free: 28.85 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003161/0.3775, allocations: 1.609 MB / 0.708 GB, free: 27.59 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.09e-05/0.3775, allocations: 84.7 kB / 0.7081 GB, free: 27.5 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.3776, allocations: 1.219 kB / 0.7081 GB, free: 27.5 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.3777, allocations: 21.47 kB / 0.7081 GB, free: 27.48 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/0.3777, allocations: 7.516 kB / 0.7081 GB, free: 27.48 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.3778, allocations: 2.25 kB / 0.7081 GB, free: 27.48 MB / 474.8 MB Notification: Performance of sorting global known variables: time 5.036e-05/0.3778, allocations: 113.5 kB / 0.7082 GB, free: 27.39 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3778, allocations: 2.625 kB / 0.7082 GB, free: 27.39 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.0002946/0.3781, allocations: 20.34 kB / 0.7082 GB, free: 27.38 MB / 474.8 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 9.792e-05/0.3782, allocations: 98.08 kB / 0.7083 GB, free: 27.29 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.0004287/0.3787, allocations: 112.5 kB / 0.7084 GB, free: 27.24 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3787, allocations: 0 / 0.7084 GB, free: 27.24 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002022/0.3789, allocations: 54.67 kB / 0.7085 GB, free: 27.22 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.3792, allocations: 17.81 kB / 0.7085 GB, free: 27.21 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006894/0.3799, allocations: 400.3 kB / 0.7089 GB, free: 26.86 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.38, allocations: 0.7055 MB / 0.7096 GB, free: 26.15 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 4.852e-05/0.3801, allocations: 5.5 kB / 0.7096 GB, free: 26.15 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.544e-05/0.3801, allocations: 11.56 kB / 0.7096 GB, free: 26.14 MB / 474.8 MB Notification: Performance of SimCode: time 2.7e-07/0.3801, allocations: 0 / 0.7096 GB, free: 26.14 MB / 474.8 MB Notification: Performance of Templates: time 0.002922/0.3831, allocations: 1.026 MB / 0.7106 GB, free: 25.69 MB / 474.8 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","/mnt/ReferenceFiles/ExtraLibs/clara_om.git/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.mat","../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches