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.001551/0.001552, allocations: 174.5 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.499/1.499, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.001153/0.001152, allocations: 89.05 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.09872/0.09872, allocations: 20.15 MB / 356.6 MB, free: 5.902 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.31/1.31, allocations: 127.5 MB / 0.5284 GB, free: 15.9 MB / 362.8 MB Notification: Performance of FrontEnd - loaded program: time 4.728e-05/4.741e-05, allocations: 4 kB / 0.618 GB, free: 4.016 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6414/0.6415, allocations: 82.84 MB / 0.6989 GB, free: 32.21 MB / 474.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1793/0.8208, allocations: 119.4 MB / 0.8154 GB, free: 1.859 MB / 0.5418 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.8212, allocations: 99.84 kB / 0.8155 GB, free: 1.766 MB / 0.5418 GB Notification: Performance of FrontEnd - DAE generated: time 0.004643/0.8258, allocations: 1.513 MB / 0.817 GB, free: 272 kB / 0.5418 GB Notification: Performance of FrontEnd: time 2.093e-06/0.8258, allocations: 0.75 kB / 0.817 GB, free: 272 kB / 0.5418 GB Notification: Performance of Transformations before backend: time 1.567e-05/0.8259, allocations: 4.188 kB / 0.817 GB, free: 268 kB / 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.0005262/0.8264, allocations: 394.4 kB / 0.8174 GB, free: 15.84 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.8265, allocations: 8.75 kB / 0.8174 GB, free: 15.83 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.519e-05/0.8265, allocations: 11.86 kB / 0.8174 GB, free: 15.82 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.8267, allocations: 193.1 kB / 0.8176 GB, free: 15.59 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.8267, allocations: 4 kB / 0.8176 GB, free: 15.59 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.685e-05/0.8268, allocations: 8 kB / 0.8176 GB, free: 15.58 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00016/0.8269, allocations: 65.61 kB / 0.8177 GB, free: 15.51 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.605e-06/0.827, allocations: 1.031 kB / 0.8177 GB, free: 15.51 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.827, allocations: 0 / 0.8177 GB, free: 15.51 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.827, allocations: 9 kB / 0.8177 GB, free: 15.5 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.852e-05/0.8271, allocations: 28 kB / 0.8177 GB, free: 15.47 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000609/0.8277, allocations: 350.4 kB / 0.818 GB, free: 15.09 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004405/0.8282, allocations: 106.3 kB / 0.8181 GB, free: 14.98 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.571e-05/0.8282, allocations: 28.97 kB / 0.8182 GB, free: 14.95 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.8282, allocations: 0.5312 kB / 0.8182 GB, free: 14.95 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.8283, allocations: 40 kB / 0.8182 GB, free: 14.9 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=5): time 1.183e-06/0.8283, allocations: 0 / 0.8182 GB, free: 14.9 MB / 0.5574 GB Notification: Performance of matching and sorting (n=5): time 0.0002092/0.8285, allocations: 74.52 kB / 0.8183 GB, free: 14.82 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.8286, allocations: 51.41 kB / 0.8183 GB, free: 14.76 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.8287, allocations: 121.4 kB / 0.8184 GB, free: 14.63 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.8287, allocations: 25.7 kB / 0.8185 GB, free: 14.6 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 6.511e-05/0.8288, allocations: 99.98 kB / 0.8186 GB, free: 14.5 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 2.941e-05/0.8288, allocations: 19.7 kB / 0.8186 GB, free: 14.48 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-06/0.8288, allocations: 0 / 0.8186 GB, free: 14.48 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.829, allocations: 323.3 kB / 0.8189 GB, free: 14.16 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.47e-05/0.829, allocations: 21.25 kB / 0.8189 GB, free: 14.14 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.993e-05/0.829, allocations: 22.34 kB / 0.8189 GB, free: 14.12 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.651e-05/0.8291, allocations: 17.62 kB / 0.8189 GB, free: 14.1 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.8291, allocations: 0.875 kB / 0.8189 GB, free: 14.1 MB / 0.5574 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001375/0.8293, allocations: 81.59 kB / 0.819 GB, free: 14.02 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.8293, allocations: 8.969 kB / 0.819 GB, free: 14.01 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.8293, allocations: 3.984 kB / 0.819 GB, free: 14 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.8293, allocations: 3.953 kB / 0.819 GB, free: 14 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.8295, allocations: 30.39 kB / 0.8191 GB, free: 13.97 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.8295, allocations: 0 / 0.8191 GB, free: 13.97 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.8296, allocations: 31.38 kB / 0.8191 GB, free: 13.95 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.8296, allocations: 4 kB / 0.8191 GB, free: 13.94 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.653e-05/0.8297, allocations: 105 kB / 0.8192 GB, free: 13.83 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.8297, allocations: 7.906 kB / 0.8192 GB, free: 13.82 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.526e-05/0.8298, allocations: 12.08 kB / 0.8192 GB, free: 13.81 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.8298, allocations: 12.94 kB / 0.8192 GB, free: 13.8 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.8298, allocations: 1.625 kB / 0.8192 GB, free: 13.8 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.8298, allocations: 0 / 0.8192 GB, free: 13.8 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.83, allocations: 182.6 kB / 0.8194 GB, free: 13.57 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.83, allocations: 0 / 0.8194 GB, free: 13.57 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.8302, allocations: 33.95 kB / 0.8194 GB, free: 13.54 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.8302, allocations: 0 / 0.8194 GB, free: 13.54 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.8302, allocations: 3.984 kB / 0.8194 GB, free: 13.54 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.8302, allocations: 4.969 kB / 0.8194 GB, free: 13.54 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/0.8302, allocations: 3.953 kB / 0.8195 GB, free: 13.53 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002629/0.8305, allocations: 205.3 kB / 0.8196 GB, free: 13.32 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 4.75e-05/0.8305, allocations: 89.97 kB / 0.8197 GB, free: 13.22 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.8306, allocations: 4.031 kB / 0.8197 GB, free: 13.21 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.8307, allocations: 19.98 kB / 0.8198 GB, free: 13.2 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/0.8308, allocations: 7.984 kB / 0.8198 GB, free: 13.19 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-06/0.8308, allocations: 3.953 kB / 0.8198 GB, free: 13.19 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 7.537e-05/0.8309, allocations: 105.5 kB / 0.8199 GB, free: 13.09 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8309, allocations: 0 / 0.8199 GB, free: 13.09 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.0002056/0.8311, allocations: 12 kB / 0.8199 GB, free: 13.07 MB / 0.5574 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 () * 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.0001386/0.8312, allocations: 97.38 kB / 0.82 GB, free: 12.97 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.000144/0.8314, allocations: 51.92 kB / 0.82 GB, free: 12.92 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8314, allocations: 0 / 0.82 GB, free: 12.92 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 5.82e-05/0.8314, allocations: 24 kB / 0.82 GB, free: 12.89 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001661/0.8316, allocations: 4.938 kB / 0.8201 GB, free: 12.89 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003768/0.832, allocations: 142.8 kB / 0.8202 GB, free: 12.73 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.8323, allocations: 0.6973 MB / 0.8209 GB, free: 12.01 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 5.044e-05/0.8324, allocations: 5.781 kB / 0.8209 GB, free: 12 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.8324, allocations: 12.23 kB / 0.8209 GB, free: 11.99 MB / 0.5574 GB Notification: Performance of SimCode: time 2.4e-07/0.8324, allocations: 4 kB / 0.8209 GB, free: 11.99 MB / 0.5574 GB Notification: Performance of Templates: time 0.002764/0.8352, allocations: 0.6677 MB / 0.8215 GB, free: 11.39 MB / 0.5574 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