Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_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.TestWaterFlow1DFV_A,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_A",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_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.001005/0.001005, allocations: 179.4 kB / 8.133 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.068/1.068, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0008201/0.0008201, allocations: 88.06 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3005/0.3005, allocations: 48.75 MB / 358.4 MB, free: 53.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09525/0.3958, allocations: 66.38 MB / 424.8 MB, free: 8.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09734/0.4931, allocations: 60.24 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.41/4.903, allocations: 2.956 GB / 3.43 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/4.903, allocations: 77.47 kB / 3.43 GB, free: 104.2 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: 762 * Number of variables: 762 Notification: Performance of Generate backend data structure: time 1.025/5.929, allocations: 367.8 MB / 3.789 GB, free: 53.91 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/5.929, allocations: 11.31 kB / 3.789 GB, free: 53.91 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005429/5.934, allocations: 0.8408 MB / 3.79 GB, free: 53.77 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005423/5.939, allocations: 1.813 MB / 3.792 GB, free: 53.42 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/5.94, allocations: 91.38 kB / 3.792 GB, free: 53.42 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009742/5.941, allocations: 162.2 kB / 3.792 GB, free: 53.42 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008922/5.95, allocations: 6.067 MB / 3.798 GB, free: 53.4 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006969/5.957, allocations: 4.204 MB / 3.802 GB, free: 53.14 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.286e-05/5.957, allocations: 1.781 kB / 3.802 GB, free: 53.14 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005148/5.957, allocations: 0 / 3.802 GB, free: 53.14 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/5.957, allocations: 164.1 kB / 3.802 GB, free: 53.13 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02209/5.979, allocations: 20.81 MB / 3.822 GB, free: 41.33 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003845/5.983, allocations: 3.536 MB / 3.826 GB, free: 41.17 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001928/5.985, allocations: 1.847 MB / 3.828 GB, free: 41.15 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1156/6.101, allocations: 64.07 MB / 3.89 GB, free: 32.64 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.463e-05/6.101, allocations: 66.12 kB / 3.89 GB, free: 32.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=273): time 5.401e-06/6.101, allocations: 0 / 3.89 GB, free: 32.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=273): time 0.0191/6.12, allocations: 6.742 MB / 3.897 GB, free: 31.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/6.12, allocations: 80.03 kB / 3.897 GB, free: 31.53 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007811/6.121, allocations: 0.4922 MB / 3.897 GB, free: 31.28 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004924/6.121, allocations: 25.7 kB / 3.897 GB, free: 31.25 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003694/6.122, allocations: 0.7466 MB / 3.898 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009839/6.123, allocations: 0.9227 MB / 3.899 GB, free: 29.97 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003139/6.123, allocations: 0 / 3.899 GB, free: 29.97 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002761/6.123, allocations: 449 kB / 3.9 GB, free: 29.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002185/6.126, allocations: 1.618 MB / 3.901 GB, free: 28.99 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002306/6.128, allocations: 1.943 MB / 3.903 GB, free: 28.05 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003426/6.131, allocations: 1.921 MB / 3.905 GB, free: 27.36 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/6.131, allocations: 2.906 kB / 3.905 GB, free: 27.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=321) (initialization): time 0.01111/6.142, allocations: 6.571 MB / 3.911 GB, free: 25.24 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006256/6.143, allocations: 2.268 MB / 3.913 GB, free: 22.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/6.143, allocations: 6.75 kB / 3.913 GB, free: 22.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01207/6.155, allocations: 3.768 MB / 3.917 GB, free: 22.04 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/6.156, allocations: 278.3 kB / 3.917 GB, free: 22.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01305/6.169, allocations: 7.553 MB / 3.925 GB, free: 16.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002316/6.172, allocations: 397.9 kB / 3.925 GB, free: 16.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002844/6.172, allocations: 109.6 kB / 3.925 GB, free: 16.26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/6.172, allocations: 7.75 kB / 3.925 GB, free: 16.26 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007966/6.18, allocations: 5.27 MB / 3.93 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/6.18, allocations: 10.53 kB / 3.93 GB, free: 11.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01127/6.191, allocations: 3.777 MB / 3.934 GB, free: 8.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008811/6.192, allocations: 260.5 kB / 3.934 GB, free: 8.543 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/6.205, allocations: 7.556 MB / 3.942 GB, free: 2.141 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00248/6.207, allocations: 374.5 kB / 3.942 GB, free: 1.844 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004085/6.207, allocations: 104.7 kB / 3.942 GB, free: 1.75 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 22 (hex.fluidState[20].phase,hex.fluidState[19].phase,hex.fluidState[18].phase,hex.fluidState[17].phase,hex.fluidState[16].phase,hex.fluidState[15].phase,hex.fluidState[14].phase,hex.fluidState[13].phase,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 (146): * Single equations (assignments): 145 * 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 {20 156} Notification: Performance of prepare postOptimizeDAE: time 0.0008183/6.208, allocations: 152.1 kB / 3.942 GB, free: 1.613 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003462/6.212, allocations: 1.177 MB / 3.944 GB, free: 0.8594 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.173/6.385, allocations: 13.73 MB / 3.957 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-05/6.385, allocations: 94.86 kB / 3.957 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/6.385, allocations: 17.81 kB / 3.957 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.216e-05/6.385, allocations: 15.77 kB / 3.957 GB, free: 133.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004588/6.39, allocations: 4.792 MB / 3.962 GB, free: 133.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/6.39, allocations: 0 / 3.962 GB, free: 133.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/6.391, allocations: 407 kB / 3.962 GB, free: 133.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009251/6.4, allocations: 2.617 MB / 3.965 GB, free: 133.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002872/6.401, allocations: 77.12 kB / 3.965 GB, free: 133.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0184/6.419, allocations: 12.78 MB / 3.977 GB, free: 132 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/6.419, allocations: 0 / 3.977 GB, free: 132 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02329/6.442, allocations: 15.69 MB / 3.993 GB, free: 131.1 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02632/6.469, allocations: 20.04 MB / 4.012 GB, free: 126.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/6.47, allocations: 0.6774 MB / 4.013 GB, free: 126.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003495/6.47, allocations: 30.55 kB / 4.013 GB, free: 126.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001749/6.472, allocations: 232.8 kB / 4.013 GB, free: 126.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000344/6.472, allocations: 170 kB / 4.013 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002196/6.473, allocations: 97.56 kB / 4.013 GB, free: 126.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0003818/6.473, allocations: 361.1 kB / 4.014 GB, free: 126.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007717/6.481, allocations: 2.664 MB / 4.016 GB, free: 125.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 20 (hex.p,hex.htilde[1],hex.htilde[2],hex.htilde[3],hex.htilde[4],hex.htilde[5],hex.htilde[6],hex.htilde[7],hex.htilde[8],hex.htilde[9],hex.htilde[10],hex.htilde[11],hex.htilde[12],hex.htilde[13],hex.htilde[14],hex.htilde[15],hex.htilde[16],hex.htilde[17],hex.htilde[18],hex.htilde[19]) * Number of discrete variables: 44 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.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,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (240): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 22 * 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: 1 {(20,57.2%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004228/6.485, allocations: 1.612 MB / 4.018 GB, free: 125.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01222/6.497, allocations: 9.985 MB / 4.028 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/6.497, allocations: 0 / 4.028 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006441/6.504, allocations: 6.445 MB / 4.034 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/6.507, allocations: 0.6145 MB / 4.034 GB, free: 119.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/6.518, allocations: 9.641 MB / 4.044 GB, free: 115.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002176/6.52, allocations: 2.607 MB / 4.046 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of SimCode: time 7.41e-07/6.52, allocations: 3.781 kB / 4.046 GB, free: 114.9 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_A_fmu --startTime=0 --stopTime=80 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_A.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A.pipe 2>&1)