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.001117/0.001117, allocations: 174.3 kB / 7.648 MB, free: 1.422 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.626/1.626, allocations: 221.5 MB / 229.6 MB, free: 7.52 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.001082/0.001082, allocations: 90.05 kB / 280.5 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.1198/0.1198, allocations: 20.17 MB / 351.4 MB, free: 11.01 MB / 250.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 0.8431/0.8431, allocations: 127.6 MB / 0.5233 GB, free: 1.031 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 2.163e-05/2.166e-05, allocations: 4 kB / 0.611 GB, free: 7.812 MB / 378.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6952/0.6952, allocations: 82.85 MB / 0.6919 GB, free: 3.176 MB / 442.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.204/0.8994, allocations: 119.4 MB / 0.8085 GB, free: 9.867 MB / 0.5418 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003419/0.8998, allocations: 95.8 kB / 0.8086 GB, free: 9.777 MB / 0.5418 GB Notification: Performance of FrontEnd - DAE generated: time 0.005909/0.9057, allocations: 1.856 MB / 0.8104 GB, free: 7.91 MB / 0.5418 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9058, allocations: 3.469 kB / 0.8104 GB, free: 7.91 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 1.105e-05/0.9058, allocations: 0 / 0.8104 GB, free: 7.91 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.0005792/0.9064, allocations: 414.2 kB / 0.8108 GB, free: 7.461 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.9064, allocations: 8.031 kB / 0.8108 GB, free: 7.453 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.444e-05/0.9065, allocations: 15.81 kB / 0.8108 GB, free: 7.438 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.9067, allocations: 200.7 kB / 0.811 GB, free: 7.199 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.9067, allocations: 0 / 0.811 GB, free: 7.199 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.52e-05/0.9068, allocations: 4 kB / 0.811 GB, free: 7.195 MB / 0.5418 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001224/0.9069, allocations: 35.94 kB / 0.8111 GB, free: 7.16 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.907, allocations: 61.67 kB / 0.8111 GB, free: 7.094 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.907, allocations: 3.938 kB / 0.8111 GB, free: 7.09 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.907, allocations: 0 / 0.8111 GB, free: 7.09 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.9071, allocations: 4 kB / 0.8111 GB, free: 7.086 MB / 0.5418 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006755/0.9077, allocations: 365.1 kB / 0.8115 GB, free: 6.691 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 8.937e-05/0.9078, allocations: 42.58 kB / 0.8115 GB, free: 6.641 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.955e-05/0.9079, allocations: 20.98 kB / 0.8115 GB, free: 6.617 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.9079, allocations: 0 / 0.8115 GB, free: 6.617 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.908, allocations: 38.56 kB / 0.8116 GB, free: 6.57 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=6): time 9.11e-07/0.908, allocations: 0 / 0.8116 GB, free: 6.57 MB / 0.5418 GB Notification: Performance of matching and sorting (n=6): time 0.0002171/0.9082, allocations: 77.48 kB / 0.8116 GB, free: 6.488 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/0.9082, allocations: 51.41 kB / 0.8117 GB, free: 6.426 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.9084, allocations: 125 kB / 0.8118 GB, free: 6.293 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 1.741e-05/0.9084, allocations: 29.7 kB / 0.8118 GB, free: 6.258 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 7.362e-05/0.9085, allocations: 112.2 kB / 0.8119 GB, free: 6.145 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 2.765e-05/0.9085, allocations: 19.64 kB / 0.812 GB, free: 6.125 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-06/0.9085, allocations: 4 kB / 0.812 GB, free: 6.121 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.9086, allocations: 318.8 kB / 0.8123 GB, free: 5.801 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.724e-05/0.9087, allocations: 16 kB / 0.8123 GB, free: 5.785 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.242e-05/0.9087, allocations: 20 kB / 0.8123 GB, free: 5.766 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.628e-05/0.9088, allocations: 12 kB / 0.8123 GB, free: 5.754 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.9088, allocations: 4 kB / 0.8123 GB, free: 5.75 MB / 0.5418 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001305/0.9089, allocations: 81.58 kB / 0.8124 GB, free: 5.664 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.9089, allocations: 8 kB / 0.8124 GB, free: 5.656 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.9089, allocations: 0 / 0.8124 GB, free: 5.656 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.909, allocations: 0 / 0.8124 GB, free: 5.656 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.9092, allocations: 39.86 kB / 0.8124 GB, free: 5.617 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.9092, allocations: 0 / 0.8124 GB, free: 5.617 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.9093, allocations: 35.25 kB / 0.8125 GB, free: 5.586 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.9093, allocations: 0 / 0.8125 GB, free: 5.586 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 7.085e-05/0.9094, allocations: 104.8 kB / 0.8126 GB, free: 5.477 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.023e-05/0.9094, allocations: 11.81 kB / 0.8126 GB, free: 5.465 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.371e-05/0.9095, allocations: 12.62 kB / 0.8126 GB, free: 5.453 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.9095, allocations: 0 / 0.8126 GB, free: 5.453 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/0.9095, allocations: 11.94 kB / 0.8126 GB, free: 5.441 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.9095, allocations: 3.938 kB / 0.8126 GB, free: 5.438 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.9097, allocations: 174.2 kB / 0.8128 GB, free: 5.23 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.9097, allocations: 0 / 0.8128 GB, free: 5.23 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.9099, allocations: 31.97 kB / 0.8128 GB, free: 5.199 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.9099, allocations: 0 / 0.8128 GB, free: 5.199 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.9099, allocations: 0 / 0.8128 GB, free: 5.199 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.9099, allocations: 4 kB / 0.8128 GB, free: 5.195 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.277e-06/0.9099, allocations: 0 / 0.8128 GB, free: 5.195 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.9102, allocations: 207.5 kB / 0.813 GB, free: 4.977 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 6.075e-05/0.9102, allocations: 85.05 kB / 0.8131 GB, free: 4.875 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.9103, allocations: 4 kB / 0.8131 GB, free: 4.871 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.9104, allocations: 28.03 kB / 0.8131 GB, free: 4.844 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.44e-05/0.9105, allocations: 3.984 kB / 0.8131 GB, free: 4.84 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.9105, allocations: 4 kB / 0.8131 GB, free: 4.836 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 8.305e-05/0.9106, allocations: 103.8 kB / 0.8132 GB, free: 4.734 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9106, allocations: 0 / 0.8132 GB, free: 4.734 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.0002346/0.9108, allocations: 15.94 kB / 0.8132 GB, free: 4.719 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.0001422/0.911, allocations: 91.25 kB / 0.8133 GB, free: 4.621 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0001319/0.9111, allocations: 47.94 kB / 0.8134 GB, free: 4.574 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.9111, allocations: 4 kB / 0.8134 GB, free: 4.57 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 5.07e-05/0.9112, allocations: 27.98 kB / 0.8134 GB, free: 4.543 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002204/0.9114, allocations: 11.95 kB / 0.8134 GB, free: 4.531 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006516/0.9121, allocations: 166 kB / 0.8136 GB, free: 4.344 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.9124, allocations: 0.708 MB / 0.8143 GB, free: 3.609 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 5.072e-05/0.9125, allocations: 4.188 kB / 0.8143 GB, free: 3.605 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.9125, allocations: 15.44 kB / 0.8143 GB, free: 3.594 MB / 0.5418 GB Notification: Performance of SimCode: time 2.21e-07/0.9125, allocations: 3.938 kB / 0.8143 GB, free: 3.59 MB / 0.5418 GB Notification: Performance of Templates: time 0.002844/0.9154, allocations: 0.7877 MB / 0.8151 GB, free: 2.84 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