Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_ClaRa.Components.VolumesValvesFittings.Pipes.Check.TwoPhaseFlow.Test_HEXvle2vle_L3_2ph_CH_simple_headers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo): time 0.006464/0.006464, allocations: 1.446 MB / 20.54 MB, free: 4.008 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008606/0.0008606, allocations: 91.45 kB / 24.16 MB, free: 396 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009475/0.0009475, allocations: 160.8 kB / 27.85 MB, free: 5.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8706/0.8706, allocations: 177.2 MB / 208.6 MB, free: 2.953 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo): time 0.7132/0.7132, allocations: 102.5 MB / 367.9 MB, free: 1.496 MB / 330.8 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Using package SMArtInt with version 0.5.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo) Running command: "" <> buildModelFMU(ClaRa.Components.VolumesValvesFittings.Pipes.Check.TwoPhaseFlow.Test_HEXvle2vle_L3_2ph_CH_simple_headers,fileNamePrefix="ClaRa_ClaRa_Components_VolumesValvesFittings_Pipes_Check_TwoPhaseFlow_Test_HEXvle2vle_L3_2ph_CH_simple_headers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ClaRa.Components.VolumesValvesFittings.Pipes.Check.TwoPhaseFlow.Test_HEXvle2vle_L3_2ph_CH_simple_headers,fileNamePrefix="ClaRa_ClaRa_Components_VolumesValvesFittings_Pipes_Check_TwoPhaseFlow_Test_HEXvle2vle_L3_2ph_CH_simple_headers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 0.5362 GB, free: 40.01 MB / 490.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.463e-05/1.626e-05, allocations: 5.734 kB / 0.5362 GB, free: 40 MB / 490.8 MB Notification: TILMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Automatically loaded package TILMedia 1.9.0 ClaRa due to usage. Notification: Performance of NFInst.instantiate(ClaRa.Components.VolumesValvesFittings.Pipes.Check.TwoPhaseFlow.Test_HEXvle2vle_L3_2ph_CH_simple_headers): time 0.1263/0.1263, allocations: 80.2 MB / 0.6145 GB, free: 12.24 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.04472/0.171, allocations: 30.88 MB / 0.6447 GB, free: 13.27 MB / 0.5418 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008152/0.1792, allocations: 218.4 kB / 0.6449 GB, free: 13.05 MB / 0.5418 GB Notification: Performance of NFTyping.typeComponents: time 0.00906/0.1882, allocations: 4.301 MB / 0.6491 GB, free: 8.73 MB / 0.5418 GB Notification: Performance of NFTyping.typeBindings: time 0.01576/0.204, allocations: 7.512 MB / 0.6564 GB, free: 1.176 MB / 0.5418 GB Notification: Performance of NFTyping.typeClassSections: time 0.0135/0.2175, allocations: 7.078 MB / 0.6633 GB, free: 10.09 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.02451/0.242, allocations: 21.07 MB / 0.6839 GB, free: 4.945 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01016/0.2522, allocations: 5.954 MB / 0.6897 GB, free: 14.91 MB / 0.5887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02153/0.2737, allocations: 11.01 MB / 0.7005 GB, free: 3.871 MB / 0.5887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01171/0.2854, allocations: 7.649 MB / 0.708 GB, free: 12.2 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 0.003318/0.2887, allocations: 1.305 MB / 0.7092 GB, free: 10.9 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007628/0.2963, allocations: 3.299 MB / 0.7125 GB, free: 7.594 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 0.004383/0.3007, allocations: 4.596 MB / 0.7169 GB, free: 2.984 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 0.006842/0.3076, allocations: 4.24 MB / 0.7211 GB, free: 14.73 MB / 0.6199 GB Notification: Performance of NFConvertDAE.convert: time 0.02284/0.3304, allocations: 20.52 MB / 0.7411 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3304, allocations: 0 / 0.7411 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.595e-06/0.3304, allocations: 4 kB / 0.7411 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.00066/0.3311, allocations: 0 / 0.7411 GB, free: 10.16 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2308 * Number of variables: 2308 Notification: Performance of Generate backend data structure: time 0.02618/0.3573, allocations: 14.47 MB / 0.7552 GB, free: 11.56 MB / 0.6512 GB Notification: Performance of prepare preOptimizeDAE: time 7.77e-05/0.3573, allocations: 8.031 kB / 0.7553 GB, free: 11.55 MB / 0.6512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001473/0.3588, allocations: 1.087 MB / 0.7563 GB, free: 10.46 MB / 0.6512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003507/0.3623, allocations: 1.511 MB / 0.7578 GB, free: 8.938 MB / 0.6512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01154/0.3739, allocations: 8.658 MB / 0.7662 GB, free: 188 kB / 0.6512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2911/0.665, allocations: 474.6 kB / 0.7667 GB, free: 172.8 MB / 0.6512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002994/0.668, allocations: 0.593 MB / 0.7673 GB, free: 172.8 MB / 0.6512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03018/0.6982, allocations: 18.79 MB / 0.7856 GB, free: 161 MB / 0.6512 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001197/0.6983, allocations: 66.56 kB / 0.7857 GB, free: 161 MB / 0.6512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007576/0.6991, allocations: 300 kB / 0.786 GB, free: 160.8 MB / 0.6512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000714/0.6998, allocations: 0.721 MB / 0.7867 GB, free: 160.6 MB / 0.6512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02314/0.7229, allocations: 13.38 MB / 0.7997 GB, free: 153.8 MB / 0.6512 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.04946/0.7724, allocations: 59.41 MB / 0.8578 GB, free: 101.4 MB / 0.6512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01565/0.788, allocations: 11.23 MB / 0.8687 GB, free: 89.94 MB / 0.6512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004884/0.7929, allocations: 4.31 MB / 0.8729 GB, free: 85.55 MB / 0.6512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007757/0.7937, allocations: 382 kB / 0.8733 GB, free: 85.18 MB / 0.6512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01083/0.8045, allocations: 8.608 MB / 0.8817 GB, free: 76.3 MB / 0.6512 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00369/0.8082, allocations: 1.15 MB / 0.8828 GB, free: 75.37 MB / 0.6512 GB Notification: Performance of pre-optimization done (n=1095): time 1.764e-05/0.8082, allocations: 0 / 0.8828 GB, free: 75.37 MB / 0.6512 GB Notification: Performance of matching and sorting (n=1097): time 0.07361/0.8818, allocations: 79.54 MB / 0.9605 GB, free: 11.57 MB / 0.6668 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007221/0.8825, allocations: 2.113 MB / 0.9626 GB, free: 8.961 MB / 0.6668 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01061/0.8932, allocations: 8.638 MB / 0.971 GB, free: 0.5039 MB / 0.6668 GB Notification: Performance of collectPreVariables (initialization): time 0.002039/0.8952, allocations: 129.7 kB / 0.9711 GB, free: 380 kB / 0.6668 GB Notification: Performance of collectInitialEqns (initialization): time 0.002884/0.8981, allocations: 4.259 MB / 0.9753 GB, free: 12.51 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 0.003796/0.9019, allocations: 3.74 MB / 0.9789 GB, free: 9.113 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003014/0.9049, allocations: 2.467 MB / 0.9813 GB, free: 6.633 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 7.82e-05/0.905, allocations: 305.1 kB / 0.9816 GB, free: 6.332 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007233/0.9122, allocations: 5.844 MB / 0.9873 GB, free: 480 kB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009268/0.9215, allocations: 10.48 MB / 0.9976 GB, free: 4.207 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4762/1.398, allocations: 59.12 MB / 1.055 GB, free: 246.4 MB / 0.7449 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.739e-05/1.398, allocations: 30 kB / 1.055 GB, free: 246.4 MB / 0.7449 GB Notification: Performance of matching and sorting (n=1595) (initialization): time 0.02798/1.426, allocations: 17.22 MB / 1.072 GB, free: 239.8 MB / 0.7449 GB Notification: Performance of prepare postOptimizeDAE: time 7.937e-05/1.426, allocations: 46.25 kB / 1.072 GB, free: 239.8 MB / 0.7449 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01938/1.445, allocations: 13.46 MB / 1.085 GB, free: 234.7 MB / 0.7449 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02329/1.468, allocations: 4.67 MB / 1.09 GB, free: 234 MB / 0.7449 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009209/1.478, allocations: 3.183 MB / 1.093 GB, free: 233.1 MB / 0.7449 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007489/1.485, allocations: 14.06 MB / 1.107 GB, free: 220.5 MB / 0.7449 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007574/1.493, allocations: 0.5597 MB / 1.107 GB, free: 220.2 MB / 0.7449 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001341/1.494, allocations: 0.7178 MB / 1.108 GB, free: 220 MB / 0.7449 GB Warning: Assuming fixed start value for the following 5 variables: hex.tubes.h:VARIABLE(start = hex.tubes.h_start unit = \"J/kg\" fixed = true nominal = 1000.0 protected = true ) \"spec. enthalpy state\" type: Real headerOut.pipeFlow.h[1]:VARIABLE(start = headerOut.pipeFlow.mechanicalEquilibrium.h_start[1] unit = \"J/kg\" fixed = true nominal = 1000.0 stateSelect=StateSelect.prefer protected = true ) \"Cell enthalpy\" type: Real [1] headerIn.pipeFlow.h[1]:VARIABLE(start = headerIn.pipeFlow.mechanicalEquilibrium.h_start[1] unit = \"J/kg\" fixed = true nominal = 1000.0 stateSelect=StateSelect.prefer protected = true ) \"Cell enthalpy\" type: Real [1] headerIn.pipeFlow.p[1]:VARIABLE(min = 0.0 start = headerIn.pipeFlow.p_start_internal[1] unit = \"Pa\" fixed = true nominal = 1e5 protected = true ) \"Cell pressure\" type: Real [1] PI.switch_OnOff.u2:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0109/1.505, allocations: 8.233 MB / 1.116 GB, free: 214 MB / 0.7449 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.007438/1.512, allocations: 10.39 MB / 1.126 GB, free: 201.8 MB / 0.7449 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.1566/1.669, allocations: 58.83 MB / 1.184 GB, free: 142.2 MB / 0.7449 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.396e-05/1.669, allocations: 28 kB / 1.184 GB, free: 142.2 MB / 0.7449 GB Notification: Performance of matching and sorting (n=1595) (initialization_lambda0): time 0.02399/1.693, allocations: 17.02 MB / 1.2 GB, free: 125.6 MB / 0.7449 GB Notification: Performance of prepare postOptimizeDAE: time 4.671e-05/1.693, allocations: 51.94 kB / 1.2 GB, free: 125.6 MB / 0.7449 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01532/1.708, allocations: 13.25 MB / 1.213 GB, free: 112.2 MB / 0.7449 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02273/1.731, allocations: 4.547 MB / 1.218 GB, free: 107.7 MB / 0.7449 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008404/1.74, allocations: 3.1 MB / 1.221 GB, free: 104.6 MB / 0.7449 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006961/1.747, allocations: 13.23 MB / 1.234 GB, free: 90.61 MB / 0.7449 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00806/1.755, allocations: 0.5639 MB / 1.234 GB, free: 90.04 MB / 0.7449 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001429/1.756, allocations: 0.7105 MB / 1.235 GB, free: 89.33 MB / 0.7449 GB Warning: Assuming fixed start value for the following 5 variables: hex.tubes.h:VARIABLE(start = hex.tubes.h_start unit = \"J/kg\" fixed = true nominal = 1000.0 protected = true ) \"spec. enthalpy state\" type: Real headerOut.pipeFlow.h[1]:VARIABLE(start = headerOut.pipeFlow.mechanicalEquilibrium.h_start[1] unit = \"J/kg\" fixed = true nominal = 1000.0 stateSelect=StateSelect.prefer protected = true ) \"Cell enthalpy\" type: Real [1] headerIn.pipeFlow.h[1]:VARIABLE(start = headerIn.pipeFlow.mechanicalEquilibrium.h_start[1] unit = \"J/kg\" fixed = true nominal = 1000.0 stateSelect=StateSelect.prefer protected = true ) \"Cell enthalpy\" type: Real [1] headerIn.pipeFlow.p[1]:VARIABLE(min = 0.0 start = headerIn.pipeFlow.p_start_internal[1] unit = \"Pa\" fixed = true nominal = 1e5 protected = true ) \"Cell pressure\" type: Real [1] PI.switch_OnOff.u2:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.PI.time_lag_I_activation.entryTime,$PRE.PI.switch_OnOff.u2,PI.I_activation.y,PI.time_lag_I_activation.entryTime,PI.switch_OnOff.u2,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1558): * Single equations (assignments): 1548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (4,3,87.5%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (7,17)} Notification: Performance of prepare postOptimizeDAE: time 0.003049/1.759, allocations: 0.9173 MB / 1.236 GB, free: 88.48 MB / 0.7449 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002319/1.761, allocations: 1.021 MB / 1.237 GB, free: 87.73 MB / 0.7449 GB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 1633 equation(s) and 1564 variable(s). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/TILMedia main/VLEFluid/MixtureCompatible/VLEFluid_ph.mo:55:3-60:21:writable] Error: (headerIn.pipeFlow.summary.fluid.steamQuality[1], headerIn.pipeFlow.fluid[1].cp, headerIn.pipeFlow.fluid[1].cv, headerIn.pipeFlow.fluid[1].beta, headerIn.pipeFlow.fluid[1].kappa, headerIn.pipeFlow.fluid[1].drhodp_hxi, headerIn.pipeFlow.fluid[1].drhodh_pxi, _, headerIn.pipeFlow.fluid[1].w, headerIn.pipeFlow.fluid[1].gamma) = ($cse578, $cse579, $cse580, $cse581, $cse582, $cse583, $cse584, $cse585, $cse586, $cse587) has size 9 but 5 variables ($cse292, $cse293, $cse294, $cse296, hex.shell.m_flow_cond) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01401/1.775, allocations: 13.63 MB / 1.25 GB, free: 74.5 MB / 0.7449 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 798] [Calling sys.exit(0), Time elapsed: 4.866986372508109] Failed to read output from testmodel.py, exit status != 0: 2.187966402620077 2.19786283 1.865518853 Calling exit ...