Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.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.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T.k1|T.k2|T.u1|T.u2|T.y|Time|Time_bak|ramp.duration|ramp.height|ramp.offset|ramp.startTime|ramp.y|sine.amplitude|sine.f|sine.offset|sine.phase|sine.startTime|sine.y|timeExtrema.initOption|timeExtrema.samplingTime|timeExtrema.startTime|timeExtrema.u|timeExtrema.y_max|timeExtrema.y_min|timeExtrema.y_start.1.|timeExtrema.y_start.2.",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") translateModel(ClaRa.Components.Utilities.Blocks.Check.TestMinMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T.k1|T.k2|T.u1|T.u2|T.y|Time|Time_bak|ramp.duration|ramp.height|ramp.offset|ramp.startTime|ramp.y|sine.amplitude|sine.f|sine.offset|sine.phase|sine.startTime|sine.y|timeExtrema.initOption|timeExtrema.samplingTime|timeExtrema.startTime|timeExtrema.u|timeExtrema.y_max|timeExtrema.y_min|timeExtrema.y_start.1.|timeExtrema.y_start.2.",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009692/0.009692, allocations: 170.8 kB / 15.11 MB, free: 5.973 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.665/1.665, allocations: 223.2 MB / 239 MB, free: 60 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001103, allocations: 92.5 kB / 290.2 MB, free: 4.551 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.09864/0.09864, allocations: 20.31 MB / 361.6 MB, free: 8.754 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 0.8203/0.8203, allocations: 127.1 MB / 0.533 GB, free: 15.01 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006715/0.0006717, allocations: 16 kB / 0.6255 GB, free: 0.8125 MB / 378.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3115, allocations: 82.85 MB / 0.7064 GB, free: 14.17 MB / 474.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.76/1.072, allocations: 119.4 MB / 0.823 GB, free: 0.5195 MB / 0.5262 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003449/1.072, allocations: 99.7 kB / 0.8231 GB, free: 440 kB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 0.00525/1.077, allocations: 1.521 MB / 0.8246 GB, free: 14.91 MB / 0.5418 GB Notification: Performance of FrontEnd: time 4.559e-06/1.077, allocations: 0 / 0.8246 GB, free: 14.91 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 1.364e-05/1.077, allocations: 4 kB / 0.8246 GB, free: 14.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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006973/1.078, allocations: 407.1 kB / 0.825 GB, free: 14.46 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/1.078, allocations: 8.031 kB / 0.825 GB, free: 14.46 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.43e-05/1.078, allocations: 15.86 kB / 0.825 GB, free: 14.44 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002688/1.078, allocations: 186.9 kB / 0.8252 GB, free: 14.22 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/1.078, allocations: 4 kB / 0.8252 GB, free: 14.21 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/1.079, allocations: 11.56 kB / 0.8252 GB, free: 14.21 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000334/1.079, allocations: 109.6 kB / 0.8253 GB, free: 14.09 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/1.079, allocations: 4 kB / 0.8253 GB, free: 14.09 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/1.079, allocations: 0 / 0.8253 GB, free: 14.09 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/1.079, allocations: 0 / 0.8253 GB, free: 14.09 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003182/1.079, allocations: 103.9 kB / 0.8254 GB, free: 13.99 MB / 0.5418 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00078/1.08, allocations: 348.6 kB / 0.8257 GB, free: 13.6 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007236/1.081, allocations: 194.5 kB / 0.8259 GB, free: 13.4 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/1.081, allocations: 0 / 0.8259 GB, free: 13.4 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.137e-05/1.081, allocations: 42.5 kB / 0.826 GB, free: 13.35 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/1.081, allocations: 0 / 0.826 GB, free: 13.35 MB / 0.5418 GB Notification: Performance of matching and sorting (n=5): time 0.0007464/1.082, allocations: 217.6 kB / 0.8262 GB, free: 13.13 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.728e-05/1.082, allocations: 51.41 kB / 0.8262 GB, free: 13.07 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/1.082, allocations: 122.8 kB / 0.8263 GB, free: 12.94 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/1.082, allocations: 29.7 kB / 0.8264 GB, free: 12.9 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/1.082, allocations: 92.14 kB / 0.8265 GB, free: 12.81 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 4.391e-05/1.082, allocations: 27.64 kB / 0.8265 GB, free: 12.78 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-06/1.082, allocations: 0 / 0.8265 GB, free: 12.78 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0002329/1.082, allocations: 314.8 kB / 0.8268 GB, free: 12.46 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/1.083, allocations: 59.95 kB / 0.8268 GB, free: 12.41 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/1.083, allocations: 67.94 kB / 0.8269 GB, free: 12.34 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/1.083, allocations: 55.97 kB / 0.827 GB, free: 12.29 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/1.083, allocations: 1.312 kB / 0.827 GB, free: 12.29 MB / 0.5418 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004855/1.083, allocations: 181.4 kB / 0.8271 GB, free: 12.1 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/1.084, allocations: 6.344 kB / 0.8271 GB, free: 12.1 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/1.084, allocations: 3.953 kB / 0.8271 GB, free: 12.09 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/1.084, allocations: 0 / 0.8271 GB, free: 12.09 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/1.084, allocations: 31.97 kB / 0.8272 GB, free: 12.06 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/1.084, allocations: 4 kB / 0.8272 GB, free: 12.06 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/1.084, allocations: 19.98 kB / 0.8272 GB, free: 12.04 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/1.084, allocations: 4 kB / 0.8272 GB, free: 12.04 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 () * 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.0001493/1.084, allocations: 113.8 kB / 0.8273 GB, free: 11.91 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/1.084, allocations: 11.73 kB / 0.8273 GB, free: 11.91 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.84e-05/1.084, allocations: 12.31 kB / 0.8273 GB, free: 11.89 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/1.084, allocations: 11.89 kB / 0.8273 GB, free: 11.88 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/1.084, allocations: 0 / 0.8273 GB, free: 11.88 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/1.084, allocations: 3.938 kB / 0.8273 GB, free: 11.88 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/1.084, allocations: 185.6 kB / 0.8275 GB, free: 11.64 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/1.085, allocations: 0 / 0.8275 GB, free: 11.64 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/1.085, allocations: 31.97 kB / 0.8275 GB, free: 11.61 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/1.085, allocations: 4 kB / 0.8276 GB, free: 11.61 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/1.085, allocations: 4 kB / 0.8276 GB, free: 11.61 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/1.085, allocations: 0 / 0.8276 GB, free: 11.61 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.491e-06/1.085, allocations: 3.953 kB / 0.8276 GB, free: 11.6 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007952/1.086, allocations: 323.6 kB / 0.8279 GB, free: 11.27 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 9.657e-05/1.086, allocations: 81.02 kB / 0.8279 GB, free: 11.17 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.066e-05/1.086, allocations: 8.062 kB / 0.828 GB, free: 11.16 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/1.086, allocations: 24.03 kB / 0.828 GB, free: 11.14 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.027e-05/1.086, allocations: 11.95 kB / 0.828 GB, free: 11.13 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/1.086, allocations: 0 / 0.828 GB, free: 11.13 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 9.673e-05/1.086, allocations: 113.2 kB / 0.8281 GB, free: 11.02 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.1e-07/1.086, allocations: 0 / 0.8281 GB, free: 11.02 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.0002431/1.086, allocations: 12 kB / 0.8281 GB, free: 11.01 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (timeExtrema.ymax,timeExtrema.ymin) * 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 (5): * Single equations (assignments): 5 * 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.0002568/1.087, allocations: 95.25 kB / 0.8282 GB, free: 10.91 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.000495/1.087, allocations: 136.1 kB / 0.8283 GB, free: 10.77 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/1.087, allocations: 0 / 0.8283 GB, free: 10.77 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.0002193/1.087, allocations: 71.88 kB / 0.8284 GB, free: 10.7 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002514/1.088, allocations: 5.094 kB / 0.8284 GB, free: 10.7 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007586/1.088, allocations: 245.9 kB / 0.8286 GB, free: 10.43 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006748/1.089, allocations: 0.7004 MB / 0.8293 GB, free: 9.703 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 6.224e-05/1.089, allocations: 0 / 0.8293 GB, free: 9.703 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.205e-05/1.089, allocations: 15.42 kB / 0.8293 GB, free: 9.688 MB / 0.5418 GB Notification: Performance of SimCode: time 2.3e-07/1.089, allocations: 0 / 0.8293 GB, free: 9.688 MB / 0.5418 GB Notification: Performance of Templates: time 0.004089/1.093, allocations: 0.6657 MB / 0.83 GB, free: 9.039 MB / 0.5418 GB make -j1 -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.makefile (rm -f ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; mkfifo ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe >> ../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.sim & ./ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat","/mnt/ReferenceFiles/ExtraLibs/clara_om.git/ReferenceResults/ClaRa.Components.Utilities.Blocks.Check.TestMinMax.mat","../files/ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable Time_bak in file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat. Warning: Get data of variable Time_bak from file ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.TestMinMax_res.mat failed! " Variables in the reference:T.k1,T.k2,T.u1,T.u2,T.y,Time,Time_bak,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.u,timeExtrema.y_max,timeExtrema.y_min,timeExtrema.y_start[1],timeExtrema.y_start[2] Variables in the result:T.k1,T.k2,T.u1,T.u2,T.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,timeExtrema.initOption,timeExtrema.samplingTime,timeExtrema.startTime,timeExtrema.u,timeExtrema.y_max,timeExtrema.y_min,timeExtrema.y_start[1],timeExtrema.y_start[2],timeExtrema.ymax,timeExtrema.ymin