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.01038/0.01038, allocations: 172 kB / 15.11 MB, free: 5.969 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.675/1.675, allocations: 223.2 MB / 239 MB, free: 1.781 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.001245/0.001245, allocations: 90.55 kB / 290.2 MB, free: 13.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.1059/0.1059, allocations: 20.31 MB / 361.6 MB, free: 6.641 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.4/1.4, allocations: 127.1 MB / 0.533 GB, free: 16.95 MB / 362.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004572/0.0004574, allocations: 12 kB / 0.6255 GB, free: 11.08 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2796, allocations: 82.86 MB / 0.7064 GB, free: 8.43 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6786/0.9583, allocations: 120.1 MB / 0.8236 GB, free: 5.09 MB / 0.5262 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.9587, allocations: 93.48 kB / 0.8237 GB, free: 5.035 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 0.004793/0.9635, allocations: 1.881 MB / 0.8256 GB, free: 3.441 MB / 0.5262 GB Notification: Performance of FrontEnd: time 2.053e-06/0.9635, allocations: 1.812 kB / 0.8256 GB, free: 3.441 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 1.244e-05/0.9635, allocations: 0 / 0.8256 GB, free: 3.441 MB / 0.5262 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.0004935/0.964, allocations: 430.3 kB / 0.826 GB, free: 2.988 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.9641, allocations: 12.72 kB / 0.826 GB, free: 2.977 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.9641, allocations: 16.52 kB / 0.826 GB, free: 2.961 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.9643, allocations: 198.8 kB / 0.8262 GB, free: 2.727 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.9643, allocations: 11.19 kB / 0.8262 GB, free: 2.723 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.828e-05/0.9643, allocations: 4 kB / 0.8262 GB, free: 2.719 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003136/0.9646, allocations: 119.1 kB / 0.8263 GB, free: 2.613 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.9647, allocations: 2.281 kB / 0.8263 GB, free: 2.613 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.9647, allocations: 3.375 kB / 0.8263 GB, free: 2.613 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.9647, allocations: 4 kB / 0.8263 GB, free: 2.609 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003541/0.9651, allocations: 127.5 kB / 0.8265 GB, free: 2.504 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005887/0.9656, allocations: 384.2 kB / 0.8268 GB, free: 2.121 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.9659, allocations: 94.12 kB / 0.8269 GB, free: 2.031 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.9659, allocations: 4.5 kB / 0.8269 GB, free: 2.027 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.966, allocations: 35.34 kB / 0.827 GB, free: 1.988 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.966, allocations: 0 / 0.827 GB, free: 1.988 MB / 0.5262 GB Notification: Performance of matching and sorting (n=6): time 0.0006607/0.9666, allocations: 230.1 kB / 0.8272 GB, free: 1.785 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.9667, allocations: 55.38 kB / 0.8272 GB, free: 1.723 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.179e-05/0.9668, allocations: 129.4 kB / 0.8274 GB, free: 1.594 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.9668, allocations: 26.42 kB / 0.8274 GB, free: 1.562 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 4.719e-05/0.9668, allocations: 109.5 kB / 0.8275 GB, free: 1.465 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 2.177e-05/0.9669, allocations: 23.27 kB / 0.8275 GB, free: 1.445 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/0.9669, allocations: 3.312 kB / 0.8275 GB, free: 1.445 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 5.857e-05/0.9669, allocations: 318 kB / 0.8278 GB, free: 1.129 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001867/0.9671, allocations: 69.22 kB / 0.8279 GB, free: 1.07 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.9673, allocations: 69.28 kB / 0.8279 GB, free: 1.016 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.9675, allocations: 68.56 kB / 0.828 GB, free: 0.9648 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.9675, allocations: 0 / 0.828 GB, free: 0.9648 MB / 0.5262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003985/0.9679, allocations: 176.7 kB / 0.8282 GB, free: 0.8047 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.9679, allocations: 8.891 kB / 0.8282 GB, free: 0.7969 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.968, allocations: 0.9375 kB / 0.8282 GB, free: 0.7969 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.691e-05/0.968, allocations: 0 / 0.8282 GB, free: 0.7969 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.9682, allocations: 35.66 kB / 0.8282 GB, free: 0.7656 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.9682, allocations: 0.8438 kB / 0.8282 GB, free: 0.7656 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.9683, allocations: 35.91 kB / 0.8283 GB, free: 0.7305 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.9683, allocations: 0 / 0.8283 GB, free: 0.7305 MB / 0.5262 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.071e-05/0.9684, allocations: 117.5 kB / 0.8284 GB, free: 0.6094 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.825e-05/0.9684, allocations: 7.906 kB / 0.8284 GB, free: 0.6016 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.456e-05/0.9685, allocations: 19.8 kB / 0.8284 GB, free: 0.5898 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.9685, allocations: 0 / 0.8284 GB, free: 0.5898 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.9685, allocations: 8.984 kB / 0.8284 GB, free: 0.582 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.9685, allocations: 0 / 0.8284 GB, free: 0.582 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001849/0.9687, allocations: 199.7 kB / 0.8286 GB, free: 364 kB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.9687, allocations: 0 / 0.8286 GB, free: 364 kB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.9689, allocations: 31.97 kB / 0.8286 GB, free: 332 kB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.9689, allocations: 0 / 0.8286 GB, free: 332 kB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.9689, allocations: 5.609 kB / 0.8286 GB, free: 328 kB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.9689, allocations: 8.5 kB / 0.8286 GB, free: 320 kB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.969, allocations: 0.5625 kB / 0.8286 GB, free: 320 kB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006869/0.9696, allocations: 351.8 kB / 0.829 GB, free: 15.99 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/0.9697, allocations: 85.05 kB / 0.8291 GB, free: 15.89 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.9697, allocations: 0 / 0.8291 GB, free: 15.89 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001457/0.9699, allocations: 31.91 kB / 0.8291 GB, free: 15.86 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.97, allocations: 11.94 kB / 0.8291 GB, free: 15.85 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.97, allocations: 1.688 kB / 0.8291 GB, free: 15.85 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.0001212/0.9701, allocations: 109.7 kB / 0.8292 GB, free: 15.75 MB / 0.5418 GB Notification: Performance of sort global known variables: time 3.81e-07/0.9701, allocations: 0 / 0.8292 GB, free: 15.75 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.0002211/0.9703, allocations: 16 kB / 0.8292 GB, free: 15.74 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 () * 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.00015/0.9705, allocations: 102.8 kB / 0.8293 GB, free: 15.63 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.000475/0.971, allocations: 141.5 kB / 0.8295 GB, free: 15.51 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.971, allocations: 0 / 0.8295 GB, free: 15.51 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.0002074/0.9712, allocations: 75.14 kB / 0.8295 GB, free: 15.45 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.9714, allocations: 8.609 kB / 0.8295 GB, free: 15.44 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007392/0.9722, allocations: 272.6 kB / 0.8298 GB, free: 15.16 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.9725, allocations: 0.7004 MB / 0.8305 GB, free: 14.44 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 5.055e-05/0.9726, allocations: 8.172 kB / 0.8305 GB, free: 14.43 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.9726, allocations: 11.44 kB / 0.8305 GB, free: 14.42 MB / 0.5418 GB Notification: Performance of SimCode: time 2.61e-07/0.9726, allocations: 6.062 kB / 0.8305 GB, free: 14.42 MB / 0.5418 GB Notification: Performance of Templates: time 0.003197/0.9758, allocations: 0.8382 MB / 0.8313 GB, free: 13.63 MB / 0.5418 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