Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_C.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_C,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_C",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_C,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_C",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.0009117/0.0009117, allocations: 184 kB / 8.138 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.9906/0.9906, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.0008184/0.0008184, allocations: 81.72 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2698/0.2698, allocations: 48.75 MB / 358.5 MB, free: 53.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08575/0.3556, allocations: 66.37 MB / 424.8 MB, free: 8.102 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08532/0.4409, allocations: 60.25 MB / 485.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.833/4.274, allocations: 2.942 GB / 3.415 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001524/4.274, allocations: 82.33 kB / 3.416 GB, free: 113.7 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: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 1.015/5.29, allocations: 382 MB / 3.789 GB, free: 50.97 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/5.29, allocations: 11.59 kB / 3.789 GB, free: 50.96 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004779/5.295, allocations: 0.7999 MB / 3.789 GB, free: 50.73 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007553/5.302, allocations: 2.893 MB / 3.792 GB, free: 50.25 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/5.302, allocations: 168 kB / 3.792 GB, free: 50.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001028/5.303, allocations: 313.6 kB / 3.793 GB, free: 50.24 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02689/5.33, allocations: 11.41 MB / 3.804 GB, free: 50.21 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0103/5.34, allocations: 8.855 MB / 3.813 GB, free: 49.9 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-05/5.341, allocations: 0 / 3.813 GB, free: 49.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006253/5.341, allocations: 7.188 kB / 3.813 GB, free: 49.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001188/5.341, allocations: 215 kB / 3.813 GB, free: 49.89 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02479/5.366, allocations: 24.61 MB / 3.837 GB, free: 38.25 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003484/5.37, allocations: 2.829 MB / 3.84 GB, free: 38.18 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002257/5.372, allocations: 1.953 MB / 3.841 GB, free: 38.17 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1093/5.481, allocations: 64.06 MB / 3.904 GB, free: 28.78 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.194e-05/5.481, allocations: 68.92 kB / 3.904 GB, free: 28.73 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=245): time 3.817e-06/5.481, allocations: 0 / 3.904 GB, free: 28.73 MB / 0.5417 GB Notification: Performance of matching and sorting (n=245): time 0.02817/5.51, allocations: 8.755 MB / 3.913 GB, free: 24.57 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/5.51, allocations: 73.41 kB / 3.913 GB, free: 24.48 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003586/5.513, allocations: 3.357 MB / 3.916 GB, free: 22.26 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0007448/5.514, allocations: 29.7 kB / 3.916 GB, free: 22.23 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001145/5.515, allocations: 3.086 MB / 3.919 GB, free: 19.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001036/5.516, allocations: 0.9725 MB / 3.92 GB, free: 19.06 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003359/5.517, allocations: 0 / 3.92 GB, free: 19.06 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000341/5.517, allocations: 0.7137 MB / 3.921 GB, free: 18.44 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003286/5.52, allocations: 2.857 MB / 3.923 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004908/5.525, allocations: 7.933 MB / 3.931 GB, free: 5.875 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006605/5.532, allocations: 4.588 MB / 3.936 GB, free: 2.082 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.038e-05/5.532, allocations: 56 kB / 3.936 GB, free: 2.027 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.1603/5.692, allocations: 11.72 MB / 3.947 GB, free: 120.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.01133/5.703, allocations: 71.23 MB / 4.017 GB, free: 46.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004575/5.704, allocations: 183.1 kB / 4.017 GB, free: 46.42 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03099/5.735, allocations: 6.961 MB / 4.024 GB, free: 46.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005094/5.74, allocations: 1.767 MB / 4.025 GB, free: 46.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01327/5.753, allocations: 8.02 MB / 4.033 GB, free: 45.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006338/5.76, allocations: 1.079 MB / 4.034 GB, free: 45.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009291/5.761, allocations: 0.509 MB / 4.035 GB, free: 45.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.758e-06/5.761, allocations: 3.344 kB / 4.035 GB, free: 45.46 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01471/5.775, allocations: 10.42 MB / 4.045 GB, free: 44.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004531/5.776, allocations: 180.6 kB / 4.045 GB, free: 44.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02936/5.805, allocations: 6.969 MB / 4.052 GB, free: 44.77 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004873/5.81, allocations: 1.75 MB / 4.054 GB, free: 44.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/5.823, allocations: 8.03 MB / 4.062 GB, free: 43.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005673/5.829, allocations: 0.7572 MB / 4.062 GB, free: 43.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006758/5.829, allocations: 0.5067 MB / 4.063 GB, free: 43.6 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 820 * 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 (949): * Single equations (assignments): 948 * 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 141} Notification: Performance of prepare postOptimizeDAE: time 0.001374/5.831, allocations: 0.5199 MB / 4.063 GB, free: 43.21 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002384/5.833, allocations: 0.9907 MB / 4.064 GB, free: 43.03 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02852/5.862, allocations: 13.78 MB / 4.078 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.288e-05/5.862, allocations: 71.42 kB / 4.078 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/5.862, allocations: 0 / 4.078 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.515e-05/5.862, allocations: 12.84 kB / 4.078 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03391/5.896, allocations: 17.59 MB / 4.095 GB, free: 41.65 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.584e-05/5.896, allocations: 4.031 kB / 4.095 GB, free: 41.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/5.897, allocations: 272.1 kB / 4.095 GB, free: 41.63 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02788/5.925, allocations: 6.44 MB / 4.101 GB, free: 41.23 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008471/5.926, allocations: 101.4 kB / 4.102 GB, free: 41.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04105/5.967, allocations: 24.2 MB / 4.125 GB, free: 34.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/5.967, allocations: 7.703 kB / 4.125 GB, free: 34.51 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03674/6.004, allocations: 15.51 MB / 4.14 GB, free: 29.45 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03886/6.043, allocations: 19.43 MB / 4.159 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0023/6.045, allocations: 0.8459 MB / 4.16 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001067/6.046, allocations: 47.55 kB / 4.16 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002892/6.049, allocations: 183.8 kB / 4.16 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005387/6.05, allocations: 172.8 kB / 4.161 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003633/6.05, allocations: 104.5 kB / 4.161 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002767/6.053, allocations: 2.118 MB / 4.163 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01499/6.068, allocations: 2.992 MB / 4.166 GB, free: 7.414 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 (166): * Single equations (assignments): 151 * 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 106} Notification: Performance of Backend phase and start with SimCode phase: time 0.006651/6.074, allocations: 1.589 MB / 4.167 GB, free: 6.223 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.1732/6.248, allocations: 14.56 MB / 4.181 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/6.248, allocations: 0 / 4.181 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007591/6.255, allocations: 5.354 MB / 4.187 GB, free: 115 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002348/6.258, allocations: 0.5537 MB / 4.187 GB, free: 115 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/6.272, allocations: 11.03 MB / 4.198 GB, free: 113.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002601/6.275, allocations: 3.236 MB / 4.201 GB, free: 112.8 MB / 0.5417 GB Notification: Performance of SimCode: time 5.81e-07/6.275, allocations: 0 / 4.201 GB, free: 112.8 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_C.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_C.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_C.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_C.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_C_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_C.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_C.pipe 2>&1)