Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A") translateModel(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A") [: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 3.2.3+maint.om/package.mo): time 0.0009332/0.0009333, allocations: 190.2 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.076/1.076, allocations: 205.2 MB / 213.7 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008445/0.0008445, allocations: 97.28 kB / 261.8 MB, free: 13.46 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3053/0.3053, allocations: 48.75 MB / 358.4 MB, free: 53.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.853e-06/6.873e-06, allocations: 0 / 424.7 MB, free: 8.191 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09664, allocations: 60.25 MB / 485 MB, free: 11.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.346/4.443, allocations: 2.942 GB / 3.416 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/4.443, allocations: 79.2 kB / 3.416 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.051/5.494, allocations: 374.3 MB / 3.781 GB, free: 53.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001747/5.494, allocations: 94.59 kB / 3.781 GB, free: 53.8 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1391 * Number of variables: 1391 Notification: Performance of Generate backend data structure: time 0.02863/5.523, allocations: 9.033 MB / 3.79 GB, free: 52.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/5.523, allocations: 10.69 kB / 3.79 GB, free: 52.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006002/5.529, allocations: 0.8099 MB / 3.791 GB, free: 52.06 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00983/5.539, allocations: 2.982 MB / 3.794 GB, free: 51.61 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003111/5.539, allocations: 172 kB / 3.794 GB, free: 51.61 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003117/5.542, allocations: 317.9 kB / 3.794 GB, free: 51.61 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03646/5.579, allocations: 11.54 MB / 3.806 GB, free: 51.59 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/5.596, allocations: 8.986 MB / 3.814 GB, free: 51.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.396e-05/5.596, allocations: 0 / 3.814 GB, free: 51.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006635/5.597, allocations: 0 / 3.814 GB, free: 51.27 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001173/5.597, allocations: 214.2 kB / 3.815 GB, free: 51.26 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0358/5.633, allocations: 24.93 MB / 3.839 GB, free: 38.25 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004308/5.637, allocations: 2.93 MB / 3.842 GB, free: 37.22 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002903/5.64, allocations: 2.047 MB / 3.844 GB, free: 36.43 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1109/5.751, allocations: 64.07 MB / 3.906 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.137e-05/5.751, allocations: 65.27 kB / 3.906 GB, free: 24.4 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=249): time 7.644e-06/5.751, allocations: 0 / 3.906 GB, free: 24.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=249): time 0.03837/5.79, allocations: 9.808 MB / 3.916 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/5.79, allocations: 81.39 kB / 3.916 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005053/5.795, allocations: 3.333 MB / 3.919 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001233/5.796, allocations: 31.58 kB / 3.919 GB, free: 12.23 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001714/5.798, allocations: 3.105 MB / 3.922 GB, free: 9.078 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002075/5.8, allocations: 0.9758 MB / 3.923 GB, free: 8.09 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001234/5.801, allocations: 0 / 3.923 GB, free: 8.09 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0006389/5.802, allocations: 0.7091 MB / 3.924 GB, free: 7.371 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006068/5.808, allocations: 2.918 MB / 3.927 GB, free: 4.445 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2019/6.01, allocations: 7.911 MB / 3.935 GB, free: 118 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007163/6.017, allocations: 4.631 MB / 3.939 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.219e-05/6.017, allocations: 50.31 kB / 3.939 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1093) (initialization): time 0.02018/6.037, allocations: 11.93 MB / 3.951 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.01323/6.051, allocations: 70.11 MB / 4.019 GB, free: 60.58 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005064/6.051, allocations: 176 kB / 4.019 GB, free: 60.58 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03797/6.089, allocations: 8.101 MB / 4.027 GB, free: 60.55 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005534/6.095, allocations: 1.72 MB / 4.029 GB, free: 60.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01908/6.114, allocations: 8.935 MB / 4.038 GB, free: 59.69 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007364/6.121, allocations: 1.081 MB / 4.039 GB, free: 59.39 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001887/6.123, allocations: 0.5066 MB / 4.039 GB, free: 59.39 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/6.123, allocations: 7.812 kB / 4.039 GB, free: 59.39 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02155/6.145, allocations: 10.63 MB / 4.05 GB, free: 58.39 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007978/6.146, allocations: 176.8 kB / 4.05 GB, free: 58.39 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03696/6.183, allocations: 8.092 MB / 4.058 GB, free: 58.36 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006386/6.189, allocations: 1.71 MB / 4.059 GB, free: 58.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01984/6.209, allocations: 8.938 MB / 4.068 GB, free: 57.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007281/6.216, allocations: 0.7662 MB / 4.069 GB, free: 57.33 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001974/6.218, allocations: 0.5004 MB / 4.069 GB, free: 57.33 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 807 * Number of states: 0 () * Number of discrete variables: 14 (hex.fluidState[12].phase,hex.fluidState[11].phase,hex.fluidState[10].phase,hex.fluidState[9].phase,hex.fluidState[8].phase,hex.fluidState[7].phase,hex.fluidState[6].phase,hex.fluidState[5].phase,hex.fluidState[4].phase,hex.fluidState[3].phase,hex.fluidState[2].phase,hex.fluidState[1].phase,T_out.fluidState.phase,T_in.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (918): * Single equations (assignments): 917 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {13 163} Notification: Performance of prepare postOptimizeDAE: time 0.00288/6.221, allocations: 0.5037 MB / 4.07 GB, free: 56.98 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00306/6.224, allocations: 0.9911 MB / 4.071 GB, free: 56.8 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03855/6.263, allocations: 14.86 MB / 4.085 GB, free: 56.27 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001161/6.263, allocations: 78.05 kB / 4.085 GB, free: 56.26 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.927e-05/6.263, allocations: 0 / 4.085 GB, free: 56.26 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.992e-05/6.263, allocations: 13.89 kB / 4.085 GB, free: 56.26 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0472/6.31, allocations: 18.79 MB / 4.104 GB, free: 52.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-05/6.31, allocations: 0.6562 kB / 4.104 GB, free: 52.36 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/6.312, allocations: 266.9 kB / 4.104 GB, free: 52.34 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03569/6.347, allocations: 7.732 MB / 4.112 GB, free: 51.43 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001326/6.349, allocations: 93.52 kB / 4.112 GB, free: 51.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05547/6.404, allocations: 26.9 MB / 4.138 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/6.404, allocations: 3.906 kB / 4.138 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04801/6.452, allocations: 16.69 MB / 4.154 GB, free: 32.91 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002578/6.455, allocations: 0.8738 MB / 4.155 GB, free: 32.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001473/6.457, allocations: 49.89 kB / 4.155 GB, free: 32.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003415/6.46, allocations: 205 kB / 4.155 GB, free: 31.95 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008143/6.461, allocations: 168.2 kB / 4.156 GB, free: 31.86 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005523/6.461, allocations: 108.5 kB / 4.156 GB, free: 31.78 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.003237/6.465, allocations: 2.106 MB / 4.158 GB, free: 29.97 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01683/6.481, allocations: 2.86 MB / 4.16 GB, free: 27.22 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 13 (hex.p,hex.h[1],hex.h[2],hex.h[3],hex.h[4],hex.h[5],hex.h[6],hex.h[7],hex.h[8],hex.h[9],hex.h[10],hex.h[11],hex.h[12]) * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {13 126} Notification: Performance of Backend phase and start with SimCode phase: time 0.00688/6.488, allocations: 1.594 MB / 4.162 GB, free: 26.02 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02587/6.514, allocations: 15.08 MB / 4.177 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/6.514, allocations: 0 / 4.177 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01114/6.525, allocations: 5.679 MB / 4.182 GB, free: 7.434 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003271/6.529, allocations: 0.5561 MB / 4.183 GB, free: 6.98 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2275/6.756, allocations: 11.59 MB / 4.194 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003652/6.76, allocations: 3.212 MB / 4.197 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of SimCode: time 1.242e-06/6.76, allocations: 0 / 4.197 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of Templates: time 0.1825/6.942, allocations: 135.3 MB / 4.329 GB, free: 102.1 MB / 0.5573 GB make -j1 -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A.makefile (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A.sim & ./ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A.pipe 2>&1)