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.001146/0.001146, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.766/1.766, allocations: 205.2 MB / 219.4 MB, free: 14.19 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.0009554/0.0009555, allocations: 86.69 kB / 267.5 MB, free: 14.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3436/0.3436, allocations: 48.78 MB / 364.3 MB, free: 6.859 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.996e-05/4.999e-05, allocations: 4 kB / 432.6 MB, free: 16.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.136, allocations: 60.25 MB / 492.8 MB, free: 4.273 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.707/7.843, allocations: 2.938 GB / 3.419 GB, free: 2.184 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/7.843, allocations: 82.59 kB / 3.419 GB, free: 2.145 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.361/9.204, allocations: 306.3 MB / 3.718 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.846e-06/9.204, allocations: 0 / 3.718 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000142/9.205, allocations: 37.25 kB / 3.718 GB, free: 79.84 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.01492/9.22, allocations: 3.401 MB / 3.722 GB, free: 78.66 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.066e-05/9.22, allocations: 10.69 kB / 3.722 GB, free: 78.66 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00218/9.222, allocations: 286.8 kB / 3.722 GB, free: 78.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003298/9.225, allocations: 367.1 kB / 3.722 GB, free: 78.37 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004663/9.23, allocations: 1.358 MB / 3.724 GB, free: 77.81 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001863/9.23, allocations: 142.6 kB / 3.724 GB, free: 77.75 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001261/9.231, allocations: 191.7 kB / 3.724 GB, free: 77.69 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01323/9.245, allocations: 4.614 MB / 3.728 GB, free: 76.04 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.917e-05/9.245, allocations: 3.75 kB / 3.728 GB, free: 76.04 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00054/9.245, allocations: 81.66 kB / 3.729 GB, free: 75.98 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-05/9.245, allocations: 73.95 kB / 3.729 GB, free: 75.98 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0124/9.258, allocations: 5.047 MB / 3.734 GB, free: 74.51 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.01461/9.272, allocations: 9.203 MB / 3.743 GB, free: 68.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005042/9.277, allocations: 2.246 MB / 3.745 GB, free: 68.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/9.279, allocations: 0.9682 MB / 3.746 GB, free: 67.84 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1277/9.406, allocations: 63.98 MB / 3.808 GB, free: 4.301 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005953/9.412, allocations: 1.954 MB / 3.81 GB, free: 2.305 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=137): time 5.54e-06/9.413, allocations: 0 / 3.81 GB, free: 2.305 MB / 0.5105 GB Notification: Performance of matching and sorting (n=137): time 0.01905/9.432, allocations: 5.355 MB / 3.815 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/9.432, allocations: 244.6 kB / 3.815 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002523/9.434, allocations: 1.215 MB / 3.817 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006543/9.435, allocations: 53.7 kB / 3.817 GB, free: 11.35 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001057/9.436, allocations: 1.02 MB / 3.818 GB, free: 10.33 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001134/9.437, allocations: 0.4939 MB / 3.818 GB, free: 9.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000464/9.438, allocations: 56 kB / 3.818 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003601/9.438, allocations: 472.4 kB / 3.819 GB, free: 9.316 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002788/9.441, allocations: 1.419 MB / 3.82 GB, free: 7.895 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003783/9.445, allocations: 2.725 MB / 3.823 GB, free: 4.543 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003504/9.448, allocations: 1.903 MB / 3.825 GB, free: 2.629 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-05/9.448, allocations: 12 kB / 3.825 GB, free: 2.617 MB / 0.5261 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.3992/9.847, allocations: 6.308 MB / 3.831 GB, free: 95.41 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.004326/9.852, allocations: 17.1 MB / 3.847 GB, free: 77.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001096/9.852, allocations: 43.25 kB / 3.848 GB, free: 77.63 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01186/9.864, allocations: 2.554 MB / 3.85 GB, free: 77.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003087/9.867, allocations: 0.6736 MB / 3.851 GB, free: 77.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02808/9.895, allocations: 13.12 MB / 3.863 GB, free: 76.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003801/9.899, allocations: 429.5 kB / 3.864 GB, free: 76.14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005715/9.9, allocations: 225 kB / 3.864 GB, free: 76.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/9.9, allocations: 3.219 kB / 3.864 GB, free: 76.14 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01449/9.914, allocations: 6.114 MB / 3.87 GB, free: 76.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002654/9.914, allocations: 48.48 kB / 3.87 GB, free: 76.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01017/9.925, allocations: 2.547 MB / 3.873 GB, free: 76.01 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002791/9.927, allocations: 0.6674 MB / 3.873 GB, free: 76.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02296/9.95, allocations: 13.13 MB / 3.886 GB, free: 74.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003811/9.954, allocations: 339 kB / 3.886 GB, free: 74.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005467/9.955, allocations: 223.7 kB / 3.887 GB, free: 74.41 MB / 0.5261 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 = hex.hstart[6] unit = "J/kg" 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" 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" 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" 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" 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" 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 () * 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.001276/9.956, allocations: 448.1 kB / 3.887 GB, free: 74.24 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005062/9.957, allocations: 152.6 kB / 3.887 GB, free: 74.16 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0208/9.978, allocations: 15.73 MB / 3.903 GB, free: 73.64 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.344e-05/9.978, allocations: 43.16 kB / 3.903 GB, free: 73.63 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/9.978, allocations: 0 / 3.903 GB, free: 73.63 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-05/9.978, allocations: 6.234 kB / 3.903 GB, free: 73.63 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02664/10, allocations: 21.57 MB / 3.924 GB, free: 64.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.136e-05/10, allocations: 3.844 kB / 3.924 GB, free: 64.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/10.01, allocations: 217 kB / 3.924 GB, free: 64.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01118/10.02, allocations: 2.792 MB / 3.927 GB, free: 63.84 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006479/10.02, allocations: 64.44 kB / 3.927 GB, free: 63.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02305/10.04, allocations: 13.11 MB / 3.939 GB, free: 58.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/10.04, allocations: 11.09 kB / 3.939 GB, free: 58.65 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01663/10.06, allocations: 6.661 MB / 3.946 GB, free: 56.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001562/10.06, allocations: 0.4911 MB / 3.946 GB, free: 56.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000688/10.06, allocations: 43.69 kB / 3.947 GB, free: 56.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002184/10.06, allocations: 135.8 kB / 3.947 GB, free: 56.05 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008587/10.06, allocations: 126.5 kB / 3.947 GB, free: 56.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003606/10.06, allocations: 50.84 kB / 3.947 GB, free: 56.03 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001891/10.07, allocations: 0.8367 MB / 3.948 GB, free: 55.72 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.11e-07/10.07, allocations: 0 / 3.948 GB, free: 55.72 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01171/10.08, allocations: 2.045 MB / 3.95 GB, free: 55.45 MB / 0.5261 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) * 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.02482/10.1, allocations: 8.514 MB / 3.958 GB, free: 49.78 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01584/10.12, allocations: 6.676 MB / 3.964 GB, free: 43.81 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/10.12, allocations: 0 / 3.964 GB, free: 43.81 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004751/10.12, allocations: 2.057 MB / 3.966 GB, free: 41.93 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003152/10.13, allocations: 451.7 kB / 3.967 GB, free: 41.62 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01617/10.14, allocations: 4.96 MB / 3.972 GB, free: 37.55 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001578/10.14, allocations: 1.631 MB / 3.973 GB, free: 36.21 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01087/10.15, allocations: 8.826 MB / 3.982 GB, free: 31.24 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/10.16, allocations: 0.7861 MB / 3.983 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of SimCode: time 1.673e-06/10.16, allocations: 3.188 kB / 3.983 GB, free: 30.54 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5344/10.69, allocations: 108.4 MB / 4.089 GB, free: 104.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/10.69, allocations: 195.5 kB / 4.089 GB, free: 104 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.399/16.09, allocations: 0 / 4.089 GB, free: 104 MB / 0.5417 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)