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.001109/0.001109, allocations: 116 kB / 16.42 MB, free: 6.496 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.001074/0.001074, allocations: 185.7 kB / 17.34 MB, free: 5.758 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.331/1.331, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6769/0.6769, allocations: 91.19 MB / 382.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 75.88 kB / 0.5175 GB, free: 4.117 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2729, allocations: 67.68 MB / 0.5836 GB, free: 14.04 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling): time 0.4132/0.6862, allocations: 159.5 MB / 0.7394 GB, free: 0.8359 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03916/0.7254, allocations: 42.74 MB / 0.7812 GB, free: 168 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00419/0.7296, allocations: 116.8 kB / 0.7813 GB, free: 168 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004876/0.7345, allocations: 2.205 MB / 0.7834 GB, free: 112 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01025/0.7448, allocations: 4.3 MB / 0.7876 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.02966/0.7745, allocations: 12.5 MB / 0.7998 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.009897/0.7844, allocations: 8.476 MB / 0.8081 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001183/0.7856, allocations: 0.7902 MB / 0.8089 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.07744/0.863, allocations: 35.95 MB / 0.844 GB, free: 1.633 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.2056/1.069, allocations: 88.2 MB / 0.9301 GB, free: 9.238 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.001519/1.07, allocations: 368 kB / 0.9305 GB, free: 8.879 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02014/1.09, allocations: 8.785 MB / 0.9391 GB, free: 172 kB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001512/1.092, allocations: 0.9499 MB / 0.94 GB, free: 15.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.003768/1.096, allocations: 2.464 MB / 0.9424 GB, free: 12.8 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.02082/1.117, allocations: 10.48 MB / 0.9526 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/1.117, allocations: 0 / 0.9526 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.423e-06/1.117, allocations: 0 / 0.9526 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 0.0001556/1.117, allocations: 0 / 0.9526 GB, free: 2.844 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.01185/1.129, allocations: 5.625 MB / 0.9581 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/1.129, allocations: 8.031 kB / 0.9581 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009721/1.138, allocations: 1.372 MB / 0.9595 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004559/1.143, allocations: 2.352 MB / 0.9618 GB, free: 9.469 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004069/1.143, allocations: 348.3 kB / 0.9621 GB, free: 9.125 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00101/1.144, allocations: 447.8 kB / 0.9625 GB, free: 8.688 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01221/1.157, allocations: 5.583 MB / 0.968 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.412e-05/1.157, allocations: 19.81 kB / 0.968 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003839/1.157, allocations: 188 kB / 0.9682 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.897e-05/1.157, allocations: 108 kB / 0.9683 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/1.169, allocations: 4.457 MB / 0.9726 GB, free: 13.96 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.03072/1.2, allocations: 30.5 MB / 1.002 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01035/1.21, allocations: 3.386 MB / 1.006 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003088/1.213, allocations: 1.346 MB / 1.007 GB, free: 7.984 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03354/1.247, allocations: 16.4 MB / 1.023 GB, free: 5.664 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001341/1.247, allocations: 88.66 kB / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of pre-optimization done (n=299): time 8.957e-06/1.247, allocations: 0 / 1.023 GB, free: 5.57 MB / 0.795 GB Notification: Performance of matching and sorting (n=314): time 0.3012/1.548, allocations: 16.53 MB / 1.039 GB, free: 347.8 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/1.549, allocations: 320.4 kB / 1.04 GB, free: 347.4 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002738/1.551, allocations: 2.024 MB / 1.042 GB, free: 346.7 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0004678/1.552, allocations: 93.52 kB / 1.042 GB, free: 346.6 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008592/1.553, allocations: 1.847 MB / 1.043 GB, free: 345.4 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007281/1.553, allocations: 1.149 MB / 1.045 GB, free: 344.6 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009342/1.554, allocations: 0.787 MB / 1.045 GB, free: 344.2 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 4.394e-05/1.554, allocations: 308.8 kB / 1.046 GB, free: 343.9 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002644/1.557, allocations: 1.299 MB / 1.047 GB, free: 343.5 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003159/1.56, allocations: 2.595 MB / 1.049 GB, free: 341.4 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005958/1.566, allocations: 4.095 MB / 1.053 GB, free: 338.5 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.81e-05/1.566, allocations: 11.84 kB / 1.053 GB, free: 338.5 MB / 0.795 GB Notification: Performance of matching and sorting (n=526) (initialization): time 0.01107/1.577, allocations: 5.233 MB / 1.059 GB, free: 336.4 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/1.577, allocations: 20.78 kB / 1.059 GB, free: 336.4 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-05/1.577, allocations: 42.28 kB / 1.059 GB, free: 336.4 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004232/1.582, allocations: 1.125 MB / 1.06 GB, free: 336 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002967/1.585, allocations: 0.8726 MB / 1.061 GB, free: 335.9 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/1.597, allocations: 23.8 MB / 1.084 GB, free: 312.4 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003193/1.6, allocations: 289.9 kB / 1.084 GB, free: 312.3 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000316/1.6, allocations: 221.3 kB / 1.084 GB, free: 312.1 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.001463/1.602, allocations: 0.7021 MB / 1.085 GB, free: 311.5 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007105/1.603, allocations: 333.9 kB / 1.085 GB, free: 311.1 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01587/1.618, allocations: 13.84 MB / 1.099 GB, free: 297.4 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.381e-05/1.619, allocations: 27.86 kB / 1.099 GB, free: 297.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.395e-05/1.619, allocations: 4 kB / 1.099 GB, free: 297.3 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008662/1.619, allocations: 0.6154 MB / 1.099 GB, free: 296.8 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005421/1.62, allocations: 107.6 kB / 1.1 GB, free: 296.7 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002724/1.623, allocations: 253.5 kB / 1.1 GB, free: 296.5 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005179/1.623, allocations: 304 kB / 1.1 GB, free: 296.2 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.0007977/1.624, allocations: 327.5 kB / 1.1 GB, free: 295.9 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