Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase.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/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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: translateModel(ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase") translateModel(ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008961/0.0008959, allocations: 172.8 kB / 16.11 MB, free: 5.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.126/1.126, allocations: 205 MB / 221.9 MB, free: 9.141 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.0006831/0.0006831, allocations: 87.84 kB / 269.9 MB, free: 8.672 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5946/0.5946, allocations: 90.51 MB / 408.3 MB, free: 3.938 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002678/0.0002679, allocations: 12.2 kB / 484.9 MB, free: 7.207 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2198, allocations: 65.81 MB / 0.5378 GB, free: 34.91 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase): time 0.07816/0.298, allocations: 113.1 MB / 0.6482 GB, free: 5.547 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.301/0.5991, allocations: 122.3 MB / 0.7676 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001877/0.601, allocations: 27.19 kB / 0.7676 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.003218/0.6042, allocations: 1.508 MB / 0.7691 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.01188/0.6161, allocations: 5.029 MB / 0.774 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.03474/0.6509, allocations: 13.04 MB / 0.7867 GB, free: 8.102 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.00447/0.6554, allocations: 4.388 MB / 0.791 GB, free: 4.062 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006644/0.656, allocations: 0.5445 MB / 0.7916 GB, free: 3.508 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00164/0.6577, allocations: 1.338 MB / 0.7929 GB, free: 2.215 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.6588, allocations: 1.264 MB / 0.7941 GB, free: 1.02 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.659, allocations: 87.94 kB / 0.7942 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4021/1.061, allocations: 131.7 MB / 0.9228 GB, free: 108.4 MB / 0.6355 GB Notification: Performance of NFScalarize.scalarize: time 0.0007268/1.062, allocations: 366 kB / 0.9232 GB, free: 108.4 MB / 0.6355 GB Notification: Performance of NFVerifyModel.verify: time 0.00229/1.064, allocations: 1.113 MB / 0.9243 GB, free: 108.4 MB / 0.6355 GB Notification: Performance of NFConvertDAE.convert: time 0.2199/1.284, allocations: 103 MB / 1.025 GB, free: 44.93 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/1.284, allocations: 4 kB / 1.025 GB, free: 44.93 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.964e-06/1.284, allocations: 0 / 1.025 GB, free: 44.93 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.601e-05/1.284, allocations: 1.125 kB / 1.025 GB, free: 44.93 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: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.0269/1.311, allocations: 4.967 MB / 1.03 GB, free: 40.21 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/1.311, allocations: 8.031 kB / 1.03 GB, free: 40.21 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001946/1.313, allocations: 451.9 kB / 1.03 GB, free: 39.82 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/1.314, allocations: 1.011 MB / 1.031 GB, free: 39.02 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.581e-05/1.314, allocations: 140.7 kB / 1.031 GB, free: 38.94 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001925/1.315, allocations: 190.6 kB / 1.031 GB, free: 38.81 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003033/1.318, allocations: 2.19 MB / 1.034 GB, free: 37.23 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.422e-05/1.318, allocations: 6.438 kB / 1.034 GB, free: 37.22 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/1.318, allocations: 75.88 kB / 1.034 GB, free: 37.21 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.625e-05/1.318, allocations: 71.22 kB / 1.034 GB, free: 37.15 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003155/1.321, allocations: 1.803 MB / 1.036 GB, free: 35.92 MB / 0.6355 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.008069/1.329, allocations: 11.22 MB / 1.046 GB, free: 25.59 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003554/1.333, allocations: 1.645 MB / 1.048 GB, free: 24.45 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/1.334, allocations: 0.912 MB / 1.049 GB, free: 23.87 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01165/1.346, allocations: 16.44 MB / 1.065 GB, free: 4.801 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001854/1.348, allocations: 1.077 MB / 1.066 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=221): time 3.747e-06/1.348, allocations: 0 / 1.066 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of matching and sorting (n=229): time 0.01653/1.364, allocations: 6.722 MB / 1.073 GB, free: 14.67 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/1.364, allocations: 98.77 kB / 1.073 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/1.365, allocations: 0.998 MB / 1.074 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001066/1.365, allocations: 61.59 kB / 1.074 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004461/1.366, allocations: 0.7561 MB / 1.075 GB, free: 13.24 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004815/1.366, allocations: 0.7431 MB / 1.075 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.675e-05/1.366, allocations: 35.31 kB / 1.075 GB, free: 12.59 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001467/1.367, allocations: 390.6 kB / 1.076 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001489/1.368, allocations: 0.723 MB / 1.076 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001716/1.37, allocations: 1.013 MB / 1.077 GB, free: 10.93 MB / 0.6511 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.003485/1.373, allocations: 2.083 MB / 1.079 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/1.373, allocations: 0 / 1.079 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.004734/1.378, allocations: 2.452 MB / 1.082 GB, free: 7.617 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.514e-05/1.378, allocations: 68.7 kB / 1.082 GB, free: 7.543 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/1.378, allocations: 8 kB / 1.082 GB, free: 7.535 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009047/1.387, allocations: 0.6275 MB / 1.082 GB, free: 6.977 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/1.389, allocations: 393.5 kB / 1.083 GB, free: 6.625 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006065/1.395, allocations: 9.465 MB / 1.092 GB, free: 13.04 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/1.396, allocations: 176.9 kB / 1.092 GB, free: 12.89 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/1.396, allocations: 74.34 kB / 1.092 GB, free: 12.84 MB / 0.6667 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: 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,$whenCondition2,conductionElementHEX_twoPhase1.outlet.state.phase,conductionElementHEX_twoPhase1.state.phase,mCV1.outlet.state.phase,source1.outlet.state.phase,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,volume1.inlet.state.phase,mCV3.outlet.state.phase,source3.outlet.state.phase,flowResistance2.outlet.state.phase,volume.medium.phase,$whenCondition1,conductionElementHEX_twoPhase.outlet.state.phase,conductionElementHEX_twoPhase.state.phase,mCV.outlet.state.phase,source.outlet.state.phase,volume.inlet.state.phase,mCV2.outlet.state.phase,source2.outlet.state.phase,flowResistance.outlet.state.phase,$PRE.trapezoid2.T_start,trapezoid2.T_start,$PRE.trapezoid2.count,trapezoid2.count) * 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.0006112/1.397, allocations: 384.1 kB / 1.093 GB, free: 12.61 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003433/1.397, allocations: 173.8 kB / 1.093 GB, free: 12.43 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006057/1.403, allocations: 3.398 MB / 1.096 GB, free: 10.1 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.042e-05/1.403, allocations: 7.969 kB / 1.096 GB, free: 10.09 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/1.403, allocations: 4 kB / 1.096 GB, free: 10.09 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005769/1.404, allocations: 447.4 kB / 1.097 GB, free: 9.73 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002096/1.404, allocations: 40.75 kB / 1.097 GB, free: 9.719 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/1.405, allocations: 192 kB / 1.097 GB, free: 9.555 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/1.406, allocations: 162.5 kB / 1.097 GB, free: 9.414 MB / 0.6667 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524: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): $cse22 = ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase.volume.Medium.derivsOf_ph(volume.medium.p, volume.medium.h, $cse23) 3/11 (1): mCV2.rho_in = $cse22.rho 4/12 (1): $cse23 = ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase.volume.Medium.getPhase_ph(volume.medium.p, volume.medium.h) Variables: 1: volume.medium.p:DUMMY_STATE(flow=false min = 0.0 max = 100000000.0 start = 101325.0 unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real 2: $cse22.dpT:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse22.cv:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse22.T:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse22.rho:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse23:DISCRETE(protected = true ) type: Integer unreplaceable 7: $cse22.pt:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse22.p:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse22.h:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse22.pd:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse22.phase:DISCRETE(protected = true ) type: Integer unreplaceable 12: volume.medium.h:DUMMY_STATE(flow=false min = -10000000000.0 max = 10000000000.0 start = 420000.0 unit = "J/kg" nominal = 500000.0 stateSelect=StateSelect.prefer ) "Specific enthalpy of medium" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9746:5-9747:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005978/1.406, allocations: 215.1 kB / 1.097 GB, free: 9.219 MB / 0.6667 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.