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.00157/0.00157, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.534/1.534, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.0009718/0.0009719, allocations: 95.98 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.1028/0.1028, allocations: 20.16 MB / 356.7 MB, free: 5.922 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.286/1.286, allocations: 127.5 MB / 0.5284 GB, free: 15.94 MB / 362.8 MB Notification: Performance of FrontEnd - loaded program: time 6.234e-05/6.254e-05, allocations: 4 kB / 0.618 GB, free: 4.062 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6105/0.6106, allocations: 82.84 MB / 0.6989 GB, free: 32.2 MB / 474.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2102/0.8209, allocations: 120 MB / 0.8161 GB, free: 1.211 MB / 0.5418 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/0.8213, allocations: 95.23 kB / 0.8162 GB, free: 1.125 MB / 0.5418 GB Notification: Performance of FrontEnd - DAE generated: time 0.005969/0.8272, allocations: 1.869 MB / 0.818 GB, free: 15.27 MB / 0.5574 GB Notification: Performance of FrontEnd: time 1.753e-06/0.8273, allocations: 0 / 0.818 GB, free: 15.27 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 1.499e-05/0.8273, allocations: 0.5 kB / 0.818 GB, free: 15.27 MB / 0.5574 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.0006052/0.8279, allocations: 413.8 kB / 0.8184 GB, free: 14.83 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.828, allocations: 12.28 kB / 0.8184 GB, free: 14.82 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.011e-05/0.8281, allocations: 11.81 kB / 0.8184 GB, free: 14.81 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.8283, allocations: 199.3 kB / 0.8186 GB, free: 14.57 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.8284, allocations: 8 kB / 0.8186 GB, free: 14.56 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.8284, allocations: 4 kB / 0.8186 GB, free: 14.56 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.8286, allocations: 69.67 kB / 0.8187 GB, free: 14.48 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.8286, allocations: 3.938 kB / 0.8187 GB, free: 14.48 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.8286, allocations: 8 kB / 0.8187 GB, free: 14.47 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.8287, allocations: 0 / 0.8187 GB, free: 14.47 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.404e-05/0.8288, allocations: 37.94 kB / 0.8187 GB, free: 14.44 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007638/0.8295, allocations: 381.1 kB / 0.8191 GB, free: 14.02 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001067/0.8296, allocations: 42.56 kB / 0.8191 GB, free: 13.97 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.861e-05/0.8297, allocations: 24.98 kB / 0.8192 GB, free: 13.94 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.8298, allocations: 5.031 kB / 0.8192 GB, free: 13.94 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.8298, allocations: 42.45 kB / 0.8192 GB, free: 13.89 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=6): time 1.983e-06/0.8298, allocations: 1.062 kB / 0.8192 GB, free: 13.89 MB / 0.5574 GB Notification: Performance of matching and sorting (n=6): time 0.0002347/0.83, allocations: 73.59 kB / 0.8193 GB, free: 13.81 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.8301, allocations: 52.19 kB / 0.8193 GB, free: 13.75 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.8302, allocations: 133.5 kB / 0.8194 GB, free: 13.61 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.8303, allocations: 25.7 kB / 0.8195 GB, free: 13.58 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 7.858e-05/0.8303, allocations: 112.2 kB / 0.8196 GB, free: 13.46 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 3.388e-05/0.8304, allocations: 19.66 kB / 0.8196 GB, free: 13.45 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.8304, allocations: 0 / 0.8196 GB, free: 13.45 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.8305, allocations: 322.8 kB / 0.8199 GB, free: 13.12 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.676e-05/0.8306, allocations: 20.56 kB / 0.8199 GB, free: 13.1 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.904e-05/0.8306, allocations: 16.66 kB / 0.8199 GB, free: 13.09 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.506e-05/0.8307, allocations: 22.02 kB / 0.82 GB, free: 13.07 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.8307, allocations: 3.938 kB / 0.82 GB, free: 13.06 MB / 0.5574 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001558/0.8309, allocations: 81.59 kB / 0.82 GB, free: 12.98 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.8309, allocations: 5 kB / 0.82 GB, free: 12.97 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.8309, allocations: 3.953 kB / 0.82 GB, free: 12.97 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.8309, allocations: 6.781 kB / 0.8201 GB, free: 12.97 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001958/0.8311, allocations: 36.75 kB / 0.8201 GB, free: 12.93 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.8311, allocations: 1.125 kB / 0.8201 GB, free: 12.93 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.8313, allocations: 22.08 kB / 0.8201 GB, free: 12.91 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.8313, allocations: 4 kB / 0.8201 GB, free: 12.91 MB / 0.5574 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 7.45e-05/0.8314, allocations: 107.6 kB / 0.8202 GB, free: 12.8 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.822e-05/0.8314, allocations: 19.78 kB / 0.8202 GB, free: 12.78 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.41e-05/0.8315, allocations: 12.56 kB / 0.8203 GB, free: 12.77 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.8315, allocations: 7.953 kB / 0.8203 GB, free: 12.76 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.8315, allocations: 3.938 kB / 0.8203 GB, free: 12.76 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.8315, allocations: 0 / 0.8203 GB, free: 12.76 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.8317, allocations: 205.6 kB / 0.8205 GB, free: 12.51 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.8317, allocations: 1.031 kB / 0.8205 GB, free: 12.51 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.8319, allocations: 33 kB / 0.8205 GB, free: 12.48 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.8319, allocations: 0.8438 kB / 0.8205 GB, free: 12.48 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.832, allocations: 0 / 0.8205 GB, free: 12.48 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.832, allocations: 1.125 kB / 0.8205 GB, free: 12.48 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.832, allocations: 8.656 kB / 0.8205 GB, free: 12.47 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003226/0.8323, allocations: 200.5 kB / 0.8207 GB, free: 12.26 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.8324, allocations: 86.02 kB / 0.8208 GB, free: 12.16 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.8324, allocations: 0 / 0.8208 GB, free: 12.16 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/0.8325, allocations: 25.41 kB / 0.8208 GB, free: 12.13 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.005e-05/0.8326, allocations: 20.62 kB / 0.8208 GB, free: 12.11 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-06/0.8326, allocations: 0 / 0.8208 GB, free: 12.11 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 8.184e-05/0.8327, allocations: 109.1 kB / 0.8209 GB, free: 12.01 MB / 0.5574 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8327, allocations: 3.656 kB / 0.8209 GB, free: 12.01 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.0002195/0.833, allocations: 15.94 kB / 0.8209 GB, free: 11.99 MB / 0.5574 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.0001551/0.8331, allocations: 98.53 kB / 0.821 GB, free: 11.89 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.0001475/0.8333, allocations: 48 kB / 0.8211 GB, free: 11.84 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.8333, allocations: 0.6562 kB / 0.8211 GB, free: 11.84 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 6.601e-05/0.8334, allocations: 31.92 kB / 0.8211 GB, free: 11.81 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.8336, allocations: 6.922 kB / 0.8211 GB, free: 11.8 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006938/0.8343, allocations: 172.4 kB / 0.8213 GB, free: 11.61 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.8346, allocations: 0.7099 MB / 0.822 GB, free: 10.88 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 5.686e-05/0.8347, allocations: 6.031 kB / 0.822 GB, free: 10.88 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.8347, allocations: 7.438 kB / 0.822 GB, free: 10.87 MB / 0.5574 GB Notification: Performance of SimCode: time 5.21e-07/0.8347, allocations: 1.656 kB / 0.822 GB, free: 10.87 MB / 0.5574 GB Notification: Performance of Templates: time 0.003367/0.8381, allocations: 0.8615 MB / 0.8228 GB, free: 10.09 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