Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log.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.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="DTL|DTU|DT_mean_smooth|DT_mean_unsmooth|DT_wi|DT_wo|T_i.offset|T_i.shiftTime|T_i.startTime|T_i.table.1,1.|T_i.table.1,2.|T_i.table.2,1.|T_i.table.2,2.|T_i.table.3,1.|T_i.table.3,2.|T_i.table.4,1.|T_i.table.4,2.|T_i.table.5,1.|T_i.table.5,2.|T_i.table.6,1.|T_i.table.6,2.|T_i.timeScale|T_i.y|T_i1|T_o.amplitude|T_o.falling|T_o.nperiod|T_o.offset|T_o.period|T_o.rising|T_o.startTime|T_o.width|T_o.y|T_w|Time|Time_bak|_derdummy|_dummy",fileNamePrefix="ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log") translateModel(ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="DTL|DTU|DT_mean_smooth|DT_mean_unsmooth|DT_wi|DT_wo|T_i.offset|T_i.shiftTime|T_i.startTime|T_i.table.1,1.|T_i.table.1,2.|T_i.table.2,1.|T_i.table.2,2.|T_i.table.3,1.|T_i.table.3,2.|T_i.table.4,1.|T_i.table.4,2.|T_i.table.5,1.|T_i.table.5,2.|T_i.table.6,1.|T_i.table.6,2.|T_i.timeScale|T_i.y|T_i1|T_o.amplitude|T_o.falling|T_o.nperiod|T_o.offset|T_o.period|T_o.rising|T_o.startTime|T_o.width|T_o.y|T_w|Time|Time_bak|_derdummy|_dummy",fileNamePrefix="ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002674/0.002674, allocations: 174.7 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.718/1.718, allocations: 221.4 MB / 234.6 MB, free: 14.46 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.0009435/0.0009435, allocations: 102.4 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.1/0.1, allocations: 20.15 MB / 356.6 MB, free: 5.934 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.303/1.303, allocations: 127.5 MB / 0.5284 GB, free: 15.92 MB / 362.8 MB Notification: Performance of FrontEnd - loaded program: time 3.711e-05/3.721e-05, allocations: 0 / 0.618 GB, free: 4.035 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5953/0.5954, allocations: 82.84 MB / 0.6989 GB, free: 32.14 MB / 474.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1945/0.7899, allocations: 121.5 MB / 0.8175 GB, free: 15.74 MB / 0.5574 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.7902, allocations: 79.88 kB / 0.8176 GB, free: 15.66 MB / 0.5574 GB Notification: Performance of FrontEnd - DAE generated: time 0.02551/0.8157, allocations: 7.982 MB / 0.8253 GB, free: 7.77 MB / 0.5574 GB Notification: Performance of FrontEnd: time 1.944e-06/0.8158, allocations: 0 / 0.8253 GB, free: 7.77 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.8158, allocations: 0 / 0.8253 GB, free: 7.77 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001124/0.817, allocations: 0.5429 MB / 0.8259 GB, free: 7.176 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 6.39e-05/0.817, allocations: 8.75 kB / 0.8259 GB, free: 7.168 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.453e-05/0.8171, allocations: 23.75 kB / 0.8259 GB, free: 7.145 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/0.8175, allocations: 228.5 kB / 0.8261 GB, free: 6.879 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.8175, allocations: 4 kB / 0.8261 GB, free: 6.875 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.564e-05/0.8176, allocations: 9.25 kB / 0.8261 GB, free: 6.867 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003209/0.8179, allocations: 145.6 kB / 0.8263 GB, free: 6.719 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.869e-06/0.8179, allocations: 0 / 0.8263 GB, free: 6.719 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.53e-05/0.8179, allocations: 5.25 kB / 0.8263 GB, free: 6.715 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.818, allocations: 0 / 0.8263 GB, free: 6.715 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.8182, allocations: 123.9 kB / 0.8264 GB, free: 6.594 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008501/0.8191, allocations: 419.7 kB / 0.8268 GB, free: 6.133 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002606/0.8193, allocations: 130.5 kB / 0.8269 GB, free: 5.996 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.8195, allocations: 102.1 kB / 0.827 GB, free: 5.895 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 3.832e-05/0.8195, allocations: 11.25 kB / 0.827 GB, free: 5.887 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003209/0.8199, allocations: 197.7 kB / 0.8272 GB, free: 5.68 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=18): time 1.523e-06/0.8199, allocations: 0 / 0.8272 GB, free: 5.68 MB / 0.5574 GB Notification: Performance of matching and sorting (n=18): time 0.0005818/0.8205, allocations: 296.7 kB / 0.8275 GB, free: 5.379 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.318e-05/0.8206, allocations: 85.11 kB / 0.8276 GB, free: 5.277 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.8208, allocations: 159.9 kB / 0.8277 GB, free: 5.113 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 3.473e-05/0.8208, allocations: 33.7 kB / 0.8278 GB, free: 5.074 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 8.653e-05/0.8209, allocations: 108.5 kB / 0.8279 GB, free: 4.961 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 4.94e-05/0.8209, allocations: 52.56 kB / 0.8279 GB, free: 4.91 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.81e-05/0.821, allocations: 8 kB / 0.8279 GB, free: 4.902 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.8211, allocations: 329.7 kB / 0.8282 GB, free: 4.574 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.8213, allocations: 80.16 kB / 0.8283 GB, free: 4.492 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.8214, allocations: 98.06 kB / 0.8284 GB, free: 4.391 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.8216, allocations: 132.5 kB / 0.8285 GB, free: 4.254 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.8216, allocations: 0 / 0.8285 GB, free: 4.254 MB / 0.5574 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004883/0.8221, allocations: 335 kB / 0.8289 GB, free: 3.914 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 5.857e-05/0.8222, allocations: 68.44 kB / 0.8289 GB, free: 3.836 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.8222, allocations: 0 / 0.8289 GB, free: 3.836 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.8222, allocations: 4 kB / 0.8289 GB, free: 3.832 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003268/0.8225, allocations: 55.88 kB / 0.829 GB, free: 3.777 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.8225, allocations: 0 / 0.829 GB, free: 3.777 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002776/0.8228, allocations: 46.09 kB / 0.829 GB, free: 3.734 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.091e-05/0.8229, allocations: 15.98 kB / 0.829 GB, free: 3.719 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,$PRE.T_o.T_start,T_o.T_start,$PRE.T_o.count,T_o.count,T_i.a,T_i.b,T_i.last,$PRE.T_i.nextEvent,T_i.nextEvent,T_i.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 2 * 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.0001463/0.823, allocations: 138.7 kB / 0.8292 GB, free: 3.57 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.492e-05/0.8231, allocations: 23.8 kB / 0.8292 GB, free: 3.547 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007145/0.8238, allocations: 373.8 kB / 0.8296 GB, free: 3.168 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.8238, allocations: 0 / 0.8296 GB, free: 3.168 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.8238, allocations: 0 / 0.8296 GB, free: 3.168 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.8239, allocations: 3.984 kB / 0.8296 GB, free: 3.164 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000282/0.8241, allocations: 265.3 kB / 0.8298 GB, free: 2.855 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.8242, allocations: 0 / 0.8298 GB, free: 2.855 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002988/0.8245, allocations: 59.94 kB / 0.8299 GB, free: 2.797 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.8245, allocations: 3.938 kB / 0.8299 GB, free: 2.793 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.284e-05/0.8245, allocations: 13.52 kB / 0.8299 GB, free: 2.781 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.8245, allocations: 4 kB / 0.8299 GB, free: 2.777 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.8245, allocations: 6.375 kB / 0.8299 GB, free: 2.773 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000593/0.8251, allocations: 370.6 kB / 0.8303 GB, free: 2.391 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 6.226e-05/0.8252, allocations: 92.92 kB / 0.8303 GB, free: 2.281 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.845e-05/0.8253, allocations: 11.95 kB / 0.8304 GB, free: 2.27 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002757/0.8255, allocations: 35.95 kB / 0.8304 GB, free: 2.234 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.8257, allocations: 19.97 kB / 0.8304 GB, free: 2.215 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.443e-05/0.8257, allocations: 15.98 kB / 0.8304 GB, free: 2.199 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.0001138/0.8258, allocations: 132 kB / 0.8305 GB, free: 2.07 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8258, allocations: 4 kB / 0.8305 GB, free: 2.066 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.0004346/0.8263, allocations: 79.88 kB / 0.8306 GB, free: 1.988 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,T_o.T_start,T_o.count,T_i.a,T_i.b,T_i.last,T_i.nextEvent,T_i.nextEventScaled) * Number of discrete states: 7 (T_o.count,T_i.nextEvent,T_i.last,T_i.nextEventScaled,T_i.b,T_i.a,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0002838/0.8266, allocations: 152.8 kB / 0.8308 GB, free: 1.832 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.000461/0.827, allocations: 334.7 kB / 0.8311 GB, free: 1.48 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.827, allocations: 0 / 0.8311 GB, free: 1.48 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.0002417/0.8273, allocations: 195.9 kB / 0.8313 GB, free: 1.277 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.8275, allocations: 24.7 kB / 0.8313 GB, free: 1.254 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005296/0.8281, allocations: 234.8 kB / 0.8315 GB, free: 1.008 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.8284, allocations: 0.7278 MB / 0.8322 GB, free: 260 kB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.000129/0.8285, allocations: 25.56 kB / 0.8323 GB, free: 232 kB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.23e-05/0.8286, allocations: 19.42 kB / 0.8323 GB, free: 212 kB / 0.5574 GB Notification: Performance of SimCode: time 3.31e-07/0.8286, allocations: 7.656 kB / 0.8323 GB, free: 208 kB / 0.5574 GB Notification: Performance of Templates: time 0.006072/0.8347, allocations: 2.61 MB / 0.8348 GB, free: 13.67 MB / 0.573 GB make -j1 -f ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log.makefile (rm -f ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log.pipe ; mkfifo ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log.pipe >> ../files/ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log.sim & ./ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log_res.mat","/mnt/ReferenceFiles/ExtraLibs/clara_om.git/ReferenceResults/ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log.mat","../files/ClaRa_dev_ClaRa.Basics.ControlVolumes.Fundamentals.Check.Test_SmoothedDeltaTmean_log.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches