Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.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_E,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_E",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_E",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.001014/0.001014, allocations: 183.1 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 1.017/1.017, 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.0008387/0.0008387, allocations: 84.09 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.2803/0.2803, allocations: 48.75 MB / 358.4 MB, free: 53.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09147/0.3718, allocations: 66.37 MB / 424.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/0.4644, allocations: 60.26 MB / 485.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.826/4.291, allocations: 2.942 GB / 3.416 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/4.291, allocations: 82.23 kB / 3.416 GB, free: 112.1 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: 2772 * Number of variables: 2772 Notification: Performance of Generate backend data structure: time 1.711/6.001, allocations: 0.6712 GB / 4.087 GB, free: 31.95 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/6.001, allocations: 8.219 kB / 4.087 GB, free: 31.95 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01107/6.013, allocations: 1.601 MB / 4.089 GB, free: 31.49 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01844/6.031, allocations: 5.68 MB / 4.095 GB, free: 30.44 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005339/6.032, allocations: 346.3 kB / 4.095 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00547/6.037, allocations: 0.6153 MB / 4.095 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06757/6.105, allocations: 23.03 MB / 4.118 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03117/6.136, allocations: 17.93 MB / 4.135 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001767/6.136, allocations: 3.938 kB / 4.135 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001508/6.138, allocations: 4 kB / 4.135 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003178/6.138, allocations: 417.6 kB / 4.136 GB, free: 13.65 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2335/6.371, allocations: 50.02 MB / 4.185 GB, free: 68.63 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007913/6.379, allocations: 6.133 MB / 4.191 GB, free: 68.55 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00503/6.384, allocations: 4.227 MB / 4.195 GB, free: 68.53 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1062/6.491, allocations: 64.12 MB / 4.257 GB, free: 45.16 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001075/6.491, allocations: 91.25 kB / 4.258 GB, free: 45.12 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=501): time 1.033e-05/6.491, allocations: 0 / 4.258 GB, free: 45.12 MB / 0.5573 GB Notification: Performance of matching and sorting (n=501): time 0.06668/6.557, allocations: 19.84 MB / 4.277 GB, free: 44.04 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/6.558, allocations: 103.3 kB / 4.277 GB, free: 43.98 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007884/6.565, allocations: 6.533 MB / 4.283 GB, free: 43.36 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001871/6.567, allocations: 29.48 kB / 4.283 GB, free: 43.33 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002602/6.57, allocations: 6.096 MB / 4.289 GB, free: 39.32 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002982/6.573, allocations: 1.953 MB / 4.291 GB, free: 38.21 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008937/6.574, allocations: 4.75 kB / 4.291 GB, free: 38.21 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0006608/6.575, allocations: 1.061 MB / 4.292 GB, free: 37.87 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007281/6.582, allocations: 5.939 MB / 4.298 GB, free: 37.83 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01085/6.593, allocations: 15.95 MB / 4.314 GB, free: 24.61 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01445/6.607, allocations: 9.396 MB / 4.323 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002772/6.607, allocations: 101.5 kB / 4.323 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2191) (initialization): time 0.04777/6.655, allocations: 24.62 MB / 4.347 GB, free: 21.59 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.1942/6.849, allocations: 140.3 MB / 4.484 GB, free: 34 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007856/6.85, allocations: 357.4 kB / 4.484 GB, free: 34 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08294/6.933, allocations: 18.03 MB / 4.502 GB, free: 33.92 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00928/6.943, allocations: 3.356 MB / 4.505 GB, free: 33.92 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03428/6.977, allocations: 18.78 MB / 4.524 GB, free: 33.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01334/6.99, allocations: 2.145 MB / 4.526 GB, free: 32.15 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003281/6.994, allocations: 1.011 MB / 4.527 GB, free: 32.15 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/6.994, allocations: 3.906 kB / 4.527 GB, free: 32.15 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03824/7.032, allocations: 22.08 MB / 4.548 GB, free: 30.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009895/7.033, allocations: 354.3 kB / 4.549 GB, free: 30.59 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08094/7.114, allocations: 18.02 MB / 4.566 GB, free: 30.11 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008961/7.123, allocations: 3.332 MB / 4.569 GB, free: 29.79 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03434/7.157, allocations: 18.77 MB / 4.588 GB, free: 28.72 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01295/7.17, allocations: 1.507 MB / 4.589 GB, free: 28.02 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003508/7.174, allocations: 0.9985 MB / 4.59 GB, free: 28.02 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1613 * Number of states: 0 () * Number of discrete variables: 28 (hexB.fluidState[12].phase,hexB.fluidState[11].phase,hexB.fluidState[10].phase,hexB.fluidState[9].phase,hexB.fluidState[8].phase,hexB.fluidState[7].phase,hexB.fluidState[6].phase,hexB.fluidState[5].phase,hexB.fluidState[4].phase,hexB.fluidState[3].phase,hexB.fluidState[2].phase,hexB.fluidState[1].phase,hexA.fluidState[12].phase,hexA.fluidState[11].phase,hexA.fluidState[10].phase,hexA.fluidState[9].phase,hexA.fluidState[8].phase,hexA.fluidState[7].phase,hexA.fluidState[6].phase,hexA.fluidState[5].phase,hexA.fluidState[4].phase,hexA.fluidState[3].phase,hexA.fluidState[2].phase,hexA.fluidState[1].phase,SensT_B_out.fluidState.phase,SensT_A_out.fluidState.phase,SensT_B_in.fluidState.phase,SensT_A_in.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1804): * Single equations (assignments): 1803 * 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 {26 362} Notification: Performance of prepare postOptimizeDAE: time 0.004289/7.178, allocations: 0.9119 MB / 4.591 GB, free: 27.37 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004914/7.183, allocations: 1.97 MB / 4.593 GB, free: 27 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07207/7.255, allocations: 29.96 MB / 4.622 GB, free: 24.05 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001504/7.255, allocations: 135.2 kB / 4.622 GB, free: 24.02 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/7.255, allocations: 1.312 kB / 4.622 GB, free: 24.02 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001161/7.255, allocations: 28.97 kB / 4.622 GB, free: 24.02 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2555/7.511, allocations: 37.87 MB / 4.659 GB, free: 149.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-05/7.511, allocations: 7.281 kB / 4.659 GB, free: 149.6 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00256/7.513, allocations: 494.7 kB / 4.66 GB, free: 149.6 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06818/7.582, allocations: 15.49 MB / 4.675 GB, free: 149.5 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001787/7.583, allocations: 197.4 kB / 4.675 GB, free: 149.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09546/7.679, allocations: 54.64 MB / 4.729 GB, free: 146 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/7.679, allocations: 5.344 kB / 4.729 GB, free: 146 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08159/7.761, allocations: 34.46 MB / 4.762 GB, free: 144 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09311/7.854, allocations: 42.38 MB / 4.804 GB, free: 130.4 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00395/7.858, allocations: 1.679 MB / 4.805 GB, free: 129.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001992/7.86, allocations: 95.64 kB / 4.805 GB, free: 129.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005741/7.865, allocations: 383.4 kB / 4.806 GB, free: 129.5 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00098/7.866, allocations: 339 kB / 4.806 GB, free: 129.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006349/7.867, allocations: 211 kB / 4.806 GB, free: 129.5 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.004978/7.872, allocations: 4.114 MB / 4.81 GB, free: 128.3 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.03207/7.904, allocations: 5.212 MB / 4.815 GB, free: 126.9 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 26 (hexA.p,hexA.h[1],hexA.h[2],hexA.h[3],hexA.h[4],hexA.h[5],hexA.h[6],hexA.h[7],hexA.h[8],hexA.h[9],hexA.h[10],hexA.h[11],hexA.h[12],hexB.p,hexB.h[1],hexB.h[2],hexB.h[3],hexB.h[4],hexB.h[5],hexB.h[6],hexB.h[7],hexB.h[8],hexB.h[9],hexB.h[10],hexB.h[11],hexB.h[12]) * Number of discrete variables: 56 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.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,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse55.phase,$cse55.region,$cse56.phase,$cse56.region,$cse57.phase,$cse57.region,$cse58.phase,$cse58.region,$cse59.phase,$cse59.region,$cse60.phase,$cse60.region,$cse61.phase,$cse61.region,$cse62.phase,$cse62.region,$cse63.phase,$cse63.region,$cse64.phase,$cse64.region,$cse65.phase,$cse65.region,$cse66.phase,$cse66.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (297): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 28 * 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: 0 * Non-linear torn systems: 2 {13 126,13 126} Notification: Performance of Backend phase and start with SimCode phase: time 0.007698/7.912, allocations: 2.074 MB / 4.817 GB, free: 125.5 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.2214/8.133, allocations: 31.01 MB / 4.848 GB, free: 150.2 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/8.133, allocations: 6.031 kB / 4.848 GB, free: 150.2 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.02131/8.155, allocations: 11.51 MB / 4.859 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005634/8.16, allocations: 1.098 MB / 4.86 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04314/8.204, allocations: 23.25 MB / 4.883 GB, free: 147.1 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005601/8.209, allocations: 5.992 MB / 4.888 GB, free: 146.2 MB / 0.6355 GB Notification: Performance of SimCode: time 5.71e-07/8.209, allocations: 0 / 4.888 GB, free: 146.2 MB / 0.6355 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_E_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_E.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_E.pipe 2>&1)