Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.Undirected.Boundaries.Tests.VolumesDirectCoupling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundaryRear.fore.m_flow|boundaryRear1.fore.m_flow|heatportVolume1.M|heatportVolume1.U_med|heatportVolume10.M|heatportVolume10.U_med|heatportVolume11.M|heatportVolume11.U_med|heatportVolume11.m_flow_fore|heatportVolume12.M|heatportVolume12.U_med|heatportVolume12.m_flow_fore|heatportVolume13.M|heatportVolume13.U_med|heatportVolume14.M|heatportVolume14.U_med|heatportVolume14.m_flow_fore|heatportVolume2.M|heatportVolume2.U_med|heatportVolume2.m_flow_fore|heatportVolume3.M|heatportVolume3.U_med|heatportVolume3.m_flow_fore|heatportVolume4.M|heatportVolume4.U_med|heatportVolume5.M|heatportVolume5.U_med|heatportVolume5.m_flow_fore|heatportVolume6.M|heatportVolume6.U_med|heatportVolume7.M|heatportVolume7.U_med|heatportVolume7.m_flow_fore|heatportVolume8.M|heatportVolume8.U_med|heatportVolume8.m_flow_fore|heatportVolume9.M|heatportVolume9.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|boundaryRear.fore.m_flow|boundaryRear1.fore.m_flow|heatportVolume1.M|heatportVolume1.U_med|heatportVolume10.M|heatportVolume10.U_med|heatportVolume11.M|heatportVolume11.U_med|heatportVolume11.m_flow_fore|heatportVolume12.M|heatportVolume12.U_med|heatportVolume12.m_flow_fore|heatportVolume13.M|heatportVolume13.U_med|heatportVolume14.M|heatportVolume14.U_med|heatportVolume14.m_flow_fore|heatportVolume2.M|heatportVolume2.U_med|heatportVolume2.m_flow_fore|heatportVolume3.M|heatportVolume3.U_med|heatportVolume3.m_flow_fore|heatportVolume4.M|heatportVolume4.U_med|heatportVolume5.M|heatportVolume5.U_med|heatportVolume5.m_flow_fore|heatportVolume6.M|heatportVolume6.U_med|heatportVolume7.M|heatportVolume7.U_med|heatportVolume7.m_flow_fore|heatportVolume8.M|heatportVolume8.U_med|heatportVolume8.m_flow_fore|heatportVolume9.M|heatportVolume9.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 110.7 kB / 16.42 MB, free: 6.516 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.001119/0.001119, allocations: 192.3 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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6729/0.6729, allocations: 91.19 MB / 382.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 79.88 kB / 0.5175 GB, free: 4.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2762, allocations: 67.69 MB / 0.5836 GB, free: 13.97 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling): time 0.4142/0.6905, allocations: 159.5 MB / 0.7394 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.04007/0.7306, allocations: 42.74 MB / 0.7812 GB, free: 184 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004178/0.7348, allocations: 121.1 kB / 0.7813 GB, free: 180 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004844/0.7397, allocations: 2.202 MB / 0.7834 GB, free: 132 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0105/0.7503, allocations: 4.301 MB / 0.7876 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02951/0.7798, allocations: 12.52 MB / 0.7999 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0102/0.79, allocations: 8.462 MB / 0.8081 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001501/0.7915, allocations: 0.7892 MB / 0.8089 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0918/0.8833, allocations: 35.95 MB / 0.844 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.203/1.086, allocations: 88.2 MB / 0.9301 GB, free: 9.215 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.001546/1.088, allocations: 372 kB / 0.9305 GB, free: 8.852 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0198/1.108, allocations: 8.781 MB / 0.9391 GB, free: 148 kB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001482/1.109, allocations: 0.9482 MB / 0.94 GB, free: 15.23 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.004231/1.114, allocations: 2.466 MB / 0.9424 GB, free: 12.78 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0197/1.133, allocations: 10.44 MB / 0.9526 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/1.133, allocations: 4 kB / 0.9526 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/1.133, allocations: 0 / 0.9526 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001574/1.134, allocations: 0 / 0.9526 GB, free: 2.859 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: 1074 * Number of variables: 1074 Notification: Performance of Generate backend data structure: time 0.01124/1.145, allocations: 5.466 MB / 0.9579 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/1.145, allocations: 8.031 kB / 0.9579 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009539/1.154, allocations: 1.35 MB / 0.9593 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00409/1.158, allocations: 2.334 MB / 0.9615 GB, free: 9.688 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003014/1.159, allocations: 352.3 kB / 0.9619 GB, free: 9.34 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000626/1.159, allocations: 447.7 kB / 0.9623 GB, free: 8.902 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01254/1.172, allocations: 5.575 MB / 0.9677 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.311e-05/1.172, allocations: 19.81 kB / 0.9678 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000416/1.172, allocations: 192 kB / 0.9679 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.113e-05/1.173, allocations: 108 kB / 0.9681 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01154/1.184, allocations: 4.449 MB / 0.9724 GB, free: 14.19 MB / 0.7481 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.02854/1.213, allocations: 30.46 MB / 1.002 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/1.223, allocations: 3.39 MB / 1.005 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00294/1.226, allocations: 1.342 MB / 1.007 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03524/1.261, allocations: 16.41 MB / 1.023 GB, free: 5.914 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.59e-05/1.262, allocations: 84.66 kB / 1.023 GB, free: 5.824 MB / 0.795 GB Notification: Performance of pre-optimization done (n=299): time 5.36e-06/1.262, allocations: 0 / 1.023 GB, free: 5.824 MB / 0.795 GB Notification: Performance of matching and sorting (n=314): time 0.2939/1.555, allocations: 16.12 MB / 1.039 GB, free: 348.2 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.752e-05/1.556, allocations: 326.1 kB / 1.039 GB, free: 347.8 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/1.558, allocations: 2.023 MB / 1.041 GB, free: 347.1 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.000357/1.559, allocations: 85.36 kB / 1.041 GB, free: 347 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007102/1.559, allocations: 1.798 MB / 1.043 GB, free: 345.6 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.000613/1.56, allocations: 1.092 MB / 1.044 GB, free: 344.8 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008742/1.561, allocations: 0.7876 MB / 1.045 GB, free: 344.4 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 3.38e-05/1.561, allocations: 301.1 kB / 1.045 GB, free: 344.1 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002633/1.563, allocations: 1.301 MB / 1.046 GB, free: 343.6 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003056/1.567, allocations: 2.6 MB / 1.049 GB, free: 341.5 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005767/1.572, allocations: 4.095 MB / 1.053 GB, free: 338.7 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.877e-05/1.572, allocations: 13.38 kB / 1.053 GB, free: 338.7 MB / 0.795 GB Notification: Performance of matching and sorting (n=526) (initialization): time 0.01102/1.583, allocations: 5.207 MB / 1.058 GB, free: 336.6 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.641e-05/1.583, allocations: 25.97 kB / 1.058 GB, free: 336.6 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-05/1.584, allocations: 43.62 kB / 1.058 GB, free: 336.6 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004438/1.588, allocations: 1.12 MB / 1.059 GB, free: 336.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003136/1.591, allocations: 0.8854 MB / 1.06 GB, free: 336.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/1.604, allocations: 23.77 MB / 1.083 GB, free: 312.7 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003169/1.607, allocations: 287.7 kB / 1.083 GB, free: 312.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000343/1.607, allocations: 220 kB / 1.083 GB, free: 312.4 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 187 * Number of states: 0 () * Number of discrete variables: 34 (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,boundaryFore3.rear.state_rearwards.phase,boundaryFore2.rear.state_rearwards.phase,boundaryRear1.fore.state_forwards.phase,boundaryFore1.rear.state_rearwards.phase,heatportVolume6.medium.phase,heatportVolume5.medium.phase,heatportVolume4.medium.phase,heatportVolume3.medium.phase,boundaryRear.fore.state_forwards.phase,heatportVolume2.medium.phase,boundaryFore.rear.state_rearwards.phase,heatportVolume14.state_in_rear.phase,heatportVolume13.state_in_fore.phase,heatportVolume12.state_in_rear.phase,heatportVolume11.state_in_rear.phase,heatportVolume10.state_in_fore.phase,heatportVolume9.state_in_fore.phase,heatportVolume8.state_in_rear.phase,heatportVolume7.state_in_rear.phase,heatportVolume6.state_in_fore.phase,heatportVolume5.state_in_rear.phase,heatportVolume4.state_in_fore.phase,heatportVolume3.state_in_rear.phase,heatportVolume1.state_in_fore.phase,heatportVolume2.state_in_rear.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (490): * Single equations (assignments): 463 * 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,1), (1,1), (2,3), (2,3), (1,1), (2,3), (1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.00141/1.609, allocations: 0.7038 MB / 1.084 GB, free: 311.8 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007395/1.609, allocations: 320.2 kB / 1.084 GB, free: 311.5 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/1.625, allocations: 13.81 MB / 1.098 GB, free: 297.6 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.791e-05/1.626, allocations: 31.86 kB / 1.098 GB, free: 297.6 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/1.626, allocations: 0 / 1.098 GB, free: 297.6 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007923/1.626, allocations: 0.5988 MB / 1.099 GB, free: 297 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005179/1.627, allocations: 99.53 kB / 1.099 GB, free: 296.9 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002707/1.63, allocations: 251.6 kB / 1.099 GB, free: 296.7 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004784/1.63, allocations: 307.5 kB / 1.099 GB, free: 296.4 MB / 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 < $cse45.h or heatportVolume14.medium.state.h > $cse46.h or heatportVolume14.medium.state.p > 2.2064e7 then 1 else 2 2/2 (16): $cse47 = 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 = $cse47.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: $cse47.vt:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse47.cp:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse47.R_s:VARIABLE(protected = true ) type: Real unreplaceable 5: heatportVolume14.medium.state.h:DUMMY_STATE(min = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 stateSelect=StateSelect.never ) "Specific enthalpy" type: Real 6: $cse47.x:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse47.h:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse47.p:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse47.pt:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse47.phase:DISCRETE(protected = true ) type: Integer unreplaceable 11: $cse47.dpT:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse47.region:DISCRETE(protected = true ) type: Integer unreplaceable 13: $cse47.T:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse47.cv:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse47.pd:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse47.s:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse47.vp:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse47.rho: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.0007942/1.631, allocations: 343 kB / 1.1 GB, free: 296 MB / 0.795 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling could not be translated