Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs.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.TestMaxAbs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time_bak|_derdummy|_dummy|maxx|minn|x1|x2",fileNamePrefix="ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs") translateModel(ClaRa.Basics.Functions.TestCases.TestMaxAbs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time_bak|_derdummy|_dummy|maxx|minn|x1|x2",fileNamePrefix="ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00334/0.00334, allocations: 178.3 kB / 7.457 MB, free: 2.238 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.455/1.455, allocations: 221.4 MB / 229.3 MB, free: 2.98 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.001093/0.001093, allocations: 89.3 kB / 280.1 MB, free: 1.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia 1.8.0-main/package.mo): time 0.09903/0.09903, allocations: 20.17 MB / 351.1 MB, free: 10.34 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.174/1.174, allocations: 127.6 MB / 0.5229 GB, free: 4.68 MB / 346.8 MB Notification: Performance of FrontEnd - loaded program: time 8.586e-06/8.787e-06, allocations: 0 / 0.6104 GB, free: 10.89 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.563/0.563, allocations: 82.84 MB / 0.6913 GB, free: 33.62 MB / 474.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1905/0.7536, allocations: 117.8 MB / 0.8064 GB, free: 7.773 MB / 0.5418 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.7539, allocations: 73.08 kB / 0.8064 GB, free: 7.703 MB / 0.5418 GB Notification: Performance of FrontEnd: time 0.01122/0.7652, allocations: 3.328 MB / 0.8097 GB, free: 4.488 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.7652, allocations: 0 / 0.8097 GB, free: 4.488 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003722/0.7656, allocations: 342.9 kB / 0.81 GB, free: 4.109 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.7657, allocations: 9 kB / 0.81 GB, free: 4.102 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.784e-05/0.7657, allocations: 4 kB / 0.81 GB, free: 4.098 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001241/0.7658, allocations: 163 kB / 0.8102 GB, free: 3.898 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.7659, allocations: 0.5938 kB / 0.8102 GB, free: 3.898 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-06/0.7659, allocations: 1.75 kB / 0.8102 GB, free: 3.898 MB / 0.5418 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001039/0.766, allocations: 15.98 kB / 0.8102 GB, free: 3.883 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.605e-05/0.7661, allocations: 33.69 kB / 0.8102 GB, free: 3.844 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.7661, allocations: 0 / 0.8102 GB, free: 3.844 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.7661, allocations: 0 / 0.8102 GB, free: 3.844 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.7661, allocations: 5.844 kB / 0.8102 GB, free: 3.84 MB / 0.5418 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001976/0.7663, allocations: 136.7 kB / 0.8104 GB, free: 3.672 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.7665, allocations: 38.52 kB / 0.8104 GB, free: 3.625 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.111e-05/0.7665, allocations: 12.86 kB / 0.8104 GB, free: 3.609 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004745/0.767, allocations: 337.4 kB / 0.8107 GB, free: 3.207 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.7671, allocations: 44.48 kB / 0.8108 GB, free: 3.156 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=4): time 2.194e-06/0.7671, allocations: 0 / 0.8108 GB, free: 3.156 MB / 0.5418 GB Notification: Performance of matching and sorting (n=4): time 0.001181/0.7682, allocations: 242.4 kB / 0.811 GB, free: 2.922 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.7683, allocations: 51.94 kB / 0.8111 GB, free: 2.859 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.008e-05/0.7684, allocations: 85.5 kB / 0.8111 GB, free: 2.77 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.7684, allocations: 26.45 kB / 0.8112 GB, free: 2.738 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 3.758e-05/0.7684, allocations: 81.05 kB / 0.8112 GB, free: 2.656 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 6.582e-05/0.7685, allocations: 19.73 kB / 0.8113 GB, free: 2.637 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-06/0.7685, allocations: 3.938 kB / 0.8113 GB, free: 2.633 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.7687, allocations: 315.6 kB / 0.8116 GB, free: 2.316 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.683e-05/0.7687, allocations: 10.56 kB / 0.8116 GB, free: 2.312 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.496e-05/0.7687, allocations: 11.94 kB / 0.8116 GB, free: 2.301 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.7699, allocations: 202.8 kB / 0.8118 GB, free: 2.109 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.7699, allocations: 0.625 kB / 0.8118 GB, free: 2.109 MB / 0.5418 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.001049/0.7709, allocations: 251.7 kB / 0.812 GB, free: 1.867 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.771, allocations: 4 kB / 0.812 GB, free: 1.863 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.771, allocations: 0 / 0.812 GB, free: 1.863 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.771, allocations: 0 / 0.812 GB, free: 1.863 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.365e-05/0.7711, allocations: 9.469 kB / 0.812 GB, free: 1.855 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.7711, allocations: 0 / 0.812 GB, free: 1.855 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.893e-05/0.7711, allocations: 3.984 kB / 0.812 GB, free: 1.852 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.7711, allocations: 2.156 kB / 0.812 GB, free: 1.852 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 (4): * Single equations (assignments): 4 * 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.0001084/0.7712, allocations: 117.6 kB / 0.8122 GB, free: 1.73 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.7713, allocations: 0 / 0.8122 GB, free: 1.73 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.7723, allocations: 259.4 kB / 0.8124 GB, free: 1.473 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.7723, allocations: 8.031 kB / 0.8124 GB, free: 1.465 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.7723, allocations: 0 / 0.8124 GB, free: 1.465 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.7723, allocations: 0 / 0.8124 GB, free: 1.465 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.7724, allocations: 138.1 kB / 0.8125 GB, free: 1.293 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.7725, allocations: 0 / 0.8125 GB, free: 1.293 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.003e-05/0.7725, allocations: 4 kB / 0.8125 GB, free: 1.289 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.7725, allocations: 0 / 0.8125 GB, free: 1.289 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.7725, allocations: 4 kB / 0.8125 GB, free: 1.285 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.7725, allocations: 1.562 kB / 0.8125 GB, free: 1.285 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.7725, allocations: 1.062 kB / 0.8125 GB, free: 1.285 MB / 0.5418 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009539/0.7735, allocations: 277 kB / 0.8128 GB, free: 0.9961 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 4.089e-05/0.7735, allocations: 81.11 kB / 0.8129 GB, free: 0.8984 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.7736, allocations: 0 / 0.8129 GB, free: 0.8984 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.42e-05/0.7736, allocations: 3.984 kB / 0.8129 GB, free: 0.8945 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.08e-05/0.7736, allocations: 4 kB / 0.8129 GB, free: 0.8906 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.7736, allocations: 8 kB / 0.8129 GB, free: 0.8828 MB / 0.5418 GB Notification: Performance of sort global known variables: time 3.649e-05/0.7737, allocations: 75.28 kB / 0.813 GB, free: 0.8086 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.0002272/0.7739, allocations: 23.94 kB / 0.813 GB, free: 0.7852 MB / 0.5418 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 (4): * Single equations (assignments): 4 * 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.0002336/0.7741, allocations: 122.2 kB / 0.8131 GB, free: 0.6562 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.0001119/0.7743, allocations: 23.92 kB / 0.8131 GB, free: 0.6328 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.7743, allocations: 0 / 0.8131 GB, free: 0.6328 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 2.148e-05/0.7743, allocations: 12 kB / 0.8132 GB, free: 0.6211 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001173/0.7744, allocations: 8.625 kB / 0.8132 GB, free: 0.6133 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003142/0.7747, allocations: 60.06 kB / 0.8132 GB, free: 0.5312 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/0.7751, allocations: 0.6876 MB / 0.8139 GB, free: 15.82 MB / 0.5574 GB Notification: Performance of SimCode: time 3.21e-07/0.7751, allocations: 4 kB / 0.8139 GB, free: 15.82 MB / 0.5574 GB Notification: Performance of Templates: time 0.002961/0.7781, allocations: 0.6135 MB / 0.8145 GB, free: 15.23 MB / 0.5574 GB make -j1 -f ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs.makefile (rm -f ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs.pipe ; mkfifo ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs.pipe ; head -c 1048576 < ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs.pipe >> ../files/ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs.sim & ./ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs.pipe 2>&1) diffSimulationResults("ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs_res.mat","/mnt/ReferenceFiles/ExtraLibs/clara_om.git/ReferenceResults/ClaRa.Basics.Functions.TestCases.TestMaxAbs.mat","../files/ClaRa_dev_ClaRa.Basics.Functions.TestCases.TestMaxAbs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches