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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005673/0.005673, allocations: 176.8 kB / 7.453 MB, free: 2.32 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.77/1.77, allocations: 221.4 MB / 229.3 MB, free: 3.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 100.3 kB / 280.1 MB, free: 1.188 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.1167/0.1167, allocations: 20.16 MB / 351.1 MB, free: 10.24 MB / 298.7 MB [/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/Components/Sensors/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: TinySensorGas_L1_O2dry [/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/Basics/ControlVolumes/Fundamentals/PressureLoss/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: ShellType_L3 TubeType_L2 TubeType_L3 ShellType_L2 [/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/Basics/ControlVolumes/Fundamentals/HeatTransport/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: ShellType_L3 TubeType_L2 TubeType_L3 ShellType_L2 [/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/Basics/ControlVolumes/FluidVolumes/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: VolumeVLE_2 VolumeVLE_3_TwoZones Notification: Performance of loadFile(/mnt/ReferenceFiles/ExtraLibs/packaged/ClaRa/package.mo): time 1.295/1.295, allocations: 127.6 MB / 0.5229 GB, free: 4.523 MB / 346.8 MB Notification: Performance of FrontEnd - loaded program: time 1.493e-05/1.495e-05, allocations: 8 kB / 0.6104 GB, free: 10.72 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6857/0.6857, allocations: 82.83 MB / 0.6913 GB, free: 33.46 MB / 474.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2258/0.9117, allocations: 119.3 MB / 0.8078 GB, free: 6.297 MB / 0.5418 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003779/0.9121, allocations: 83.94 kB / 0.8079 GB, free: 6.215 MB / 0.5418 GB Notification: Performance of FrontEnd: time 0.00624/0.9184, allocations: 1.567 MB / 0.8094 GB, free: 4.699 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 1.729e-05/0.9184, allocations: 4 kB / 0.8094 GB, free: 4.695 MB / 0.5418 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.0006585/0.9191, allocations: 420.7 kB / 0.8098 GB, free: 4.246 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 6.264e-05/0.9192, allocations: 8.031 kB / 0.8098 GB, free: 4.238 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.65e-05/0.9192, allocations: 15.81 kB / 0.8098 GB, free: 4.223 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.9195, allocations: 192 kB / 0.81 GB, free: 3.992 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.9196, allocations: 4 kB / 0.81 GB, free: 3.988 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.534e-05/0.9196, allocations: 8.938 kB / 0.81 GB, free: 3.98 MB / 0.5418 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001422/0.9197, allocations: 32 kB / 0.8101 GB, free: 3.949 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.9199, allocations: 70.17 kB / 0.8101 GB, free: 3.875 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.9199, allocations: 1.781 kB / 0.8101 GB, free: 3.875 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.9199, allocations: 1.406 kB / 0.8101 GB, free: 3.875 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.92, allocations: 0 / 0.8101 GB, free: 3.875 MB / 0.5418 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000761/0.9207, allocations: 363.3 kB / 0.8105 GB, free: 3.492 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/0.9209, allocations: 42.58 kB / 0.8105 GB, free: 3.441 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.121e-05/0.9209, allocations: 24.98 kB / 0.8105 GB, free: 3.414 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.921, allocations: 0 / 0.8105 GB, free: 3.414 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.921, allocations: 30.56 kB / 0.8106 GB, free: 3.375 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.921, allocations: 0 / 0.8106 GB, free: 3.375 MB / 0.5418 GB Notification: Performance of matching and sorting (n=6): time 0.0002821/0.9213, allocations: 78.38 kB / 0.8106 GB, free: 3.293 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.9213, allocations: 52.84 kB / 0.8107 GB, free: 3.23 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.9215, allocations: 127.9 kB / 0.8108 GB, free: 3.094 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.9215, allocations: 25.7 kB / 0.8108 GB, free: 3.062 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 6.33e-05/0.9216, allocations: 96.84 kB / 0.8109 GB, free: 2.965 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/0.9216, allocations: 19.66 kB / 0.8109 GB, free: 2.945 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.72e-06/0.9216, allocations: 0.7188 kB / 0.8109 GB, free: 2.945 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0001976/0.9218, allocations: 323.6 kB / 0.8113 GB, free: 2.621 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.386e-05/0.9219, allocations: 20 kB / 0.8113 GB, free: 2.602 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.899e-05/0.9219, allocations: 16.66 kB / 0.8113 GB, free: 2.586 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.85e-05/0.922, allocations: 17.78 kB / 0.8113 GB, free: 2.57 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.922, allocations: 1.938 kB / 0.8113 GB, free: 2.57 MB / 0.5418 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001545/0.9222, allocations: 84.97 kB / 0.8114 GB, free: 2.484 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.9222, allocations: 5.406 kB / 0.8114 GB, free: 2.48 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.9222, allocations: 0 / 0.8114 GB, free: 2.48 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.9222, allocations: 0.5625 kB / 0.8114 GB, free: 2.48 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/0.9225, allocations: 43.59 kB / 0.8114 GB, free: 2.441 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.9225, allocations: 1.188 kB / 0.8114 GB, free: 2.441 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.9227, allocations: 31.11 kB / 0.8115 GB, free: 2.414 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.392e-05/0.9227, allocations: 1.312 kB / 0.8115 GB, free: 2.414 MB / 0.5418 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 () * 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 9.907e-05/0.9228, allocations: 108.8 kB / 0.8116 GB, free: 2.301 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.885e-05/0.9228, allocations: 14.28 kB / 0.8116 GB, free: 2.289 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.166e-05/0.9229, allocations: 8.5 kB / 0.8116 GB, free: 2.281 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.9229, allocations: 0.5625 kB / 0.8116 GB, free: 2.281 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.9229, allocations: 0 / 0.8116 GB, free: 2.281 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.9229, allocations: 7.906 kB / 0.8116 GB, free: 2.273 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002146/0.9232, allocations: 174.2 kB / 0.8118 GB, free: 2.066 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.9232, allocations: 4.969 kB / 0.8118 GB, free: 2.062 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.9234, allocations: 37.66 kB / 0.8118 GB, free: 2.031 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.9234, allocations: 4 kB / 0.8118 GB, free: 2.027 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.9234, allocations: 0 / 0.8118 GB, free: 2.027 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.9234, allocations: 1.844 kB / 0.8118 GB, free: 2.027 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.9234, allocations: 8.578 kB / 0.8118 GB, free: 2.02 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002965/0.9237, allocations: 201.2 kB / 0.812 GB, free: 1.809 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 5.002e-05/0.9238, allocations: 81.02 kB / 0.8121 GB, free: 1.711 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.9238, allocations: 4.062 kB / 0.8121 GB, free: 1.707 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.924, allocations: 34.25 kB / 0.8121 GB, free: 1.676 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.9241, allocations: 8.516 kB / 0.8121 GB, free: 1.668 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.373e-06/0.9241, allocations: 1.312 kB / 0.8121 GB, free: 1.668 MB / 0.5418 GB Notification: Performance of sort global known variables: time 8.146e-05/0.9242, allocations: 103.4 kB / 0.8122 GB, free: 1.57 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.0002355/0.9244, allocations: 15.94 kB / 0.8123 GB, free: 1.555 MB / 0.5418 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 () * 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.000156/0.9246, allocations: 96.33 kB / 0.8123 GB, free: 1.453 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0001576/0.9247, allocations: 48.53 kB / 0.8124 GB, free: 1.406 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.9248, allocations: 0.5312 kB / 0.8124 GB, free: 1.406 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 6.192e-05/0.9248, allocations: 24 kB / 0.8124 GB, free: 1.383 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.9251, allocations: 17.66 kB / 0.8124 GB, free: 1.371 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007937/0.9259, allocations: 173.6 kB / 0.8126 GB, free: 1.184 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004179/0.9263, allocations: 0.7212 MB / 0.8133 GB, free: 452 kB / 0.5418 GB Notification: Performance of SimCode: time 3.11e-07/0.9263, allocations: 0 / 0.8133 GB, free: 452 kB / 0.5418 GB Notification: Performance of Templates: time 0.003834/0.9302, allocations: 0.9893 MB / 0.8143 GB, free: 15.53 MB / 0.5574 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","/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