Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.2-main/package.mo", uses=false) 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/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 SMArtIInt with version 0.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo) Using package TILMedia with version 1.8.2 ClaRa (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.2-main/package.mo) Running command: "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter,fileNamePrefix="ClaRa_ClaRa_Components_Utilities_Blocks_Check_testGradientLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter,fileNamePrefix="ClaRa_ClaRa_Components_Utilities_Blocks_Check_testGradientLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.2-main/package.mo): time 0.1343/0.1343, allocations: 23.03 MB / 38.66 MB, free: 1.484 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtIInt 0.2.2-main/package.mo): time 0.00892/0.00892, allocations: 1.444 MB / 47.32 MB, free: 2.176 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.001375/0.001375, allocations: 107.9 kB / 54.94 MB, free: 6.168 MB / 46.55 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 193.7 kB / 62.69 MB, free: 14.61 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.419/1.419, allocations: 222.9 MB / 293.2 MB, free: 13.25 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 0.8643/0.8643, allocations: 127.5 MB / 477.6 MB, free: 72 kB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003379/0.003379, allocations: 127.8 kB / 0.6419 GB, free: 13.25 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.3911, allocations: 82.45 MB / 0.7224 GB, free: 9.555 MB / 0.5138 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.003142/0.3943, allocations: 2.277 MB / 0.7246 GB, free: 7.805 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.001095/0.3954, allocations: 0.6837 MB / 0.7253 GB, free: 7.262 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.387e-05/0.3955, allocations: 1.812 kB / 0.7253 GB, free: 7.262 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 8.74e-05/0.3956, allocations: 7.875 kB / 0.7253 GB, free: 7.254 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 5.256e-05/0.3956, allocations: 17.72 kB / 0.7253 GB, free: 7.238 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003459/0.396, allocations: 109 kB / 0.7254 GB, free: 7.16 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.3961, allocations: 89.75 kB / 0.7255 GB, free: 7.105 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 9.939e-05/0.3962, allocations: 36 kB / 0.7255 GB, free: 7.086 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 6.244e-05/0.3963, allocations: 36.17 kB / 0.7256 GB, free: 7.062 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 6.657e-05/0.3964, allocations: 46.77 kB / 0.7256 GB, free: 7.027 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 1.605e-05/0.3964, allocations: 8.25 kB / 0.7256 GB, free: 7.027 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 1.465e-05/0.3964, allocations: 10.88 kB / 0.7256 GB, free: 7.023 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 2.686e-05/0.3965, allocations: 22.66 kB / 0.7256 GB, free: 7.004 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 4.715e-05/0.3965, allocations: 43.98 kB / 0.7257 GB, free: 6.969 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.3966, allocations: 81.56 kB / 0.7258 GB, free: 6.91 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3966, allocations: 0 / 0.7258 GB, free: 6.91 MB / 0.5138 GB Notification: Performance of FrontEnd: time 3.166e-06/0.3967, allocations: 0 / 0.7258 GB, free: 6.91 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.3967, allocations: 3.938 kB / 0.7258 GB, free: 6.906 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.0006409/0.3973, allocations: 429.7 kB / 0.7262 GB, free: 6.484 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.3973, allocations: 9.625 kB / 0.7262 GB, free: 6.484 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.967e-05/0.3974, allocations: 36.12 kB / 0.7262 GB, free: 6.441 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.066e-05/0.3974, allocations: 14.34 kB / 0.7262 GB, free: 6.434 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.3976, allocations: 196.8 kB / 0.7264 GB, free: 6.215 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.3976, allocations: 7.125 kB / 0.7264 GB, free: 6.211 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.3976, allocations: 8.062 kB / 0.7264 GB, free: 6.207 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003035/0.398, allocations: 104.1 kB / 0.7265 GB, free: 6.137 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.398, allocations: 11.88 kB / 0.7265 GB, free: 6.125 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.398, allocations: 5.375 kB / 0.7265 GB, free: 6.121 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.398, allocations: 1.375 kB / 0.7265 GB, free: 6.121 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003652/0.3984, allocations: 96.27 kB / 0.7266 GB, free: 6.082 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005856/0.399, allocations: 379.5 kB / 0.727 GB, free: 5.715 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.3992, allocations: 71.53 kB / 0.7271 GB, free: 5.668 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.3994, allocations: 61.8 kB / 0.7271 GB, free: 5.633 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.3994, allocations: 1.375 kB / 0.7271 GB, free: 5.633 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.3995, allocations: 30.56 kB / 0.7272 GB, free: 5.594 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.3995, allocations: 1.375 kB / 0.7272 GB, free: 5.594 MB / 0.5138 GB Notification: Performance of matching and sorting (n=6): time 0.0006757/0.4002, allocations: 194.8 kB / 0.7273 GB, free: 5.484 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.4002, allocations: 56.88 kB / 0.7274 GB, free: 5.418 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.4003, allocations: 141.5 kB / 0.7275 GB, free: 5.289 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.4003, allocations: 25.7 kB / 0.7276 GB, free: 5.258 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.4004, allocations: 108.5 kB / 0.7277 GB, free: 5.152 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.4005, allocations: 22.77 kB / 0.7277 GB, free: 5.133 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-05/0.4005, allocations: 22.25 kB / 0.7277 GB, free: 5.109 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.4006, allocations: 322 kB / 0.728 GB, free: 4.789 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.4008, allocations: 52.09 kB / 0.7281 GB, free: 4.766 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.401, allocations: 47.61 kB / 0.7281 GB, free: 4.746 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003611/0.4014, allocations: 104.8 kB / 0.7282 GB, free: 4.695 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.4014, allocations: 0 / 0.7282 GB, free: 4.695 MB / 0.5138 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004281/0.4018, allocations: 155.5 kB / 0.7284 GB, free: 4.602 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.4019, allocations: 10.12 kB / 0.7284 GB, free: 4.598 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.4019, allocations: 0 / 0.7284 GB, free: 4.598 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.4019, allocations: 0 / 0.7284 GB, free: 4.598 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.4021, allocations: 31.22 kB / 0.7284 GB, free: 4.586 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.4021, allocations: 0 / 0.7284 GB, free: 4.586 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.4022, allocations: 22.34 kB / 0.7284 GB, free: 4.574 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.4022, allocations: 1.438 kB / 0.7284 GB, free: 4.574 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.317e-05/0.4023, allocations: 117.5 kB / 0.7285 GB, free: 4.453 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.188e-05/0.4023, allocations: 11.7 kB / 0.7285 GB, free: 4.445 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.789e-05/0.4024, allocations: 19.83 kB / 0.7286 GB, free: 4.426 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4024, allocations: 1.969 kB / 0.7286 GB, free: 4.426 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4024, allocations: 0 / 0.7286 GB, free: 4.426 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.4024, allocations: 0 / 0.7286 GB, free: 4.426 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002017/0.4026, allocations: 193.5 kB / 0.7287 GB, free: 4.207 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.4026, allocations: 0 / 0.7287 GB, free: 4.207 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.4028, allocations: 33.5 kB / 0.7288 GB, free: 4.191 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.4028, allocations: 7.875 kB / 0.7288 GB, free: 4.184 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.4028, allocations: 1.344 kB / 0.7288 GB, free: 4.184 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.4028, allocations: 0 / 0.7288 GB, free: 4.184 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4028, allocations: 5.844 kB / 0.7288 GB, free: 4.18 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.4035, allocations: 303.9 kB / 0.7291 GB, free: 3.961 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 4.855e-05/0.4035, allocations: 87.03 kB / 0.7292 GB, free: 3.859 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.722e-05/0.4036, allocations: 1.25 kB / 0.7292 GB, free: 3.859 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.4037, allocations: 22.09 kB / 0.7292 GB, free: 3.848 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.343e-05/0.4038, allocations: 7.203 kB / 0.7292 GB, free: 3.844 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.4038, allocations: 5.5 kB / 0.7292 GB, free: 3.84 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 6.937e-05/0.4039, allocations: 105 kB / 0.7293 GB, free: 3.754 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1e-07/0.4039, allocations: 0 / 0.7293 GB, free: 3.754 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.0002154/0.4041, allocations: 20.25 kB / 0.7293 GB, free: 3.746 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.0009632/0.4051, allocations: 0.8385 MB / 0.7301 GB, free: 2.996 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0004169/0.4055, allocations: 113.8 kB / 0.7302 GB, free: 2.945 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4055, allocations: 0 / 0.7302 GB, free: 2.945 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.4057, allocations: 61.88 kB / 0.7303 GB, free: 2.918 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.406, allocations: 13.03 kB / 0.7303 GB, free: 2.91 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/0.4085, allocations: 1.696 MB / 0.732 GB, free: 1.465 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.4088, allocations: 0.7033 MB / 0.7327 GB, free: 0.7539 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 4.495e-05/0.4088, allocations: 3.375 kB / 0.7327 GB, free: 0.7539 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.457e-05/0.4089, allocations: 31.98 kB / 0.7327 GB, free: 0.7266 MB / 0.5138 GB Notification: Performance of SimCode: time 3.2e-07/0.4089, allocations: 0 / 0.7327 GB, free: 0.7266 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.193/2.602, allocations: 2.476 MB / 0.7351 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/14.8, allocations: 15.55 kB / 0.7351 GB, free: 15.42 MB / 0.5294 GB (rm -f ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe ; mkfifo ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe ; head -c 1048576 < ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe >> ../files/ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter_res.mat --tempDir=temp_ClaRa_ClaRa_Components_Utilities_Blocks_Check_testGradientLimiter_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ClaRa_ClaRa_Components_Utilities_Blocks_Check_testGradientLimiter.fmu > ClaRa_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.pipe 2>&1) diffSimulationResults("ClaRa_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_ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches