Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixingVolume1.medium.h|mixingVolume1.medium.p|mixingVolume2.medium.h",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mixingVolume1.medium.h|mixingVolume1.medium.p|mixingVolume2.medium.h",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009852/0.0009853, allocations: 196.5 kB / 16.76 MB, free: 4.902 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 226.5 MB / 244.1 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008185/0.0008183, allocations: 106.1 kB / 296.1 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3349/0.3349, allocations: 44.83 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002728/0.0002728, allocations: 8 kB / 465.9 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.319/0.3193, allocations: 62.96 MB / 0.5165 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates): time 0.03873/0.3581, allocations: 53.55 MB / 0.5688 GB, free: 14.74 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.04144/0.3995, allocations: 28.79 MB / 0.5969 GB, free: 6.934 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00157/0.4012, allocations: 39.69 kB / 0.597 GB, free: 6.895 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001574/0.4028, allocations: 0.5514 MB / 0.5975 GB, free: 6.34 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01353/0.4163, allocations: 4.698 MB / 0.6021 GB, free: 1.648 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008865/0.4252, allocations: 3.121 MB / 0.6051 GB, free: 14.54 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.003968/0.4292, allocations: 3.565 MB / 0.6086 GB, free: 10.96 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.4304, allocations: 0.702 MB / 0.6093 GB, free: 10.25 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01526/0.4457, allocations: 9.745 MB / 0.6188 GB, free: 0.4961 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01815/0.4638, allocations: 12.38 MB / 0.6309 GB, free: 4.109 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00049/0.4644, allocations: 60 kB / 0.631 GB, free: 4.051 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01554/0.4799, allocations: 7.967 MB / 0.6387 GB, free: 12.07 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000666/0.4806, allocations: 350.9 kB / 0.6391 GB, free: 11.73 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001189/0.4818, allocations: 0.628 MB / 0.6397 GB, free: 11.09 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007425/0.4893, allocations: 4.37 MB / 0.644 GB, free: 6.711 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4893, allocations: 0 / 0.644 GB, free: 6.711 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.4893, allocations: 0 / 0.644 GB, free: 6.711 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.769e-05/0.4894, allocations: 0 / 0.644 GB, free: 6.711 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005078/0.4945, allocations: 2.019 MB / 0.6459 GB, free: 4.641 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.4945, allocations: 8.031 kB / 0.6459 GB, free: 4.633 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004546/0.4991, allocations: 0.6434 MB / 0.6466 GB, free: 3.988 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.5004, allocations: 0.776 MB / 0.6473 GB, free: 3.172 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/0.5006, allocations: 209.4 kB / 0.6475 GB, free: 2.941 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001878/0.5008, allocations: 100.1 kB / 0.6476 GB, free: 2.844 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004099/0.5049, allocations: 1.846 MB / 0.6494 GB, free: 0.8633 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/0.505, allocations: 3.938 kB / 0.6494 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.5051, allocations: 48 kB / 0.6495 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.419e-05/0.5052, allocations: 45.92 kB / 0.6495 GB, free: 0.7695 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00416/0.5094, allocations: 1.682 MB / 0.6512 GB, free: 15.08 MB / 474.7 MB 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.009555/0.5189, allocations: 8.586 MB / 0.6595 GB, free: 5.883 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003053/0.522, allocations: 1.025 MB / 0.6605 GB, free: 4.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009413/0.523, allocations: 438.9 kB / 0.661 GB, free: 4.41 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2243/0.7472, allocations: 27.15 MB / 0.6875 GB, free: 131.4 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.612e-05/0.7473, allocations: 45.5 kB / 0.6875 GB, free: 131.4 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006989/0.748, allocations: 105.4 kB / 0.6876 GB, free: 131.4 MB / 490.7 MB Notification: Performance of pre-optimization done (n=70): time 5.079e-06/0.748, allocations: 0 / 0.6876 GB, free: 131.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=78): time 0.009629/0.7577, allocations: 3.579 MB / 0.6911 GB, free: 130.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.946e-05/0.7577, allocations: 121 kB / 0.6912 GB, free: 130.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.7588, allocations: 0.8459 MB / 0.6921 GB, free: 129.9 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 6.651e-05/0.7588, allocations: 43.2 kB / 0.6921 GB, free: 129.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002754/0.7591, allocations: 0.5692 MB / 0.6926 GB, free: 129.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.7593, allocations: 284.6 kB / 0.6929 GB, free: 129.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.821e-05/0.7594, allocations: 25.28 kB / 0.6929 GB, free: 129.1 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.7595, allocations: 404.9 kB / 0.6933 GB, free: 128.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008505/0.7603, allocations: 445.3 kB / 0.6938 GB, free: 128.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.7613, allocations: 1.008 MB / 0.6947 GB, free: 127.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001939/0.7633, allocations: 1.511 MB / 0.6962 GB, free: 126.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.405e-05/0.7633, allocations: 5.812 kB / 0.6962 GB, free: 126.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003021/0.7663, allocations: 1.754 MB / 0.6979 GB, free: 125.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.7664, allocations: 14.52 kB / 0.6979 GB, free: 125.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.7664, allocations: 19.59 kB / 0.698 GB, free: 125.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002492/0.7689, allocations: 0.6306 MB / 0.6986 GB, free: 125.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006749/0.7696, allocations: 256.8 kB / 0.6988 GB, free: 125.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001781/0.7714, allocations: 1.837 MB / 0.7006 GB, free: 124.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009653/0.7724, allocations: 123 kB / 0.7007 GB, free: 124.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.699e-05/0.7725, allocations: 82.94 kB / 0.7008 GB, free: 124.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 16 (sink2.medium.phase,mixingVolume1.heatTransfer.states[1].phase,flowSource2.medium.phase,mixingVolume2.heatTransfer.states[1].phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase,simpleGenericOrifice2.state_b.phase,simpleGenericOrifice2.state_a.phase,mixingVolume1.regularFlow[1],mixingVolume1.regularFlow[2],mixingVolume2.regularFlow[1],mixingVolume2.regularFlow[2],mixingVolume2.inFlow[2],mixingVolume2.inFlow[1],mixingVolume1.inFlow[2],mixingVolume1.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,3 28} Notification: Performance of prepare postOptimizeDAE: time 0.0004209/0.7729, allocations: 336.9 kB / 0.7011 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.7731, allocations: 104.8 kB / 0.7012 GB, free: 124 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004925/0.778, allocations: 4.519 MB / 0.7057 GB, free: 122 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.778, allocations: 11.06 kB / 0.7057 GB, free: 122 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.778, allocations: 4.125 kB / 0.7057 GB, free: 122 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004731/0.7785, allocations: 424.8 kB / 0.7061 GB, free: 121.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/0.7787, allocations: 15.25 kB / 0.7061 GB, free: 121.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007973/0.7795, allocations: 128.5 kB / 0.7062 GB, free: 121.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.7796, allocations: 75.03 kB / 0.7063 GB, free: 121.6 MB / 490.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): simpleGenericOrifice1.state_a.T = $cse22.T 2/2 (1): simpleGenericOrifice1.mu_a = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(simpleGenericOrifice1.rho_a, simpleGenericOrifice1.state_a.T, flowSource2.ports[1].p, 0, true) 3/3 (1): flowSource2.m_flow = ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.simpleGenericOrifice1.WallFriction.massFlowRate_dp_staticHead(simpleGenericOrifice1.dp, simpleGenericOrifice1.rho_a, simpleGenericOrifice1.rho_b, simpleGenericOrifice1.mu_a, simpleGenericOrifice1.mu_b, simpleGenericOrifice1.length, simpleGenericOrifice1.diameter, 0.0, simpleGenericOrifice1.crossArea, simpleGenericOrifice1.roughness, simpleGenericOrifice1.dp_small, 4000.0) 4/4 (1): simpleGenericOrifice1.dp = flowSource2.ports[1].p - mixingVolume1.medium.p 5/5 (16): $cse22 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(flowSource2.ports[1].p, flowSource2.h, 0, 0) 6/21 (1): simpleGenericOrifice1.rho_a = $cse22.rho Variables: 1: simpleGenericOrifice1.rho_a:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 protected = true ) type: Real 2: $cse22.vp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse22.p:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse22.pd:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse22.phase:DISCRETE(protected = true ) type: Integer unreplaceable 6: $cse22.pt:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse22.s:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse22.rho:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse22.cp:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse22.R_s:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse22.cv:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse22.h:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse22.x:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse22.T:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse22.vt:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse22.dpT:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse22.region:DISCRETE(protected = true ) type: Integer unreplaceable 18: flowSource2.ports[1].p:VARIABLE(flow=false min = 611.657 max = 100000000.0 start = 5000000.0 unit = "Pa" nominal = 1000000.0 ) "Thermodynamic pressure in the connection point" type: Real [1] 19: simpleGenericOrifice1.dp:VARIABLE(start = simpleGenericOrifice1.dp_start unit = "Pa" ) "Pressure difference between port_a and port_b (= port_a.p - port_b.p)" type: Real 20: simpleGenericOrifice1.mu_a:VARIABLE(min = 0.0 unit = "Pa.s" protected = true ) type: Real 21: simpleGenericOrifice1.state_a.T:VARIABLE(min = 273.15 max = 2273.15 start = 500.0 unit = "K" nominal = 500.0 protected = true ) "Temperature" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9741:5-9742:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006955/0.7803, allocations: 440.1 kB / 0.7067 GB, free: 121.4 MB / 490.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.