Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.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_G,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002071/0.002071, allocations: 181 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.00114/0.00114, allocations: 97.2 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5464/0.5464, allocations: 48.77 MB / 367.9 MB, free: 47.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003739/0.000374, allocations: 8 kB / 438.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1544, allocations: 60.25 MB / 499 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.251/7.406, allocations: 2.938 GB / 3.425 GB, free: 85.85 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/7.406, allocations: 84.94 kB / 3.425 GB, free: 85.81 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.356/8.761, allocations: 307.3 MB / 3.725 GB, free: 59.35 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.934e-06/8.762, allocations: 0 / 3.725 GB, free: 59.35 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.99e-05/8.762, allocations: 34.59 kB / 3.725 GB, free: 59.35 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: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.01286/8.774, allocations: 3.504 MB / 3.729 GB, free: 58.46 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/8.775, allocations: 8.281 kB / 3.729 GB, free: 58.46 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001154/8.776, allocations: 299.8 kB / 3.729 GB, free: 58.41 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002205/8.778, allocations: 360.7 kB / 3.729 GB, free: 58.32 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004201/8.782, allocations: 1.353 MB / 3.731 GB, free: 58 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001408/8.782, allocations: 144.8 kB / 3.731 GB, free: 58 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005554/8.783, allocations: 188.7 kB / 3.731 GB, free: 58 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009825/8.793, allocations: 4.608 MB / 3.736 GB, free: 57.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.827e-05/8.793, allocations: 0 / 3.736 GB, free: 57.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002708/8.793, allocations: 84.28 kB / 3.736 GB, free: 57.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.501e-05/8.793, allocations: 82.83 kB / 3.736 GB, free: 57.79 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01236/8.806, allocations: 5.038 MB / 3.741 GB, free: 57.78 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01617/8.822, allocations: 9.211 MB / 3.75 GB, free: 53.89 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005496/8.827, allocations: 2.207 MB / 3.752 GB, free: 53.85 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1239/8.951, allocations: 63.74 MB / 3.814 GB, free: 30.46 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006936/8.958, allocations: 1.9 MB / 3.816 GB, free: 30.31 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=137): time 7.023e-06/8.958, allocations: 0 / 3.816 GB, free: 30.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=137): time 0.03951/8.998, allocations: 8.751 MB / 3.824 GB, free: 29.81 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002425/8.998, allocations: 256.5 kB / 3.825 GB, free: 29.53 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003179/9.001, allocations: 1.221 MB / 3.826 GB, free: 29.33 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008388/9.002, allocations: 48.95 kB / 3.826 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001111/9.003, allocations: 1.015 MB / 3.827 GB, free: 28.68 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00131/9.005, allocations: 0.5054 MB / 3.827 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007428/9.005, allocations: 55.75 kB / 3.827 GB, free: 28.38 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0005935/9.006, allocations: 472 kB / 3.828 GB, free: 28.07 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003053/9.009, allocations: 1.446 MB / 3.829 GB, free: 28.06 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003635/9.013, allocations: 2.749 MB / 3.832 GB, free: 26.39 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003764/9.017, allocations: 1.907 MB / 3.834 GB, free: 26.28 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.115e-05/9.017, allocations: 15.84 kB / 3.834 GB, free: 26.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.01992/9.037, allocations: 6.367 MB / 3.84 GB, free: 42 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.008765/9.045, allocations: 17.09 MB / 3.857 GB, free: 24.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00018/9.046, allocations: 43.53 kB / 3.857 GB, free: 24.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01172/9.057, allocations: 2.562 MB / 3.859 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003325/9.061, allocations: 0.6755 MB / 3.86 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03123/9.092, allocations: 13.81 MB / 3.873 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004411/9.097, allocations: 418.2 kB / 3.874 GB, free: 20.87 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001226/9.098, allocations: 226.1 kB / 3.874 GB, free: 20.83 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/9.098, allocations: 3.844 kB / 3.874 GB, free: 20.83 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01856/9.116, allocations: 6.175 MB / 3.88 GB, free: 19.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002057/9.117, allocations: 45.38 kB / 3.88 GB, free: 19.11 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01091/9.128, allocations: 2.552 MB / 3.883 GB, free: 18.81 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002892/9.131, allocations: 0.6673 MB / 3.883 GB, free: 18.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02617/9.157, allocations: 13.82 MB / 3.897 GB, free: 26.97 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00357/9.16, allocations: 336.3 kB / 3.897 GB, free: 26.68 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009518/9.161, allocations: 225.2 kB / 3.897 GB, free: 26.49 MB / 0.5573 GB Warning: Assuming fixed start value for the following 6 variables: hex.h[6]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0)))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0)))) start = 100000.0 unit = "J/kg" fixed = true nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[5]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[5] unit = "J/kg" fixed = true nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[4]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[4] unit = "J/kg" fixed = true nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[3]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[3] unit = "J/kg" fixed = true nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[2]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[2] unit = "J/kg" fixed = true nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[1]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0)))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0)))) start = 100000.0 unit = "J/kg" fixed = true nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 196 * Number of states: 0 () * Number of discrete variables: 15 (hex.fluidState[6].phase,hex.fluidState[5].phase,hex.fluidState[4].phase,hex.fluidState[3].phase,hex.fluidState[2].phase,hex.fluidState[1].phase,$whenCondition1,MassFlowRate.a,MassFlowRate.b,MassFlowRate.last,$PRE.MassFlowRate.nextEvent,MassFlowRate.nextEvent,MassFlowRate.nextEventScaled,T_out.fluidState.phase,T_in.fluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (293): * Single equations (assignments): 291 * Array equations: 0 * Algorithm blocks: 1 * 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 {6 49} Notification: Performance of prepare postOptimizeDAE: time 0.002669/9.164, allocations: 0.8664 MB / 3.898 GB, free: 25.71 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006958/9.165, allocations: 150.1 kB / 3.898 GB, free: 25.56 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02245/9.187, allocations: 15.16 MB / 3.913 GB, free: 12.74 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.573e-05/9.187, allocations: 35.16 kB / 3.913 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/9.187, allocations: 4 kB / 3.913 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.898e-05/9.187, allocations: 7.688 kB / 3.913 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4255/9.613, allocations: 22.86 MB / 3.936 GB, free: 99.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-05/9.613, allocations: 0.8906 kB / 3.936 GB, free: 99.82 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001869/9.615, allocations: 217.1 kB / 3.936 GB, free: 99.82 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0135/9.628, allocations: 2.805 MB / 3.938 GB, free: 99.81 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008179/9.629, allocations: 58.95 kB / 3.939 GB, free: 99.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02547/9.655, allocations: 13.82 MB / 3.952 GB, free: 98.39 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/9.655, allocations: 0 / 3.952 GB, free: 98.39 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01708/9.672, allocations: 6.721 MB / 3.959 GB, free: 97.98 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/9.674, allocations: 499.8 kB / 3.959 GB, free: 97.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000431/9.674, allocations: 45.62 kB / 3.959 GB, free: 97.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001725/9.676, allocations: 128 kB / 3.959 GB, free: 97.79 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006828/9.677, allocations: 127.2 kB / 3.959 GB, free: 97.79 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001673/9.677, allocations: 54.48 kB / 3.959 GB, free: 97.79 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001224/9.678, allocations: 0.847 MB / 3.96 GB, free: 97.68 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2e-07/9.678, allocations: 0 / 3.96 GB, free: 97.68 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01184/9.69, allocations: 2.05 MB / 3.962 GB, free: 97.64 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (hex.h[1],hex.h[2],hex.h[3],hex.h[4],hex.h[5],hex.h[6]) * Number of discrete variables: 22 ($cse11.phase,$cse11.region,$cse12.phase,$cse12.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,$whenCondition1,MassFlowRate.a,MassFlowRate.b,MassFlowRate.last,MassFlowRate.nextEvent,MassFlowRate.nextEventScaled) * Number of discrete states: 6 (MassFlowRate.nextEvent,MassFlowRate.last,MassFlowRate.nextEventScaled,MassFlowRate.b,MassFlowRate.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 8 * 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 {6 54} Notification: Performance of Backend phase and start with SimCode phase: time 0.02567/9.716, allocations: 8.562 MB / 3.971 GB, free: 96.58 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01713/9.733, allocations: 6.754 MB / 3.977 GB, free: 96.05 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/9.733, allocations: 3.812 kB / 3.977 GB, free: 96.05 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005112/9.738, allocations: 2.079 MB / 3.979 GB, free: 95.79 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00287/9.741, allocations: 445.7 kB / 3.98 GB, free: 95.79 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05433/9.795, allocations: 46.99 MB / 4.026 GB, free: 61.95 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001878/9.797, allocations: 1.643 MB / 4.027 GB, free: 61.21 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.01038/9.808, allocations: 8.771 MB / 4.036 GB, free: 61.06 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001996/9.81, allocations: 0.7899 MB / 4.036 GB, free: 61.05 MB / 0.5573 GB Notification: Performance of SimCode: time 1.343e-06/9.81, allocations: 0 / 4.036 GB, free: 61.05 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5165/10.33, allocations: 105 MB / 4.139 GB, free: 98.19 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/10.33, allocations: 226.9 kB / 4.139 GB, free: 97.95 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.283/15.61, allocations: 4 kB / 4.139 GB, free: 97.95 MB / 0.5573 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G.pipe 2>&1)