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.0144/0.0144, allocations: 1.409 MB / 16.39 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.1-main/package.mo): time 0.1354/0.1354, allocations: 22.6 MB / 40 MB, free: 1.16 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.0009748/0.000975, allocations: 96.25 kB / 47.73 MB, free: 2.438 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.001575/0.001575, allocations: 179.4 kB / 55.58 MB, free: 6.23 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.591/1.591, allocations: 223.3 MB / 286.5 MB, free: 14.73 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.8.2-main/package.mo): time 1.133/1.133, allocations: 127.7 MB / 472.4 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005467/0.0005467, allocations: 20 kB / 0.556 GB, free: 17.56 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2327, allocations: 83.89 MB / 0.6379 GB, free: 13.68 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter): time 0.002819/0.2356, allocations: 1.858 MB / 0.6397 GB, free: 11.81 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.237, allocations: 0.6238 MB / 0.6404 GB, free: 11.18 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.159e-05/0.2371, allocations: 0 / 0.6404 GB, free: 11.18 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.2372, allocations: 7.922 kB / 0.6404 GB, free: 11.18 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 5.492e-05/0.2373, allocations: 15.88 kB / 0.6404 GB, free: 11.16 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003855/0.2376, allocations: 87.81 kB / 0.6405 GB, free: 11.07 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001424/0.2378, allocations: 83.7 kB / 0.6405 GB, free: 10.99 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.2379, allocations: 21.09 kB / 0.6406 GB, free: 10.97 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.189e-05/0.238, allocations: 35.8 kB / 0.6406 GB, free: 10.93 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.402e-05/0.2381, allocations: 39.78 kB / 0.6406 GB, free: 10.89 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.2381, allocations: 4 kB / 0.6406 GB, free: 10.89 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.472e-05/0.2381, allocations: 4 kB / 0.6406 GB, free: 10.89 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 2.206e-05/0.2382, allocations: 15.91 kB / 0.6407 GB, free: 10.87 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 5.657e-05/0.2382, allocations: 37.64 kB / 0.6407 GB, free: 10.83 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 9.396e-05/0.2383, allocations: 60.09 kB / 0.6407 GB, free: 10.77 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.2383, allocations: 0 / 0.6407 GB, free: 10.77 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2384, allocations: 0 / 0.6407 GB, free: 10.77 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.2384, allocations: 0 / 0.6407 GB, free: 10.77 MB / 478.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.0006749/0.239, allocations: 430.8 kB / 0.6412 GB, free: 10.3 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.2391, allocations: 8.031 kB / 0.6412 GB, free: 10.29 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/0.2391, allocations: 11.91 kB / 0.6412 GB, free: 10.28 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002005/0.2393, allocations: 195.4 kB / 0.6414 GB, free: 10.05 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.2394, allocations: 4 kB / 0.6414 GB, free: 10.05 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.2394, allocations: 4 kB / 0.6414 GB, free: 10.04 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003522/0.2398, allocations: 121.6 kB / 0.6415 GB, free: 9.918 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.2398, allocations: 3.938 kB / 0.6415 GB, free: 9.914 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.2398, allocations: 4 kB / 0.6415 GB, free: 9.91 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.2398, allocations: 3.953 kB / 0.6415 GB, free: 9.906 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.2402, allocations: 131.9 kB / 0.6416 GB, free: 9.777 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006789/0.2409, allocations: 384.5 kB / 0.642 GB, free: 9.352 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002475/0.2412, allocations: 90.52 kB / 0.6421 GB, free: 9.254 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.2414, allocations: 72.94 kB / 0.6421 GB, free: 9.18 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.2414, allocations: 0 / 0.6421 GB, free: 9.18 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.2415, allocations: 42.48 kB / 0.6422 GB, free: 9.129 MB / 478.1 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.2415, allocations: 0 / 0.6422 GB, free: 9.129 MB / 478.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006978/0.2422, allocations: 233.5 kB / 0.6424 GB, free: 8.895 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.2423, allocations: 55.41 kB / 0.6425 GB, free: 8.828 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.2424, allocations: 137.4 kB / 0.6426 GB, free: 8.68 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.2425, allocations: 29.7 kB / 0.6426 GB, free: 8.645 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.338e-05/0.2426, allocations: 104.2 kB / 0.6427 GB, free: 8.539 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.446e-05/0.2426, allocations: 27.64 kB / 0.6427 GB, free: 8.512 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-06/0.2426, allocations: 0 / 0.6427 GB, free: 8.512 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.2428, allocations: 322.8 kB / 0.6431 GB, free: 8.188 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.243, allocations: 63.95 kB / 0.6431 GB, free: 8.125 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.2432, allocations: 63.95 kB / 0.6432 GB, free: 8.062 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.2434, allocations: 71.89 kB / 0.6432 GB, free: 7.992 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.2434, allocations: 3.953 kB / 0.6433 GB, free: 7.988 MB / 478.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000414/0.2438, allocations: 169.5 kB / 0.6434 GB, free: 7.816 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.2439, allocations: 4 kB / 0.6434 GB, free: 7.812 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.2439, allocations: 3.984 kB / 0.6434 GB, free: 7.809 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.2439, allocations: 4.188 kB / 0.6434 GB, free: 7.805 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.2441, allocations: 35.98 kB / 0.6435 GB, free: 7.77 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.2441, allocations: 7.984 kB / 0.6435 GB, free: 7.762 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001007/0.2442, allocations: 23.98 kB / 0.6435 GB, free: 7.738 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.2442, allocations: 4 kB / 0.6435 GB, free: 7.734 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.2443, allocations: 119.3 kB / 0.6436 GB, free: 7.609 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.196e-05/0.2444, allocations: 15.77 kB / 0.6436 GB, free: 7.594 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.498e-05/0.2444, allocations: 16.7 kB / 0.6436 GB, free: 7.582 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.2444, allocations: 0 / 0.6436 GB, free: 7.582 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2444, allocations: 3.938 kB / 0.6436 GB, free: 7.578 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2444, allocations: 0 / 0.6436 GB, free: 7.578 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002328/0.2447, allocations: 201.6 kB / 0.6438 GB, free: 7.332 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/0.2447, allocations: 7.984 kB / 0.6438 GB, free: 7.324 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.2449, allocations: 35.94 kB / 0.6439 GB, free: 7.289 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2449, allocations: 0 / 0.6439 GB, free: 7.289 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.2449, allocations: 3.984 kB / 0.6439 GB, free: 7.285 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.2449, allocations: 0 / 0.6439 GB, free: 7.285 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2449, allocations: 0 / 0.6439 GB, free: 7.285 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006924/0.2456, allocations: 351.3 kB / 0.6442 GB, free: 6.926 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.36e-05/0.2457, allocations: 92.95 kB / 0.6443 GB, free: 6.816 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.2457, allocations: 7.938 kB / 0.6443 GB, free: 6.809 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.2458, allocations: 19.98 kB / 0.6443 GB, free: 6.789 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.312e-05/0.2459, allocations: 11.98 kB / 0.6443 GB, free: 6.777 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.2459, allocations: 4 kB / 0.6443 GB, free: 6.773 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.25e-05/0.246, allocations: 108.6 kB / 0.6444 GB, free: 6.668 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.246, allocations: 4 kB / 0.6445 GB, free: 6.664 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0002211/0.2462, allocations: 12 kB / 0.6445 GB, free: 6.652 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001458/0.2464, allocations: 99.25 kB / 0.6446 GB, free: 6.543 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0004254/0.2468, allocations: 136.1 kB / 0.6447 GB, free: 6.41 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2468, allocations: 0 / 0.6447 GB, free: 6.41 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002801/0.2471, allocations: 75.89 kB / 0.6448 GB, free: 6.336 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003484/0.2475, allocations: 15.7 kB / 0.6448 GB, free: 6.324 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007622/0.2482, allocations: 262 kB / 0.645 GB, free: 6.043 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.2486, allocations: 0.7082 MB / 0.6457 GB, free: 5.309 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 5.294e-05/0.2486, allocations: 4.188 kB / 0.6457 GB, free: 5.305 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.083e-05/0.2487, allocations: 15.42 kB / 0.6457 GB, free: 5.289 MB / 478.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2487, allocations: 0 / 0.6457 GB, free: 5.289 MB / 478.1 MB Notification: Performance of Templates: time 0.00363/0.2523, allocations: 0.8557 MB / 0.6466 GB, free: 4.441 MB / 478.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/ClaRa/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.testGradientLimiter.mat","/var/lib/jenkins/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