Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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=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_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_ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 113.9 kB / 16.42 MB, free: 6.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001274, allocations: 187.9 kB / 17.35 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6518/0.6518, allocations: 91.18 MB / 382.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 71.88 kB / 0.5175 GB, free: 4.117 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2552, allocations: 67.69 MB / 0.5836 GB, free: 13.81 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.ElementTwoPhase): time 0.09341/0.3486, allocations: 114.7 MB / 0.6956 GB, free: 11.09 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.358/0.7067, allocations: 119.9 MB / 0.8127 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001918/0.7086, allocations: 70.94 kB / 0.8127 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003505/0.7122, allocations: 1.897 MB / 0.8146 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.01339/0.7256, allocations: 6.175 MB / 0.8206 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.04195/0.7676, allocations: 16.53 MB / 0.8368 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005022/0.7726, allocations: 3.946 MB / 0.8406 GB, free: 4.062 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001051/0.7737, allocations: 0.6259 MB / 0.8412 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002712/0.7764, allocations: 1.717 MB / 0.8429 GB, free: 2.117 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002026/0.7785, allocations: 1.454 MB / 0.8443 GB, free: 0.7266 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0004818/0.7789, allocations: 200 kB / 0.8445 GB, free: 0.5312 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.08501/0.864, allocations: 42.93 MB / 0.8864 GB, free: 6.137 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.000815/0.8648, allocations: 0.5204 MB / 0.887 GB, free: 5.633 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001715/0.8665, allocations: 1.355 MB / 0.8883 GB, free: 4.285 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.1553/1.022, allocations: 56.29 MB / 0.9433 GB, free: 13.24 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/1.022, allocations: 0 / 0.9433 GB, free: 13.24 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.322e-06/1.022, allocations: 0 / 0.9433 GB, free: 13.24 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 7.895e-05/1.022, allocations: 0 / 0.9433 GB, free: 13.24 MB / 0.7012 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.02722/1.049, allocations: 5.55 MB / 0.9487 GB, free: 7.645 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/1.049, allocations: 8.031 kB / 0.9487 GB, free: 7.637 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002242/1.051, allocations: 488.3 kB / 0.9491 GB, free: 7.156 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002577/1.054, allocations: 1.458 MB / 0.9506 GB, free: 5.688 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/1.054, allocations: 135.5 kB / 0.9507 GB, free: 5.555 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002759/1.054, allocations: 199.8 kB / 0.9509 GB, free: 5.359 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00405/1.059, allocations: 2.145 MB / 0.953 GB, free: 3.109 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.865e-05/1.059, allocations: 3.938 kB / 0.953 GB, free: 3.105 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001605/1.059, allocations: 76 kB / 0.9531 GB, free: 3.031 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.479e-05/1.059, allocations: 71.97 kB / 0.9531 GB, free: 2.961 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003919/1.063, allocations: 1.733 MB / 0.9548 GB, free: 1.227 MB / 0.7012 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.01224/1.075, allocations: 11.55 MB / 0.9661 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004287/1.079, allocations: 1.549 MB / 0.9676 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001727/1.081, allocations: 0.8697 MB / 0.9685 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02165/1.103, allocations: 20.1 MB / 0.9881 GB, free: 10.21 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002404/1.105, allocations: 1.048 MB / 0.9891 GB, free: 9.152 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=221): time 4.428e-06/1.105, allocations: 0 / 0.9891 GB, free: 9.152 MB / 0.7481 GB Notification: Performance of matching and sorting (n=229): time 0.02011/1.125, allocations: 6.662 MB / 0.9956 GB, free: 2.297 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.579e-05/1.125, allocations: 146.2 kB / 0.9958 GB, free: 2.125 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/1.127, allocations: 1.357 MB / 0.9971 GB, free: 0.7656 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001356/1.127, allocations: 61.7 kB / 0.9971 GB, free: 0.6992 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006591/1.128, allocations: 0.9087 MB / 0.998 GB, free: 15.78 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005492/1.128, allocations: 0.7508 MB / 0.9988 GB, free: 15.04 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000545/1.129, allocations: 359.7 kB / 0.9991 GB, free: 14.68 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.422e-05/1.129, allocations: 301.1 kB / 0.9994 GB, free: 14.38 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/1.131, allocations: 0.6873 MB / 1 GB, free: 13.7 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001942/1.133, allocations: 0.981 MB / 1.001 GB, free: 12.61 MB / 0.7637 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.003914/1.137, allocations: 2.004 MB / 1.003 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/1.137, allocations: 4 kB / 1.003 GB, free: 10.48 MB / 0.7637 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.005261/1.142, allocations: 2.4 MB / 1.005 GB, free: 8.047 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 4.901e-05/1.142, allocations: 63.39 kB / 1.005 GB, free: 7.973 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/1.142, allocations: 8 kB / 1.005 GB, free: 7.965 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01092/1.153, allocations: 0.6392 MB / 1.006 GB, free: 7.301 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/1.154, allocations: 371.4 kB / 1.006 GB, free: 6.938 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007209/1.162, allocations: 10.1 MB / 1.016 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/1.163, allocations: 95.86 kB / 1.016 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/1.163, allocations: 83.95 kB / 1.016 GB, free: 11.79 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.0007283/1.164, allocations: 389.6 kB / 1.017 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003829/1.164, allocations: 209.3 kB / 1.017 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006753/1.171, allocations: 3.479 MB / 1.02 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.626e-05/1.171, allocations: 19.89 kB / 1.02 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/1.171, allocations: 4.125 kB / 1.02 GB, free: 7.676 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007506/1.172, allocations: 469.6 kB / 1.021 GB, free: 7.195 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003055/1.172, allocations: 55.94 kB / 1.021 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/1.174, allocations: 99.89 kB / 1.021 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002782/1.174, allocations: 165.7 kB / 1.021 GB, free: 6.883 MB / 0.7794 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006726/1.174, allocations: 207.1 kB / 1.021 GB, free: 6.68 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