Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling.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.Boundaries.Tests.VolumesDirectCoupling,tolerance=1e-07,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|heatportVolume1.M|heatportVolume1.U_med|heatportVolume10.M|heatportVolume10.U_med|heatportVolume11.M|heatportVolume11.U_med|heatportVolume11.m_flow_out|heatportVolume12.M|heatportVolume12.U_med|heatportVolume12.m_flow_out|heatportVolume13.M|heatportVolume13.U_med|heatportVolume14.M|heatportVolume14.U_med|heatportVolume14.m_flow_out|heatportVolume2.M|heatportVolume2.U_med|heatportVolume2.m_flow_out|heatportVolume3.M|heatportVolume3.U_med|heatportVolume3.m_flow_out|heatportVolume4.M|heatportVolume4.U_med|heatportVolume5.M|heatportVolume5.U_med|heatportVolume5.m_flow_out|heatportVolume6.M|heatportVolume6.U_med|heatportVolume7.M|heatportVolume7.U_med|heatportVolume7.m_flow_out|heatportVolume8.M|heatportVolume8.U_med|heatportVolume8.m_flow_out|heatportVolume9.M|heatportVolume9.U_med|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling") translateModel(ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling,tolerance=1e-07,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|heatportVolume1.M|heatportVolume1.U_med|heatportVolume10.M|heatportVolume10.U_med|heatportVolume11.M|heatportVolume11.U_med|heatportVolume11.m_flow_out|heatportVolume12.M|heatportVolume12.U_med|heatportVolume12.m_flow_out|heatportVolume13.M|heatportVolume13.U_med|heatportVolume14.M|heatportVolume14.U_med|heatportVolume14.m_flow_out|heatportVolume2.M|heatportVolume2.U_med|heatportVolume2.m_flow_out|heatportVolume3.M|heatportVolume3.U_med|heatportVolume3.m_flow_out|heatportVolume4.M|heatportVolume4.U_med|heatportVolume5.M|heatportVolume5.U_med|heatportVolume5.m_flow_out|heatportVolume6.M|heatportVolume6.U_med|heatportVolume7.M|heatportVolume7.U_med|heatportVolume7.m_flow_out|heatportVolume8.M|heatportVolume8.U_med|heatportVolume8.m_flow_out|heatportVolume9.M|heatportVolume9.U_med|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 115.2 kB / 16.42 MB, free: 6.449 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.00164/0.00164, allocations: 183.9 kB / 17.35 MB, free: 5.738 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.3/1.3, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6779/0.6779, allocations: 91.17 MB / 382.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 75.88 kB / 0.5175 GB, free: 4.078 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2852, allocations: 67.68 MB / 0.5836 GB, free: 13.96 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling): time 0.118/0.4033, allocations: 142.5 MB / 0.7228 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.3279/0.7312, allocations: 48.25 MB / 0.7699 GB, free: 500 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003044/0.7343, allocations: 93.69 kB / 0.77 GB, free: 500 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003709/0.738, allocations: 1.93 MB / 0.7719 GB, free: 460 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007416/0.7455, allocations: 3.462 MB / 0.7752 GB, free: 320 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02497/0.7705, allocations: 11.87 MB / 0.7868 GB, free: 28 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.007968/0.7784, allocations: 7.024 MB / 0.7937 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.7796, allocations: 0.591 MB / 0.7943 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0622/0.8418, allocations: 29 MB / 0.8226 GB, free: 88 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.1136/0.9554, allocations: 51.05 MB / 0.8724 GB, free: 14.94 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.001414/0.9569, allocations: 312 kB / 0.8727 GB, free: 14.63 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0193/0.9762, allocations: 8.467 MB / 0.881 GB, free: 6.223 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001344/0.9775, allocations: 0.8125 MB / 0.8818 GB, free: 5.438 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.00371/0.9813, allocations: 1.97 MB / 0.8837 GB, free: 3.484 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.01601/0.9973, allocations: 8.901 MB / 0.8924 GB, free: 11.03 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.9973, allocations: 0 / 0.8924 GB, free: 11.03 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.313e-06/0.9973, allocations: 0 / 0.8924 GB, free: 11.03 MB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0001196/0.9974, allocations: 0 / 0.8924 GB, free: 11.03 MB / 0.67 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 794 * Number of variables: 794 Notification: Performance of Generate backend data structure: time 0.009169/1.007, allocations: 4.58 MB / 0.8969 GB, free: 6.438 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/1.007, allocations: 12.02 kB / 0.8969 GB, free: 6.426 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007824/1.014, allocations: 1.066 MB / 0.8979 GB, free: 5.355 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003215/1.018, allocations: 1.979 MB / 0.8999 GB, free: 3.371 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002428/1.018, allocations: 274.2 kB / 0.9001 GB, free: 3.102 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004442/1.018, allocations: 343.6 kB / 0.9005 GB, free: 2.766 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01024/1.029, allocations: 4.45 MB / 0.9048 GB, free: 14.05 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.756e-05/1.029, allocations: 11.88 kB / 0.9048 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000326/1.029, allocations: 152 kB / 0.905 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.104e-05/1.029, allocations: 80 kB / 0.905 GB, free: 13.81 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/1.039, allocations: 3.681 MB / 0.9086 GB, free: 10.14 MB / 0.6856 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.02111/1.06, allocations: 21.53 MB / 0.9297 GB, free: 2.902 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009237/1.07, allocations: 3.117 MB / 0.9327 GB, free: 15.71 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002613/1.072, allocations: 1.232 MB / 0.9339 GB, free: 14.45 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03406/1.106, allocations: 16.17 MB / 0.9497 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.296e-05/1.106, allocations: 98.7 kB / 0.9498 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=261): time 5.711e-06/1.107, allocations: 0 / 0.9498 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of matching and sorting (n=276): time 0.03652/1.143, allocations: 14.32 MB / 0.9638 GB, free: 13.29 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/1.143, allocations: 315.2 kB / 0.9641 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001956/1.145, allocations: 1.681 MB / 0.9657 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0002416/1.145, allocations: 89.7 kB / 0.9658 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009057/1.146, allocations: 1.398 MB / 0.9672 GB, free: 9.691 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007805/1.147, allocations: 0.958 MB / 0.9681 GB, free: 8.742 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009074/1.148, allocations: 0.6601 MB / 0.9688 GB, free: 8.074 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 9.573e-05/1.148, allocations: 305.1 kB / 0.969 GB, free: 7.773 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002737/1.151, allocations: 1.155 MB / 0.9702 GB, free: 6.617 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003335/1.154, allocations: 2.159 MB / 0.9723 GB, free: 4.027 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006239/1.16, allocations: 3.451 MB / 0.9757 GB, free: 156 kB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.612e-05/1.16, allocations: 8 kB / 0.9757 GB, free: 148 kB / 0.7481 GB Notification: Performance of matching and sorting (n=448) (initialization): time 0.01091/1.171, allocations: 4.599 MB / 0.9801 GB, free: 11.46 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/1.171, allocations: 24 kB / 0.9802 GB, free: 11.44 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.821e-05/1.171, allocations: 32 kB / 0.9802 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005043/1.177, allocations: 1.19 MB / 0.9814 GB, free: 10.14 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002528/1.179, allocations: 0.6981 MB / 0.982 GB, free: 9.438 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01804/1.197, allocations: 23.88 MB / 1.005 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00251/1.2, allocations: 250.7 kB / 1.006 GB, free: 15.48 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003049/1.2, allocations: 183.9 kB / 1.006 GB, free: 15.3 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 143 * Number of states: 0 () * Number of discrete variables: 24 (heatportVolume1.medium.phase,heatportVolume7.medium.phase,heatportVolume9.medium.phase,heatportVolume8.medium.phase,heatportVolume10.medium.phase,heatportVolume11.medium.phase,heatportVolume13.medium.phase,heatportVolume12.medium.phase,heatportVolume14.medium.phase,source1.outlet.state.phase,heatportVolume6.medium.phase,heatportVolume5.medium.phase,heatportVolume4.medium.phase,heatportVolume3.medium.phase,source.outlet.state.phase,heatportVolume2.medium.phase,heatportVolume14.state_in.phase,heatportVolume12.state_in.phase,heatportVolume11.state_in.phase,heatportVolume8.state_in.phase,heatportVolume7.state_in.phase,heatportVolume5.state_in.phase,heatportVolume3.state_in.phase,heatportVolume2.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (400): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 27 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 17 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,5), (2,4), (2,3), (2,3), (1,5), (2,3), (1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.001392/1.201, allocations: 0.583 MB / 1.006 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008593/1.202, allocations: 280.8 kB / 1.007 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01879/1.221, allocations: 13.09 MB / 1.019 GB, free: 1.258 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-05/1.221, allocations: 19.94 kB / 1.019 GB, free: 1.238 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.187e-05/1.221, allocations: 8 kB / 1.019 GB, free: 1.23 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006885/1.222, allocations: 0.5448 MB / 1.02 GB, free: 0.6602 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000407/1.222, allocations: 83.73 kB / 1.02 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002782/1.225, allocations: 279.6 kB / 1.02 GB, free: 312 kB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000452/1.225, allocations: 264 kB / 1.021 GB, free: 48 kB / 0.795 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): heatportVolume14.medium.phase = if heatportVolume14.medium.state.h < $cse42.h or heatportVolume14.medium.state.h > $cse43.h or heatportVolume14.medium.state.p > 2.2064e7 then 1 else 2 2/2 (16): $cse44 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.waterBaseProp_ph(heatportVolume14.medium.state.p, heatportVolume14.medium.state.h, heatportVolume14.medium.phase, 0) 3/18 (1): heatportVolume14.medium.d = $cse44.rho 4/19 (1): heatportVolume14.medium.u = heatportVolume14.medium.state.h - heatportVolume14.medium.state.p / heatportVolume14.medium.d Variables: 1: heatportVolume14.medium.d:DUMMY_STATE(min = 0.0 max = 1e5 start = 150.0 unit = "kg/m3" nominal = 500.0 ) "Density of medium" type: Real 2: $cse44.vp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse44.rho:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse44.T:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse44.x:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse44.dpT:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse44.cp:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse44.s:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse44.R_s:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse44.pt:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse44.cv:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse44.phase:DISCRETE(protected = true ) type: Integer unreplaceable 13: heatportVolume14.medium.state.h:DUMMY_STATE(min = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 stateSelect=StateSelect.never ) "Specific enthalpy" type: Real 14: $cse44.pd:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse44.p:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse44.region:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse44.vt:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse44.h:VARIABLE(protected = true ) type: Real unreplaceable 19: heatportVolume14.medium.phase:DISCRETE(min = 0 max = 2 start = 1 fixed = false ) "2 for two-phase, 1 for one-phase, 0 if not known" type: Integer [/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.0008755/1.226, allocations: 335.5 kB / 1.021 GB, free: 15.72 MB / 0.8106 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling could not be translated