Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.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.Functions.TestCases.TestGenerateGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="L|N|Time|Time_bak|_derdummy|_dummy|dx.1.|dx.2.|dx.3.",fileNamePrefix="ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid") translateModel(ClaRa.Basics.Functions.TestCases.TestGenerateGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="L|N|Time|Time_bak|_derdummy|_dummy|dx.1.|dx.2.|dx.3.",fileNamePrefix="ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 174.6 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.385/1.385, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.0009732/0.0009728, allocations: 89.62 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.1076/0.1076, allocations: 20.16 MB / 356.7 MB, free: 5.918 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.177/1.177, allocations: 127.5 MB / 0.5284 GB, free: 15.92 MB / 362.8 MB Notification: Performance of FrontEnd - loaded program: time 4.877e-05/4.906e-05, allocations: 4 kB / 0.618 GB, free: 4.035 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.586/0.586, allocations: 82.83 MB / 0.6988 GB, free: 32.24 MB / 474.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1764/0.7625, allocations: 117.5 MB / 0.8136 GB, free: 3.75 MB / 0.5418 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000252/0.7628, allocations: 71.95 kB / 0.8137 GB, free: 3.68 MB / 0.5418 GB Notification: Performance of FrontEnd - DAE generated: time 0.008319/0.7712, allocations: 3.14 MB / 0.8168 GB, free: 0.5391 MB / 0.5418 GB Notification: Performance of FrontEnd: time 1.743e-06/0.7712, allocations: 1.312 kB / 0.8168 GB, free: 0.5391 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 1.109e-05/0.7712, allocations: 3.656 kB / 0.8168 GB, free: 0.5391 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002647/0.7715, allocations: 335.1 kB / 0.8171 GB, free: 172 kB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.7715, allocations: 8.75 kB / 0.8171 GB, free: 164 kB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.7716, allocations: 5.156 kB / 0.8171 GB, free: 160 kB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.7718, allocations: 167 kB / 0.8173 GB, free: 15.95 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-06/0.7718, allocations: 0.5312 kB / 0.8173 GB, free: 15.95 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.105e-05/0.7718, allocations: 0 / 0.8173 GB, free: 15.95 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.7719, allocations: 39.61 kB / 0.8173 GB, free: 15.91 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.036e-06/0.7719, allocations: 0 / 0.8173 GB, free: 15.91 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.7719, allocations: 0 / 0.8173 GB, free: 15.91 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.788e-05/0.772, allocations: 1.438 kB / 0.8173 GB, free: 15.91 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.193e-05/0.772, allocations: 8.953 kB / 0.8173 GB, free: 15.9 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/0.7722, allocations: 157.5 kB / 0.8174 GB, free: 15.7 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 8.948e-05/0.7723, allocations: 36.55 kB / 0.8175 GB, free: 15.66 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.984e-05/0.7723, allocations: 12.89 kB / 0.8175 GB, free: 15.64 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.7723, allocations: 0 / 0.8175 GB, free: 15.64 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.906e-05/0.7723, allocations: 35.81 kB / 0.8175 GB, free: 15.6 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.7723, allocations: 0 / 0.8175 GB, free: 15.6 MB / 0.5574 GB Notification: Performance of matching and sorting (n=3): time 0.0001297/0.7725, allocations: 46.42 kB / 0.8176 GB, free: 15.55 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.7725, allocations: 51.41 kB / 0.8176 GB, free: 15.48 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.42e-05/0.7726, allocations: 90.19 kB / 0.8177 GB, free: 15.39 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.7726, allocations: 26.77 kB / 0.8177 GB, free: 15.36 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 3.091e-05/0.7726, allocations: 80.14 kB / 0.8178 GB, free: 15.28 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 2.485e-05/0.7727, allocations: 7.844 kB / 0.8178 GB, free: 15.27 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.053e-06/0.7727, allocations: 0.625 kB / 0.8178 GB, free: 15.27 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.7728, allocations: 328.8 kB / 0.8181 GB, free: 14.94 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.268e-05/0.7728, allocations: 4 kB / 0.8181 GB, free: 14.94 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.945e-06/0.7728, allocations: 4 kB / 0.8181 GB, free: 14.93 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.907e-05/0.7728, allocations: 8.344 kB / 0.8181 GB, free: 14.93 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.7728, allocations: 0.5 kB / 0.8181 GB, free: 14.93 MB / 0.5574 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.829e-05/0.7729, allocations: 49.62 kB / 0.8182 GB, free: 14.87 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.7729, allocations: 9.625 kB / 0.8182 GB, free: 14.86 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.7729, allocations: 3.984 kB / 0.8182 GB, free: 14.86 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.773, allocations: 3.938 kB / 0.8182 GB, free: 14.86 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.773, allocations: 0 / 0.8182 GB, free: 14.86 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.773, allocations: 4 kB / 0.8182 GB, free: 14.86 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.069e-05/0.773, allocations: 0 / 0.8182 GB, free: 14.86 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.773, allocations: 0 / 0.8182 GB, free: 14.86 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 (1): * Single equations (assignments): 0 * Array equations: 1 * 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 6.505e-05/0.7731, allocations: 108.9 kB / 0.8183 GB, free: 14.74 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.073e-06/0.7731, allocations: 6.25 kB / 0.8183 GB, free: 14.74 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.068e-05/0.7731, allocations: 6.188 kB / 0.8183 GB, free: 14.73 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.7731, allocations: 1.031 kB / 0.8183 GB, free: 14.73 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.7731, allocations: 4 kB / 0.8183 GB, free: 14.72 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.7731, allocations: 0 / 0.8183 GB, free: 14.72 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.7733, allocations: 158.1 kB / 0.8185 GB, free: 14.52 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7733, allocations: 0.5 kB / 0.8185 GB, free: 14.52 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.7733, allocations: 0 / 0.8185 GB, free: 14.52 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.7733, allocations: 1.219 kB / 0.8185 GB, free: 14.52 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.871e-06/0.7733, allocations: 0 / 0.8185 GB, free: 14.52 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.7733, allocations: 0 / 0.8185 GB, free: 14.52 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7733, allocations: 0.8125 kB / 0.8185 GB, free: 14.52 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.812e-05/0.7734, allocations: 78.39 kB / 0.8186 GB, free: 14.43 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 3.964e-05/0.7734, allocations: 81.06 kB / 0.8186 GB, free: 14.33 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.028e-05/0.7735, allocations: 0.7188 kB / 0.8186 GB, free: 14.33 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.993e-06/0.7735, allocations: 0 / 0.8186 GB, free: 14.33 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.62e-05/0.7735, allocations: 5.219 kB / 0.8186 GB, free: 14.32 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.7735, allocations: 0 / 0.8186 GB, free: 14.32 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 3.249e-05/0.7735, allocations: 78.47 kB / 0.8187 GB, free: 14.25 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7735, allocations: 0 / 0.8187 GB, free: 14.25 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.0002052/0.7737, allocations: 16 kB / 0.8187 GB, free: 14.23 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 1 * 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.0001777/0.7739, allocations: 115.2 kB / 0.8188 GB, free: 14.11 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 6.677e-05/0.774, allocations: 19.88 kB / 0.8189 GB, free: 14.09 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.774, allocations: 0 / 0.8189 GB, free: 14.09 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 1.351e-05/0.774, allocations: 16.95 kB / 0.8189 GB, free: 14.08 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.902e-05/0.7741, allocations: 4 kB / 0.8189 GB, free: 14.07 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001703/0.7743, allocations: 61.95 kB / 0.8189 GB, free: 13.99 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.7746, allocations: 0.677 MB / 0.8196 GB, free: 13.29 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 1.955e-05/0.7746, allocations: 5.031 kB / 0.8196 GB, free: 13.29 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.784e-05/0.7746, allocations: 7.438 kB / 0.8196 GB, free: 13.28 MB / 0.5574 GB Notification: Performance of SimCode: time 3.6e-07/0.7746, allocations: 1.031 kB / 0.8196 GB, free: 13.28 MB / 0.5574 GB Notification: Performance of Templates: time 0.002492/0.7771, allocations: 0.5959 MB / 0.8202 GB, free: 12.73 MB / 0.5574 GB make -j1 -f ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.makefile (rm -f ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe ; mkfifo ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe >> ../files/ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.sim & ./ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid_res.mat","/mnt/ReferenceFiles/ExtraLibs/clara_om.git/ReferenceResults/ClaRa.Basics.Functions.TestCases.TestGenerateGrid.mat","../files/ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestGenerateGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches