Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_B.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: "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_B,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_B",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_B,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_B",fmuType="me",version="2.0",platforms={"static"}) [: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.0009511/0.0009511, allocations: 183.8 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.994/0.994, allocations: 205.2 MB / 213.7 MB, free: 13.95 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.0007574/0.0007574, allocations: 93.61 kB / 261.8 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2759/0.2759, allocations: 48.76 MB / 358.4 MB, free: 53.22 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08771/0.3637, allocations: 66.36 MB / 424.8 MB, free: 8.129 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.4518, allocations: 60.26 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.835/4.286, allocations: 2.942 GB / 3.416 GB, free: 115.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/4.287, allocations: 79.2 kB / 3.416 GB, free: 115.6 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: 1387 * Number of variables: 1387 Notification: Performance of Generate backend data structure: time 1.028/5.314, allocations: 383.2 MB / 3.79 GB, free: 50.91 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/5.315, allocations: 11.56 kB / 3.79 GB, free: 50.91 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004524/5.319, allocations: 0.8032 MB / 3.791 GB, free: 50.68 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008048/5.327, allocations: 2.936 MB / 3.794 GB, free: 50.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/5.327, allocations: 180.1 kB / 3.794 GB, free: 50.19 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001849/5.329, allocations: 317.9 kB / 3.794 GB, free: 50.19 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03318/5.362, allocations: 11.53 MB / 3.805 GB, free: 50.17 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01807/5.38, allocations: 8.985 MB / 3.814 GB, free: 49.85 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002092/5.381, allocations: 0 / 3.814 GB, free: 49.85 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001888/5.383, allocations: 2.875 kB / 3.814 GB, free: 49.85 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/5.383, allocations: 221.2 kB / 3.814 GB, free: 49.84 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03692/5.42, allocations: 25.29 MB / 3.839 GB, free: 37.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005235/5.425, allocations: 3.133 MB / 3.842 GB, free: 37.75 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00316/5.428, allocations: 2.148 MB / 3.844 GB, free: 37.72 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1125/5.541, allocations: 64.07 MB / 3.907 GB, free: 28.32 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.951e-05/5.541, allocations: 72.39 kB / 3.907 GB, free: 28.28 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=257): time 8.617e-06/5.541, allocations: 0 / 3.907 GB, free: 28.28 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257): time 0.03641/5.577, allocations: 10 MB / 3.917 GB, free: 23.49 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/5.577, allocations: 77.44 kB / 3.917 GB, free: 23.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00431/5.582, allocations: 3.324 MB / 3.92 GB, free: 21.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0005333/5.582, allocations: 29.7 kB / 3.92 GB, free: 21.17 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001336/5.584, allocations: 3.083 MB / 3.923 GB, free: 18.37 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001047/5.585, allocations: 1.003 MB / 3.924 GB, free: 17.49 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005633/5.585, allocations: 0 / 3.924 GB, free: 17.49 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0004073/5.586, allocations: 0.7176 MB / 3.925 GB, free: 16.87 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003484/5.589, allocations: 2.998 MB / 3.928 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005547/5.595, allocations: 8.003 MB / 3.935 GB, free: 4.152 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006917/5.602, allocations: 4.731 MB / 3.94 GB, free: 240 kB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.077e-05/5.602, allocations: 56 kB / 3.94 GB, free: 184 kB / 0.5417 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.1706/5.772, allocations: 14.61 MB / 3.954 GB, free: 121.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.009876/5.782, allocations: 70.11 MB / 4.023 GB, free: 48.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003528/5.783, allocations: 178 kB / 4.023 GB, free: 48.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04062/5.823, allocations: 9.072 MB / 4.032 GB, free: 48.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004482/5.828, allocations: 1.684 MB / 4.033 GB, free: 48.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01646/5.844, allocations: 9.766 MB / 4.043 GB, free: 48.01 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006135/5.85, allocations: 1.074 MB / 4.044 GB, free: 47.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006623/5.851, allocations: 0.5105 MB / 4.045 GB, free: 47.68 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.343e-06/5.851, allocations: 3.531 kB / 4.045 GB, free: 47.68 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0255/5.876, allocations: 13.03 MB / 4.057 GB, free: 46.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003104/5.877, allocations: 177.8 kB / 4.057 GB, free: 46.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03965/5.916, allocations: 9.065 MB / 4.066 GB, free: 46.54 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004463/5.921, allocations: 1.671 MB / 4.068 GB, free: 46.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/5.938, allocations: 9.78 MB / 4.077 GB, free: 45.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005667/5.943, allocations: 0.7558 MB / 4.078 GB, free: 45.22 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006259/5.944, allocations: 0.5007 MB / 4.079 GB, free: 45.22 MB / 0.5417 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 (903): * Single equations (assignments): 902 * 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 187} Notification: Performance of prepare postOptimizeDAE: time 0.001292/5.945, allocations: 0.5045 MB / 4.079 GB, free: 44.84 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002229/5.947, allocations: 0.9855 MB / 4.08 GB, free: 44.65 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03319/5.981, allocations: 15.06 MB / 4.095 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.975e-05/5.981, allocations: 74.3 kB / 4.095 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/5.981, allocations: 3.531 kB / 4.095 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.074e-05/5.981, allocations: 11.53 kB / 4.095 GB, free: 43.89 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03988/6.021, allocations: 19.13 MB / 4.114 GB, free: 42.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.217e-05/6.021, allocations: 2.969 kB / 4.114 GB, free: 42.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/6.022, allocations: 259.5 kB / 4.114 GB, free: 42.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03527/6.057, allocations: 7.752 MB / 4.121 GB, free: 41.91 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008706/6.058, allocations: 99.56 kB / 4.122 GB, free: 41.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0528/6.111, allocations: 27.36 MB / 4.148 GB, free: 28.87 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/6.111, allocations: 4 kB / 4.148 GB, free: 28.86 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04184/6.153, allocations: 17.25 MB / 4.165 GB, free: 14.94 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2074/6.36, allocations: 22.51 MB / 4.187 GB, free: 111.6 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002108/6.363, allocations: 0.8826 MB / 4.188 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006573/6.363, allocations: 53.45 kB / 4.188 GB, free: 111.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002551/6.366, allocations: 188.4 kB / 4.188 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004281/6.366, allocations: 178.1 kB / 4.188 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002907/6.367, allocations: 104.4 kB / 4.188 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002099/6.369, allocations: 2.107 MB / 4.19 GB, free: 111.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01333/6.382, allocations: 3.063 MB / 4.193 GB, free: 111.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (155): * Single equations (assignments): 140 * 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.005164/6.387, allocations: 1.592 MB / 4.195 GB, free: 111 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02428/6.411, allocations: 15.45 MB / 4.21 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/6.411, allocations: 0 / 4.21 GB, free: 110.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009316/6.421, allocations: 5.804 MB / 4.216 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/6.423, allocations: 0.5595 MB / 4.216 GB, free: 110.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/6.439, allocations: 11.44 MB / 4.227 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002494/6.442, allocations: 3.257 MB / 4.231 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of SimCode: time 6.91e-07/6.442, allocations: 0 / 4.231 GB, free: 108.4 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_B.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_B.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_B.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_B.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_B_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_B.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_B.pipe 2>&1)