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: "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_A",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_A",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.001068/0.001068, allocations: 182.9 kB / 8.135 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.9985/0.9985, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.000795/0.000795, allocations: 95.31 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2811/0.2811, allocations: 48.75 MB / 358.4 MB, free: 53.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09173/0.3729, allocations: 66.37 MB / 424.8 MB, free: 8.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08807/0.4609, allocations: 60.26 MB / 485.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.785/4.246, allocations: 2.942 GB / 3.416 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/4.247, allocations: 80.84 kB / 3.416 GB, free: 114.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: 1391 * Number of variables: 1391 Notification: Performance of Generate backend data structure: time 0.9982/5.245, allocations: 383.5 MB / 3.79 GB, free: 51.02 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.329e-05/5.245, allocations: 13.84 kB / 3.79 GB, free: 51.02 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005149/5.25, allocations: 0.8116 MB / 3.791 GB, free: 50.78 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008685/5.259, allocations: 2.976 MB / 3.794 GB, free: 50.33 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002195/5.259, allocations: 172.3 kB / 3.794 GB, free: 50.33 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002073/5.261, allocations: 316.9 kB / 3.794 GB, free: 50.33 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03309/5.294, allocations: 11.54 MB / 3.806 GB, free: 50.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01558/5.31, allocations: 8.978 MB / 3.814 GB, free: 49.99 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001281/5.31, allocations: 1.875 kB / 3.814 GB, free: 49.99 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001003/5.311, allocations: 3.812 kB / 3.814 GB, free: 49.99 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001209/5.311, allocations: 206.7 kB / 3.815 GB, free: 49.98 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02789/5.339, allocations: 24.93 MB / 3.839 GB, free: 38.45 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003983/5.343, allocations: 2.927 MB / 3.842 GB, free: 38.41 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002538/5.346, allocations: 2.047 MB / 3.844 GB, free: 38.39 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1102/5.456, allocations: 64.07 MB / 3.906 GB, free: 29.87 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/5.456, allocations: 57.09 kB / 3.906 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=249): time 4.819e-06/5.456, allocations: 0 / 3.906 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of matching and sorting (n=249): time 0.03541/5.491, allocations: 9.816 MB / 3.916 GB, free: 26.79 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/5.491, allocations: 77.41 kB / 3.916 GB, free: 26.71 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003853/5.495, allocations: 3.34 MB / 3.919 GB, free: 23.79 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003547/5.496, allocations: 29.7 kB / 3.919 GB, free: 23.75 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001071/5.497, allocations: 3.102 MB / 3.922 GB, free: 20.93 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007566/5.497, allocations: 0.9718 MB / 3.923 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003331/5.498, allocations: 0 / 3.923 GB, free: 20.07 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000305/5.498, allocations: 0.7158 MB / 3.924 GB, free: 19.46 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003207/5.501, allocations: 2.914 MB / 3.927 GB, free: 16.82 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004905/5.506, allocations: 7.909 MB / 3.935 GB, free: 6.902 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006079/5.512, allocations: 4.636 MB / 3.939 GB, free: 3.062 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.269e-05/5.512, allocations: 52 kB / 3.939 GB, free: 3.012 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1093) (initialization): time 0.1519/5.664, allocations: 12.31 MB / 3.951 GB, free: 119.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.009224/5.674, allocations: 70.11 MB / 4.02 GB, free: 46.35 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002913/5.674, allocations: 175.3 kB / 4.02 GB, free: 46.35 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03645/5.71, allocations: 8.104 MB / 4.028 GB, free: 46.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004652/5.715, allocations: 1.717 MB / 4.029 GB, free: 46.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01459/5.73, allocations: 8.934 MB / 4.038 GB, free: 45.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005798/5.735, allocations: 1.088 MB / 4.039 GB, free: 45.37 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008959/5.736, allocations: 0.5069 MB / 4.04 GB, free: 45.37 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.204e-06/5.736, allocations: 3.812 kB / 4.04 GB, free: 45.37 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0147/5.751, allocations: 10.63 MB / 4.05 GB, free: 44.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003769/5.751, allocations: 181.4 kB / 4.05 GB, free: 44.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03486/5.786, allocations: 8.091 MB / 4.058 GB, free: 44.81 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004487/5.791, allocations: 1.708 MB / 4.06 GB, free: 44.65 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01513/5.806, allocations: 8.94 MB / 4.069 GB, free: 43.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005608/5.812, allocations: 0.7631 MB / 4.069 GB, free: 43.63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001017/5.813, allocations: 0.5015 MB / 4.07 GB, free: 43.63 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 (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.001567/5.814, allocations: 0.5071 MB / 4.07 GB, free: 43.25 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002415/5.817, allocations: 0.9897 MB / 4.071 GB, free: 43.06 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03369/5.85, allocations: 14.86 MB / 4.086 GB, free: 42.54 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-05/5.85, allocations: 67.97 kB / 4.086 GB, free: 42.53 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/5.85, allocations: 3.844 kB / 4.086 GB, free: 42.53 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.66e-05/5.85, allocations: 14.34 kB / 4.086 GB, free: 42.53 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03902/5.889, allocations: 18.79 MB / 4.104 GB, free: 41.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/5.89, allocations: 2.812 kB / 4.104 GB, free: 41.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/5.891, allocations: 268.8 kB / 4.105 GB, free: 41.85 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03437/5.925, allocations: 7.727 MB / 4.112 GB, free: 41.7 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007603/5.926, allocations: 97.23 kB / 4.112 GB, free: 41.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04877/5.975, allocations: 26.89 MB / 4.138 GB, free: 32.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/5.975, allocations: 4.219 kB / 4.138 GB, free: 32.39 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04032/6.015, allocations: 16.7 MB / 4.155 GB, free: 25.65 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04198/6.057, allocations: 20.76 MB / 4.175 GB, free: 8.539 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/6.059, allocations: 0.8696 MB / 4.176 GB, free: 7.758 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007564/6.06, allocations: 45.5 kB / 4.176 GB, free: 7.727 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002544/6.062, allocations: 205.2 kB / 4.176 GB, free: 7.582 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004228/6.063, allocations: 166.4 kB / 4.176 GB, free: 7.496 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003007/6.063, allocations: 106.9 kB / 4.176 GB, free: 7.418 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002377/6.065, allocations: 2.108 MB / 4.178 GB, free: 5.609 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01303/6.078, allocations: 3.059 MB / 4.181 GB, free: 2.656 MB / 0.5417 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.00558/6.084, allocations: 1.588 MB / 4.183 GB, free: 1.461 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.1661/6.25, allocations: 15.69 MB / 4.198 GB, free: 114.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/6.25, allocations: 3.781 kB / 4.198 GB, free: 114.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009334/6.259, allocations: 5.677 MB / 4.204 GB, free: 114.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/6.262, allocations: 0.5613 MB / 4.204 GB, free: 114.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01759/6.28, allocations: 11.22 MB / 4.215 GB, free: 112.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002874/6.283, allocations: 3.283 MB / 4.219 GB, free: 112.1 MB / 0.5417 GB Notification: Performance of SimCode: time 6.11e-07/6.283, allocations: 0 / 4.219 GB, free: 112.1 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_A_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_A.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_A.pipe 2>&1)