Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 106.6 kB / 18.68 MB, free: 3.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008246/0.008246, allocations: 195.4 kB / 21.93 MB, free: 5.633 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 225.6 MB / 250.6 MB, free: 13.38 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.8059/0.8059, allocations: 94.59 MB / 400.4 MB, free: 15.82 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|conductionElementHEX_twoPhase.h|conductionElementHEX_twoPhase.inlet.m_flow|conductionElementHEX_twoPhase1.h|conductionElementHEX_twoPhase1.inlet.m_flow|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|trapezoid.T_start|trapezoid.count|trapezoid2.T_start|trapezoid2.count|volume.M|volume.U_med|volume.m_flow_in|volume.m_flow_out|volume1.M|volume1.U_med|volume1.m_flow_in|volume1.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase") translateModel(ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|conductionElementHEX_twoPhase.h|conductionElementHEX_twoPhase.inlet.m_flow|conductionElementHEX_twoPhase1.h|conductionElementHEX_twoPhase1.inlet.m_flow|mCV.dp_int|mCV1.dp_int|mCV2.dp_int|mCV3.dp_int|trapezoid.T_start|trapezoid.count|trapezoid2.T_start|trapezoid2.count|volume.M|volume.U_med|volume.m_flow_in|volume.m_flow_out|volume1.M|volume1.U_med|volume1.m_flow_in|volume1.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002492/0.002492, allocations: 85.08 kB / 0.5464 GB, free: 42.93 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1114, allocations: 71.85 MB / 0.6166 GB, free: 8.609 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase): time 0.1215/0.2329, allocations: 116.7 MB / 0.7305 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4082/0.6411, allocations: 120.7 MB / 0.8484 GB, free: 8.543 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/0.6436, allocations: 82.28 kB / 0.8485 GB, free: 8.508 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.006925/0.6505, allocations: 1.903 MB / 0.8503 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.02126/0.6717, allocations: 6.23 MB / 0.8564 GB, free: 2.32 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.05103/0.7228, allocations: 16.56 MB / 0.8726 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.006539/0.7293, allocations: 4.066 MB / 0.8766 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009686/0.7303, allocations: 389 kB / 0.8769 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003524/0.7338, allocations: 1.782 MB / 0.8787 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002452/0.7362, allocations: 1.493 MB / 0.8801 GB, free: 12.01 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0004/0.7366, allocations: 204 kB / 0.8803 GB, free: 11.81 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.09738/0.834, allocations: 43.27 MB / 0.9226 GB, free: 460 kB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.8351, allocations: 0.5211 MB / 0.9231 GB, free: 15.93 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.002558/0.8376, allocations: 1.376 MB / 0.9244 GB, free: 14.54 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.1692/1.007, allocations: 56.42 MB / 0.9795 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/1.007, allocations: 0 / 0.9795 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.272e-06/1.007, allocations: 0 / 0.9795 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001151/1.007, allocations: 0 / 0.9795 GB, free: 6.051 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.03321/1.04, allocations: 5.861 MB / 0.9853 GB, free: 92 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/1.04, allocations: 8.031 kB / 0.9853 GB, free: 84 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00272/1.043, allocations: 0.498 MB / 0.9858 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003788/1.047, allocations: 1.568 MB / 0.9873 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/1.047, allocations: 142.4 kB / 0.9874 GB, free: 13.83 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004496/1.047, allocations: 191.9 kB / 0.9876 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004955/1.052, allocations: 2.145 MB / 0.9897 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.885e-05/1.052, allocations: 4 kB / 0.9897 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002153/1.053, allocations: 72 kB / 0.9898 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.874e-05/1.053, allocations: 75.91 kB / 0.9899 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004569/1.057, allocations: 1.733 MB / 0.9915 GB, free: 9.508 MB / 0.7325 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.01785/1.075, allocations: 11.6 MB / 1.003 GB, free: 12.76 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004998/1.08, allocations: 1.424 MB / 1.004 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001921/1.082, allocations: 0.7797 MB / 1.005 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02538/1.107, allocations: 20.1 MB / 1.025 GB, free: 2.523 MB / 0.7638 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003298/1.111, allocations: 1.04 MB / 1.026 GB, free: 1.469 MB / 0.7638 GB Notification: Performance of pre-optimization done (n=221): time 5.43e-06/1.111, allocations: 0 / 1.026 GB, free: 1.469 MB / 0.7638 GB Notification: Performance of matching and sorting (n=229): time 0.02335/1.134, allocations: 6.755 MB / 1.032 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/1.134, allocations: 154.2 kB / 1.032 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002234/1.136, allocations: 1.425 MB / 1.034 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001797/1.137, allocations: 65.69 kB / 1.034 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009324/1.137, allocations: 0.9552 MB / 1.035 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007799/1.138, allocations: 0.7861 MB / 1.036 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006972/1.139, allocations: 359.8 kB / 1.036 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001325/1.139, allocations: 305.1 kB / 1.036 GB, free: 6.43 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001927/1.141, allocations: 0.6795 MB / 1.037 GB, free: 5.75 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002293/1.143, allocations: 0.9965 MB / 1.038 GB, free: 4.656 MB / 0.7794 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: conductionElementHEX_twoPhase1.deltaE_system = $START.conductionElementHEX_twoPhase1.deltaE_system (0.0 = $START.conductionElementHEX_twoPhase1.deltaE_system) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: conductionElementHEX_twoPhase.deltaE_system = $START.conductionElementHEX_twoPhase.deltaE_system (0.0 = $START.conductionElementHEX_twoPhase.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.004434/1.148, allocations: 2 MB / 1.04 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/1.148, allocations: 8.125 kB / 1.04 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.006154/1.154, allocations: 2.413 MB / 1.042 GB, free: 80 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.901e-05/1.154, allocations: 67.39 kB / 1.042 GB, free: 0 / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3122/1.466, allocations: 4.438 kB / 1.042 GB, free: 268.7 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01067/1.477, allocations: 0.6335 MB / 1.043 GB, free: 268.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001886/1.479, allocations: 369.1 kB / 1.043 GB, free: 268.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005643/1.484, allocations: 10.1 MB / 1.053 GB, free: 259.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/1.486, allocations: 97.25 kB / 1.053 GB, free: 259.6 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002043/1.486, allocations: 77.72 kB / 1.053 GB, free: 259.6 MB / 0.7794 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: conductionElementHEX_twoPhase1.deltaE_system = $START.conductionElementHEX_twoPhase1.deltaE_system conductionElementHEX_twoPhase.deltaE_system = $START.conductionElementHEX_twoPhase.deltaE_system. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 28 (volume1.medium.phase,flowResistance2.outlet.state.phase,source3.outlet.state.phase,mCV3.outlet.state.phase,volume1.inlet.state.phase,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,source1.outlet.state.phase,mCV1.outlet.state.phase,conductionElementHEX_twoPhase1.state.phase,conductionElementHEX_twoPhase1.outlet.state.phase,$whenCondition2,volume.medium.phase,trapezoid2.count,$PRE.trapezoid2.count,trapezoid2.T_start,$PRE.trapezoid2.T_start,flowResistance.outlet.state.phase,source2.outlet.state.phase,mCV2.outlet.state.phase,volume.inlet.state.phase,source.outlet.state.phase,mCV.outlet.state.phase,conductionElementHEX_twoPhase.state.phase,conductionElementHEX_twoPhase.outlet.state.phase,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,4,100.0%), (1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0008247/1.487, allocations: 398.5 kB / 1.054 GB, free: 259.5 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004132/1.488, allocations: 232.7 kB / 1.054 GB, free: 259.5 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006526/1.494, allocations: 3.457 MB / 1.057 GB, free: 258.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.873e-05/1.494, allocations: 9.844 kB / 1.057 GB, free: 258.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.475e-06/1.494, allocations: 2.875 kB / 1.057 GB, free: 258.4 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008921/1.495, allocations: 0.4916 MB / 1.058 GB, free: 258.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002503/1.495, allocations: 44.84 kB / 1.058 GB, free: 258.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/1.497, allocations: 103.7 kB / 1.058 GB, free: 258.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000331/1.497, allocations: 166.1 kB / 1.058 GB, free: 258.2 MB / 0.7794 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): volume.medium.u = volume.medium.h - volume.medium.p / mCV2.rho_in 2/2 (9): $cse25 = ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase.volume.Medium.derivsOf_ph(volume.medium.p, volume.medium.h, $cse26) 3/11 (1): $cse26 = ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase.volume.Medium.getPhase_ph(volume.medium.p, volume.medium.h) 4/12 (1): mCV2.rho_in = $cse25.rho Variables: 1: $cse25.phase:DISCRETE(protected = true ) type: Integer unreplaceable 2: volume.medium.p:DUMMY_STATE(flow=false min = 0.0 max = 1e8 start = 101325.0 unit = \"Pa\" nominal = 1e5 stateSelect=StateSelect.prefer ) \"Absolute pressure of medium\" type: Real 3: $cse26:DISCRETE(protected = true ) type: Integer unreplaceable 4: $cse25.h:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse25.T:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse25.rho:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse25.cv:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse25.pd:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse25.p:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse25.dpT:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse25.pt:VARIABLE(protected = true ) type: Real unreplaceable 12: volume.medium.h:DUMMY_STATE(flow=false min = -1e10 max = 1e10 start = 4.2e5 unit = \"J/kg\" nominal = 5e5 stateSelect=StateSelect.prefer ) \"Specific enthalpy of medium\" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9806:5-9807:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000698/1.498, allocations: 215.5 kB / 1.058 GB, free: 258 MB / 0.7794 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase could not be translated " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 4.8756778839742765] Failed to read output from testmodel.py, exit status != 0: 1.5053521700319834 1.517388019 0.50804839 Calling exit ...