Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001667, allocations: 108.1 kB / 19.97 MB, free: 1.887 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.001452/0.001452, allocations: 181.3 kB / 23.28 MB, free: 5.004 MB / 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.434/1.434, allocations: 225.7 MB / 252.1 MB, free: 12.85 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.7428/0.7428, allocations: 94.59 MB / 402 MB, free: 15.06 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.Undirected.Boundaries.Tests.VolumesDirectCoupling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002467/0.002467, allocations: 84 kB / 0.5484 GB, free: 42.24 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.09638, allocations: 71.89 MB / 0.6187 GB, free: 7.871 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling): time 0.4367/0.533, allocations: 162 MB / 0.7768 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03814/0.5712, allocations: 42.95 MB / 0.8188 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00456/0.5757, allocations: 115.2 kB / 0.8189 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.005004/0.5807, allocations: 2.211 MB / 0.821 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0102/0.5909, allocations: 4.332 MB / 0.8253 GB, free: 0.5039 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03018/0.6211, allocations: 12.64 MB / 0.8376 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0113/0.6324, allocations: 8.608 MB / 0.846 GB, free: 8.363 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/0.6335, allocations: 445 kB / 0.8464 GB, free: 8.117 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.07558/0.7091, allocations: 36.12 MB / 0.8817 GB, free: 6.789 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.1913/0.9004, allocations: 88.5 MB / 0.9681 GB, free: 14.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.001568/0.9019, allocations: 368 kB / 0.9685 GB, free: 13.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02101/0.9229, allocations: 8.821 MB / 0.9771 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001709/0.9247, allocations: 0.9592 MB / 0.978 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.004586/0.9292, allocations: 2.469 MB / 0.9804 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.02089/0.9501, allocations: 10.49 MB / 0.9907 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.9501, allocations: 0 / 0.9907 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.803e-06/0.9501, allocations: 3.938 kB / 0.9907 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001645/0.9503, allocations: 0 / 0.9907 GB, free: 7.68 MB / 0.7325 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.01324/0.9635, allocations: 5.622 MB / 0.9962 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.9636, allocations: 12.03 kB / 0.9962 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009953/0.9735, allocations: 1.376 MB / 0.9975 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004736/0.9783, allocations: 2.351 MB / 0.9998 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000395/0.9787, allocations: 352.3 kB / 1 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008209/0.9795, allocations: 443.8 kB / 1.001 GB, free: 13.52 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.9936, allocations: 5.579 MB / 1.006 GB, free: 7.547 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.873e-05/0.9937, allocations: 23.81 kB / 1.006 GB, free: 7.523 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005227/0.9942, allocations: 192 kB / 1.006 GB, free: 7.336 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.891e-05/0.9943, allocations: 108 kB / 1.006 GB, free: 7.23 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01301/1.007, allocations: 4.449 MB / 1.011 GB, free: 2.801 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.03409/1.041, allocations: 30.51 MB / 1.04 GB, free: 1.633 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2574/1.299, allocations: 3.218 MB / 1.044 GB, free: 317.6 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002847/1.302, allocations: 1.228 MB / 1.045 GB, free: 317.5 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03202/1.334, allocations: 16.41 MB / 1.061 GB, free: 307.7 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.021e-05/1.334, allocations: 81.98 kB / 1.061 GB, free: 307.6 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=299): time 6.142e-06/1.334, allocations: 3.75 kB / 1.061 GB, free: 307.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=314): time 0.03555/1.369, allocations: 16.51 MB / 1.077 GB, free: 299 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/1.369, allocations: 314.8 kB / 1.077 GB, free: 298.7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001888/1.371, allocations: 2.025 MB / 1.079 GB, free: 297.6 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0003322/1.372, allocations: 89.58 kB / 1.079 GB, free: 297.6 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007168/1.372, allocations: 1.847 MB / 1.081 GB, free: 296.2 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006244/1.373, allocations: 1.147 MB / 1.082 GB, free: 295.3 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008907/1.374, allocations: 0.7907 MB / 1.083 GB, free: 294.8 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 3.433e-05/1.374, allocations: 301.1 kB / 1.083 GB, free: 294.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002813/1.377, allocations: 1.298 MB / 1.085 GB, free: 293.9 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00349/1.38, allocations: 2.602 MB / 1.087 GB, free: 291.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006102/1.386, allocations: 4.099 MB / 1.091 GB, free: 288.5 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.836e-05/1.386, allocations: 11.53 kB / 1.091 GB, free: 288.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=526) (initialization): time 0.01091/1.397, allocations: 5.205 MB / 1.096 GB, free: 283.4 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/1.397, allocations: 20 kB / 1.096 GB, free: 283.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.382e-05/1.397, allocations: 44 kB / 1.096 GB, free: 283.4 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004513/1.402, allocations: 1.119 MB / 1.097 GB, free: 282.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00296/1.405, allocations: 0.8775 MB / 1.098 GB, free: 281.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01231/1.417, allocations: 23.79 MB / 1.122 GB, free: 255.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003059/1.42, allocations: 290.6 kB / 1.122 GB, free: 255.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000308/1.42, allocations: 215.9 kB / 1.122 GB, free: 255.2 MB / 0.7794 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.001356/1.422, allocations: 0.6998 MB / 1.123 GB, free: 254.6 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007505/1.422, allocations: 346.5 kB / 1.123 GB, free: 254.2 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0162/1.439, allocations: 13.86 MB / 1.137 GB, free: 240.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-05/1.439, allocations: 23.92 kB / 1.137 GB, free: 240.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/1.439, allocations: 8 kB / 1.137 GB, free: 240.3 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007304/1.439, allocations: 0.6145 MB / 1.137 GB, free: 239.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005161/1.44, allocations: 107.6 kB / 1.137 GB, free: 239.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002703/1.443, allocations: 251.7 kB / 1.138 GB, free: 239.4 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004727/1.443, allocations: 319.9 kB / 1.138 GB, free: 239.1 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): 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:9824:5-9825:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008155/1.444, allocations: 322.3 kB / 1.138 GB, free: 238.8 MB / 0.7794 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermofluidStream.Undirected.Boundaries.Tests.VolumesDirectCoupling could not be translated " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 4.610036791011225] Failed to read output from testmodel.py, exit status != 0: 1.4512696460005827 1.460753021 0.508170491 Calling exit ...