Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 111.1 kB / 18.68 MB, free: 3.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001822/0.001822, allocations: 200.4 kB / 21.94 MB, free: 76 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 225.6 MB / 250.6 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.7059/0.7059, allocations: 94.59 MB / 400.4 MB, free: 15.81 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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=10000,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_dev_ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling") translateModel(ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling,tolerance=1e-07,outputFormat="mat",numberOfIntervals=10000,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_dev_ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002332/0.002332, allocations: 84.23 kB / 0.5464 GB, free: 43.06 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1293, allocations: 71.85 MB / 0.6166 GB, free: 8.578 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling): time 0.5435/0.6729, allocations: 144.7 MB / 0.7579 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.05255/0.7254, allocations: 48.65 MB / 0.8054 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005156/0.7306, allocations: 98.56 kB / 0.8055 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.005466/0.736, allocations: 1.939 MB / 0.8074 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01109/0.7471, allocations: 3.483 MB / 0.8108 GB, free: 1.895 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03348/0.7806, allocations: 11.88 MB / 0.8224 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01086/0.7915, allocations: 7.066 MB / 0.8293 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009883/0.7925, allocations: 340.8 kB / 0.8296 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.06915/0.8616, allocations: 29.1 MB / 0.858 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.1292/0.9908, allocations: 51.21 MB / 0.908 GB, free: 4.148 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.001633/0.9925, allocations: 312 kB / 0.9083 GB, free: 3.844 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02134/1.014, allocations: 8.477 MB / 0.9166 GB, free: 11.43 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001451/1.015, allocations: 0.8276 MB / 0.9174 GB, free: 10.62 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.003673/1.019, allocations: 1.981 MB / 0.9194 GB, free: 8.664 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.02451/1.043, allocations: 8.949 MB / 0.9281 GB, free: 208 kB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/1.043, allocations: 0 / 0.9281 GB, free: 208 kB / 0.67 GB Notification: Performance of FrontEnd: time 1.453e-06/1.043, allocations: 0 / 0.9281 GB, free: 208 kB / 0.67 GB Notification: Performance of Transformations before backend: time 0.000133/1.044, allocations: 0 / 0.9281 GB, free: 208 kB / 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.01118/1.055, allocations: 4.728 MB / 0.9327 GB, free: 11.45 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/1.055, allocations: 11.97 kB / 0.9327 GB, free: 11.44 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008474/1.063, allocations: 1.093 MB / 0.9338 GB, free: 10.35 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00466/1.068, allocations: 2.016 MB / 0.9358 GB, free: 8.332 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003344/1.068, allocations: 278.2 kB / 0.936 GB, free: 8.059 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006184/1.069, allocations: 339.8 kB / 0.9364 GB, free: 7.727 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/1.081, allocations: 4.44 MB / 0.9407 GB, free: 3.02 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-05/1.081, allocations: 15.88 kB / 0.9407 GB, free: 3.004 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004223/1.081, allocations: 148 kB / 0.9409 GB, free: 2.859 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.44e-05/1.081, allocations: 80 kB / 0.9409 GB, free: 2.781 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01134/1.093, allocations: 3.693 MB / 0.9445 GB, free: 15.1 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.03122/1.124, allocations: 21.55 MB / 0.9656 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01395/1.138, allocations: 2.97 MB / 0.9685 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004214/1.142, allocations: 1.132 MB / 0.9696 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04125/1.183, allocations: 16.18 MB / 0.9854 GB, free: 1.574 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001207/1.183, allocations: 90.81 kB / 0.9855 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=261): time 5.2e-06/1.183, allocations: 0 / 0.9855 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of matching and sorting (n=276): time 0.03918/1.223, allocations: 14.63 MB / 0.9998 GB, free: 2.191 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000193/1.223, allocations: 307.8 kB / 1 GB, free: 1.824 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002451/1.225, allocations: 1.703 MB / 1.002 GB, free: 92 kB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.00055/1.226, allocations: 86.09 kB / 1.002 GB, free: 0 / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.001238/1.227, allocations: 1.461 MB / 1.003 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.001099/1.228, allocations: 1.012 MB / 1.004 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/1.229, allocations: 0.6564 MB / 1.005 GB, free: 12.88 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000149/1.229, allocations: 301.1 kB / 1.005 GB, free: 12.58 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002902/1.232, allocations: 1.162 MB / 1.006 GB, free: 11.41 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003849/1.236, allocations: 2.159 MB / 1.008 GB, free: 8.824 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006847/1.243, allocations: 3.467 MB / 1.012 GB, free: 4.938 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-05/1.243, allocations: 8 kB / 1.012 GB, free: 4.93 MB / 0.7637 GB Notification: Performance of matching and sorting (n=448) (initialization): time 0.01178/1.255, allocations: 4.581 MB / 1.016 GB, free: 264 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 4.055e-05/1.255, allocations: 16.97 kB / 1.016 GB, free: 248 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.856e-05/1.255, allocations: 35.98 kB / 1.016 GB, free: 212 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005296/1.26, allocations: 1.19 MB / 1.017 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002964/1.263, allocations: 0.6981 MB / 1.018 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02203/1.285, allocations: 23.88 MB / 1.041 GB, free: 4.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003105/1.288, allocations: 258.9 kB / 1.042 GB, free: 4.266 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003472/1.289, allocations: 183.9 kB / 1.042 GB, free: 4.086 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.001575/1.29, allocations: 0.5867 MB / 1.042 GB, free: 3.488 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009288/1.291, allocations: 298.2 kB / 1.043 GB, free: 3.195 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3229/1.614, allocations: 12.6 MB / 1.055 GB, free: 328.6 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.52e-05/1.614, allocations: 18.44 kB / 1.055 GB, free: 328.6 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/1.614, allocations: 2.031 kB / 1.055 GB, free: 328.6 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009784/1.615, allocations: 0.5691 MB / 1.056 GB, free: 328.5 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004861/1.615, allocations: 80.98 kB / 1.056 GB, free: 328.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002932/1.618, allocations: 285.5 kB / 1.056 GB, free: 328.4 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006227/1.619, allocations: 255.6 kB / 1.056 GB, free: 328.4 MB / 0.795 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9806:5-9807:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009286/1.62, allocations: 322.2 kB / 1.057 GB, free: 328.2 MB / 0.795 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermofluidStream.Boundaries.Tests.VolumesDirectCoupling could not be translated " [Timeout remaining time 658] [Calling sys.exit(0), Time elapsed: 5.017311027972028] Failed to read output from testmodel.py, exit status != 0: 1.6280603090417571 1.6414633650000001 0.594225886 Calling exit ...