Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_D.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_D,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_D,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_D",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.0009798/0.0009799, allocations: 182 kB / 8.129 MB, free: 2.219 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.02/1.02, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0007395/0.0007395, allocations: 93.33 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.2761/0.2761, allocations: 48.76 MB / 358.4 MB, free: 53.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08547/0.3616, allocations: 66.38 MB / 424.8 MB, free: 8.121 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08829/0.4499, allocations: 60.24 MB / 485.1 MB, free: 11.74 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.828/4.278, allocations: 2.936 GB / 3.41 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/4.279, allocations: 74.59 kB / 3.41 GB, free: 108.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: 1341 * Number of variables: 1341 Notification: Performance of Generate backend data structure: time 0.7585/5.037, allocations: 311.6 MB / 3.714 GB, free: 11.06 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/5.037, allocations: 16 kB / 3.714 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004572/5.042, allocations: 0.7794 MB / 3.715 GB, free: 10.26 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007816/5.05, allocations: 2.856 MB / 3.718 GB, free: 7.359 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/5.05, allocations: 168 kB / 3.718 GB, free: 7.195 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001847/5.052, allocations: 308 kB / 3.718 GB, free: 6.895 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1608/5.212, allocations: 11.34 MB / 3.729 GB, free: 90.06 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/5.223, allocations: 8.78 MB / 3.738 GB, free: 89.77 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.778e-05/5.224, allocations: 0 / 3.738 GB, free: 89.77 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006256/5.224, allocations: 6.938 kB / 3.738 GB, free: 89.77 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/5.224, allocations: 202.6 kB / 3.738 GB, free: 89.75 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02619/5.25, allocations: 25.41 MB / 3.763 GB, free: 78.99 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002743/5.253, allocations: 2.77 MB / 3.766 GB, free: 78.93 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001922/5.255, allocations: 1.929 MB / 3.768 GB, free: 78.92 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1023/5.357, allocations: 64.05 MB / 3.83 GB, free: 39.98 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.492e-05/5.358, allocations: 61.94 kB / 3.83 GB, free: 39.94 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=240): time 4.649e-06/5.358, allocations: 0 / 3.83 GB, free: 39.94 MB / 0.5105 GB Notification: Performance of matching and sorting (n=240): time 0.02932/5.387, allocations: 8.687 MB / 3.839 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/5.387, allocations: 78.22 kB / 3.839 GB, free: 39.35 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003452/5.39, allocations: 3.352 MB / 3.842 GB, free: 39 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005183/5.391, allocations: 25.7 kB / 3.842 GB, free: 38.97 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001077/5.392, allocations: 3.064 MB / 3.845 GB, free: 37.02 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007137/5.393, allocations: 0.9499 MB / 3.846 GB, free: 36.49 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003211/5.393, allocations: 0 / 3.846 GB, free: 36.49 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002788/5.393, allocations: 0.712 MB / 3.847 GB, free: 36.16 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003193/5.397, allocations: 2.84 MB / 3.849 GB, free: 36.13 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004506/5.401, allocations: 7.909 MB / 3.857 GB, free: 29.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005071/5.406, allocations: 4.576 MB / 3.862 GB, free: 29.12 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-05/5.406, allocations: 54.53 kB / 3.862 GB, free: 29.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1097) (initialization): time 0.01951/5.426, allocations: 12.23 MB / 3.874 GB, free: 28.24 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.1459/5.572, allocations: 71.24 MB / 3.943 GB, free: 50.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003291/5.572, allocations: 179.7 kB / 3.943 GB, free: 50.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03072/5.603, allocations: 6.926 MB / 3.95 GB, free: 50.42 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004918/5.608, allocations: 1.747 MB / 3.952 GB, free: 50.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01294/5.621, allocations: 8.047 MB / 3.96 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005956/5.627, allocations: 1.066 MB / 3.961 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007518/5.627, allocations: 0.5062 MB / 3.961 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.357e-06/5.627, allocations: 6.656 kB / 3.961 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01696/5.644, allocations: 10.99 MB / 3.972 GB, free: 49.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003549/5.645, allocations: 176.2 kB / 3.972 GB, free: 49.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02991/5.675, allocations: 6.932 MB / 3.979 GB, free: 49.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00478/5.68, allocations: 1.735 MB / 3.981 GB, free: 49.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01267/5.692, allocations: 8.05 MB / 3.988 GB, free: 48.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005932/5.698, allocations: 0.7385 MB / 3.989 GB, free: 48.06 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001632/5.7, allocations: 0.5033 MB / 3.99 GB, free: 48.06 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 820 * Number of states: 0 () * Number of discrete variables: 12 (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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (943): * Single equations (assignments): 942 * 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 142} Notification: Performance of prepare postOptimizeDAE: time 0.001687/5.702, allocations: 0.5137 MB / 3.99 GB, free: 47.68 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002285/5.704, allocations: 0.9442 MB / 3.991 GB, free: 47.49 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02826/5.732, allocations: 13.21 MB / 4.004 GB, free: 47 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.878e-05/5.732, allocations: 64.42 kB / 4.004 GB, free: 47 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/5.732, allocations: 3.906 kB / 4.004 GB, free: 47 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.926e-05/5.732, allocations: 14.62 kB / 4.004 GB, free: 47 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03341/5.766, allocations: 16.94 MB / 4.021 GB, free: 46.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/5.766, allocations: 0 / 4.021 GB, free: 46.35 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/5.767, allocations: 260.9 kB / 4.021 GB, free: 46.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02706/5.794, allocations: 6.48 MB / 4.027 GB, free: 46.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005346/5.795, allocations: 94.14 kB / 4.027 GB, free: 46.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04345/5.838, allocations: 25.4 MB / 4.052 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/5.838, allocations: 3.906 kB / 4.052 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03476/5.873, allocations: 15.04 MB / 4.067 GB, free: 34.5 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1755/6.049, allocations: 18.87 MB / 4.085 GB, free: 91.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001604/6.05, allocations: 0.833 MB / 4.086 GB, free: 91.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006228/6.051, allocations: 44.33 kB / 4.086 GB, free: 91.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002238/6.053, allocations: 171.9 kB / 4.086 GB, free: 91.16 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003941/6.053, allocations: 160 kB / 4.086 GB, free: 91.15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000269/6.054, allocations: 100.3 kB / 4.086 GB, free: 91.15 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002128/6.056, allocations: 2.113 MB / 4.088 GB, free: 91.01 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01381/6.07, allocations: 2.931 MB / 4.091 GB, free: 90.9 MB / 0.5261 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: 24 ($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,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (158): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {13 106} Notification: Performance of Backend phase and start with SimCode phase: time 0.005243/6.075, allocations: 1.447 MB / 4.093 GB, free: 90.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02071/6.096, allocations: 14.33 MB / 4.107 GB, free: 90.52 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/6.096, allocations: 0 / 4.107 GB, free: 90.52 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007308/6.103, allocations: 5.201 MB / 4.112 GB, free: 90.22 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002367/6.105, allocations: 0.5431 MB / 4.112 GB, free: 90.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/6.12, allocations: 10.72 MB / 4.123 GB, free: 88.89 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002488/6.122, allocations: 3.178 MB / 4.126 GB, free: 88.09 MB / 0.5261 GB Notification: Performance of SimCode: time 1.272e-06/6.122, allocations: 0 / 4.126 GB, free: 88.09 MB / 0.5261 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_D.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_D.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_D.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_D_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_D.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_D.pipe 2>&1)