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.008378/0.008378, allocations: 1.784 MB / 21.57 MB, free: 2.902 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.0008116/0.0008116, allocations: 86.27 kB / 25.4 MB, free: 7 MB / 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.0008431/0.0008431, allocations: 162.2 kB / 29.33 MB, free: 3.137 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.9187/0.9187, allocations: 177.1 MB / 210.3 MB, free: 3.441 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.6574/0.6574, allocations: 102.5 MB / 369.9 MB, free: 232 kB / 330.7 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 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo) Running command: translateModel(ClaRa.Components.VolumesValvesFittings.Pipes.Check.TwoPhaseFlow.Test_HEXvle2vle_L3_2ph_CH_simple_headers,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2500,variableFilter="PI.I.y|PI.resetValueI|PI.resetValueID|PI.resetValueP|PI.smoothPIDInput.y_aux|PI.smoothPIDOutput.y_aux|PI.smoothPIDOutput1.y_aux|Time|headerIn.pipeFlow.h.[0-9,]+.|headerIn.pipeFlow.p.[0-9,]+.|headerIn.pipeWall.U.[0-9,]+.|headerOut.pipeFlow.h.[0-9,]+.|headerOut.pipeWall.U.[0-9,]+.|hex.shell.h_liq|hex.shell.h_vap|hex.shell.p_vap|hex.shell.volume_vap|hex.tubes.h|hex.wall.U.[0-9,]+.",fileNamePrefix="ClaRa_ClaRa.Components.VolumesValvesFittings.Pipes.Check.TwoPhaseFlow.Test_HEXvle2vle_L3_2ph_CH_simple_headers") translateModel(ClaRa.Components.VolumesValvesFittings.Pipes.Check.TwoPhaseFlow.Test_HEXvle2vle_L3_2ph_CH_simple_headers,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2500,variableFilter="PI.I.y|PI.resetValueI|PI.resetValueID|PI.resetValueP|PI.smoothPIDInput.y_aux|PI.smoothPIDOutput.y_aux|PI.smoothPIDOutput1.y_aux|Time|headerIn.pipeFlow.h.[0-9,]+.|headerIn.pipeFlow.p.[0-9,]+.|headerIn.pipeWall.U.[0-9,]+.|headerOut.pipeFlow.h.[0-9,]+.|headerOut.pipeWall.U.[0-9,]+.|hex.shell.h_liq|hex.shell.h_vap|hex.shell.p_vap|hex.shell.volume_vap|hex.tubes.h|hex.wall.U.[0-9,]+.",fileNamePrefix="ClaRa_ClaRa.Components.VolumesValvesFittings.Pipes.Check.TwoPhaseFlow.Test_HEXvle2vle_L3_2ph_CH_simple_headers") [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 470.5 MB, free: 18.82 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.338e-05/2.507e-05, allocations: 3.859 kB / 470.5 MB, free: 18.82 MB / 410.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.1327/0.1327, allocations: 86.88 MB / 0.5443 GB, free: 0.6641 MB / 458.8 MB Notification: Performance of NFInst.instExpressions: time 0.04357/0.1763, allocations: 31.77 MB / 0.5753 GB, free: 0.8047 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009439/0.1857, allocations: 222.4 kB / 0.5755 GB, free: 0.5859 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.01015/0.1959, allocations: 4.305 MB / 0.5797 GB, free: 12.26 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.01678/0.2127, allocations: 7.531 MB / 0.5871 GB, free: 4.684 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.01336/0.226, allocations: 7.088 MB / 0.594 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0257/0.2517, allocations: 21.06 MB / 0.6146 GB, free: 8.469 MB / 0.5262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01125/0.263, allocations: 6.254 MB / 0.6207 GB, free: 2.129 MB / 0.5262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4192/0.6822, allocations: 56.56 MB / 0.6759 GB, free: 28.45 MB / 0.5418 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01421/0.6964, allocations: 7.605 MB / 0.6833 GB, free: 28.45 MB / 0.5418 GB Notification: Performance of NFPackage.collectConstants: time 0.005748/0.7021, allocations: 1.263 MB / 0.6846 GB, free: 28.45 MB / 0.5418 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01499/0.7171, allocations: 3.247 MB / 0.6877 GB, free: 28.45 MB / 0.5418 GB Notification: Performance of NFScalarize.scalarize: time 0.01192/0.729, allocations: 4.507 MB / 0.6921 GB, free: 28.45 MB / 0.5418 GB Notification: Performance of NFVerifyModel.verify: time 0.0192/0.7482, allocations: 4.173 MB / 0.6962 GB, free: 28.45 MB / 0.5418 GB Notification: Performance of NFConvertDAE.convert: time 0.03502/0.7833, allocations: 12.62 MB / 0.7085 GB, free: 27.34 MB / 0.5418 GB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.7833, allocations: 0 / 0.7085 GB, free: 27.34 MB / 0.5418 GB Notification: Performance of FrontEnd: time 1.994e-06/0.7833, allocations: 0 / 0.7085 GB, free: 27.34 MB / 0.5418 GB Notification: Performance of Transformations before backend: time 0.0008506/0.7841, allocations: 2.656 kB / 0.7085 GB, free: 27.34 MB / 0.5418 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.03594/0.8201, allocations: 15.24 MB / 0.7234 GB, free: 21.37 MB / 0.5418 GB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.8201, allocations: 9.625 kB / 0.7234 GB, free: 21.37 MB / 0.5418 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007352/0.8275, allocations: 1.854 MB / 0.7252 GB, free: 20.6 MB / 0.5418 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01534/0.8428, allocations: 6.834 MB / 0.7319 GB, free: 17.96 MB / 0.5418 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005755/0.8434, allocations: 474.3 kB / 0.7324 GB, free: 17.95 MB / 0.5418 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003398/0.8468, allocations: 0.6477 MB / 0.733 GB, free: 17.94 MB / 0.5418 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0272/0.874, allocations: 14.56 MB / 0.7472 GB, free: 6.008 MB / 0.5418 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00023/0.8742, allocations: 58.47 kB / 0.7473 GB, free: 6.008 MB / 0.5418 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00213/0.8763, allocations: 306.2 kB / 0.7476 GB, free: 5.828 MB / 0.5418 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005939/0.8769, allocations: 0.7239 MB / 0.7483 GB, free: 5.613 MB / 0.5418 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01805/0.895, allocations: 6.019 MB / 0.7542 GB, free: 3.73 MB / 0.5418 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.0743/0.9693, allocations: 71.58 MB / 0.8241 GB, free: 15.05 MB / 0.6199 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01442/0.9837, allocations: 6.73 MB / 0.8306 GB, free: 8.133 MB / 0.6199 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004016/0.9877, allocations: 1.633 MB / 0.8322 GB, free: 6.402 MB / 0.6199 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009929/0.9887, allocations: 0.6003 MB / 0.8328 GB, free: 5.848 MB / 0.6199 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0139/1.003, allocations: 5.454 MB / 0.8381 GB, free: 448 kB / 0.6199 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005814/1.008, allocations: 1.175 MB / 0.8393 GB, free: 15.26 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=1095): time 3.104e-05/1.008, allocations: 3.984 kB / 0.8393 GB, free: 15.26 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1097): time 0.06146/1.07, allocations: 18.39 MB / 0.8573 GB, free: 12.99 MB / 0.6512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008577/1.071, allocations: 2.6 MB / 0.8598 GB, free: 9.793 MB / 0.6512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/1.081, allocations: 7.113 MB / 0.8667 GB, free: 3.879 MB / 0.6512 GB Notification: Performance of collectPreVariables (initialization): time 0.002413/1.084, allocations: 132.4 kB / 0.8669 GB, free: 3.746 MB / 0.6512 GB Notification: Performance of collectInitialEqns (initialization): time 0.003767/1.087, allocations: 4.568 MB / 0.8713 GB, free: 15.48 MB / 0.6668 GB Notification: Performance of collectInitialBindings (initialization): time 0.004788/1.092, allocations: 3.881 MB / 0.8751 GB, free: 11.82 MB / 0.6668 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005442/1.098, allocations: 2.673 MB / 0.8777 GB, free: 9.379 MB / 0.6668 GB Notification: Performance of setup shared object (initialization): time 0.0001133/1.098, allocations: 476.8 kB / 0.8782 GB, free: 8.91 MB / 0.6668 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004385/1.102, allocations: 2.065 MB / 0.8802 GB, free: 6.824 MB / 0.6668 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2842/1.386, allocations: 8.834 MB / 0.8888 GB, free: 167.3 MB / 0.6668 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01885/1.405, allocations: 11.63 MB / 0.9002 GB, free: 161.6 MB / 0.6668 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001002/1.405, allocations: 31.72 kB / 0.9002 GB, free: 161.6 MB / 0.6668 GB Notification: Performance of matching and sorting (n=1595) (initialization): time 0.02643/1.432, allocations: 9.851 MB / 0.9098 GB, free: 161.2 MB / 0.6668 GB Notification: Performance of prepare postOptimizeDAE: time 7.479e-05/1.432, allocations: 46.34 kB / 0.9099 GB, free: 161.2 MB / 0.6668 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01769/1.449, allocations: 6.309 MB / 0.916 GB, free: 160.8 MB / 0.6668 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02367/1.473, allocations: 4.31 MB / 0.9202 GB, free: 160.8 MB / 0.6668 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009754/1.483, allocations: 3.079 MB / 0.9233 GB, free: 160.8 MB / 0.6668 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007424/1.49, allocations: 15.68 MB / 0.9386 GB, free: 146.3 MB / 0.6668 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009558/1.5, allocations: 459.3 kB / 0.939 GB, free: 146.3 MB / 0.6668 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00328/1.503, allocations: 0.6246 MB / 0.9396 GB, free: 146.3 MB / 0.6668 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.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.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.01046/1.514, allocations: 2.296 MB / 0.9419 GB, free: 146.2 MB / 0.6668 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.007824/1.521, allocations: 8.817 MB / 0.9505 GB, free: 138.1 MB / 0.6668 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01647/1.538, allocations: 11.56 MB / 0.9618 GB, free: 132.4 MB / 0.6668 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 0.000108/1.538, allocations: 28.34 kB / 0.9618 GB, free: 132.4 MB / 0.6668 GB Notification: Performance of matching and sorting (n=1595) (initialization_lambda0): time 0.0237/1.562, allocations: 9.801 MB / 0.9714 GB, free: 132 MB / 0.6668 GB Notification: Performance of prepare postOptimizeDAE: time 5.929e-05/1.562, allocations: 52.86 kB / 0.9714 GB, free: 132 MB / 0.6668 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01314/1.575, allocations: 6.246 MB / 0.9775 GB, free: 130.9 MB / 0.6668 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02242/1.597, allocations: 4.261 MB / 0.9817 GB, free: 128.2 MB / 0.6668 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008292/1.606, allocations: 2.987 MB / 0.9846 GB, free: 126 MB / 0.6668 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005735/1.611, allocations: 12.98 MB / 0.9973 GB, free: 113.1 MB / 0.6668 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008452/1.62, allocations: 469.1 kB / 0.9977 GB, free: 112.9 MB / 0.6668 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00255/1.622, allocations: 0.6201 MB / 0.9983 GB, free: 112.4 MB / 0.6668 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.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.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.003652/1.626, allocations: 1.009 MB / 0.9993 GB, free: 111.9 MB / 0.6668 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003156/1.629, allocations: 1.175 MB / 1 GB, free: 111 MB / 0.6668 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 1632 equation(s) and 1563 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) = ($cse577, $cse578, $cse579, $cse580, $cse581, $cse582, $cse583, $cse584, $cse585, $cse586) has size 9 but 5 variables ($cse291, $cse292, $cse293, $cse295, hex.shell.m_flow_cond) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01361/1.643, allocations: 10.75 MB / 1.011 GB, free: 102.8 MB / 0.6668 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 798] [Calling sys.exit(0), Time elapsed: 4.401264658197761]