Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 106.8 kB / 18.45 MB, free: 4.699 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.001899/0.001899, allocations: 183.1 kB / 19.38 MB, free: 3.777 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.373/1.373, allocations: 222.9 MB / 243.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2053/0.2053, allocations: 44.19 MB / 337.4 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 67.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3285, allocations: 60.82 MB / 0.5196 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates): time 0.06076/0.3893, allocations: 56.81 MB / 0.575 GB, free: 3.105 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.03733/0.4267, allocations: 30.72 MB / 0.605 GB, free: 4.27 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.428, allocations: 27.81 kB / 0.6051 GB, free: 4.242 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.4301, allocations: 0.6678 MB / 0.6057 GB, free: 3.57 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01649/0.4466, allocations: 5.761 MB / 0.6114 GB, free: 13.81 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01004/0.4567, allocations: 3.871 MB / 0.6151 GB, free: 9.941 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003953/0.4606, allocations: 3.062 MB / 0.6181 GB, free: 6.867 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.4621, allocations: 0.8285 MB / 0.6189 GB, free: 6.023 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01364/0.4758, allocations: 6.346 MB / 0.6251 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01424/0.49, allocations: 7.427 MB / 0.6324 GB, free: 8.055 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005071/0.4906, allocations: 112 kB / 0.6325 GB, free: 7.945 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01781/0.5084, allocations: 8.386 MB / 0.6407 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001007/0.5094, allocations: 398.8 kB / 0.6411 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001339/0.5108, allocations: 0.6845 MB / 0.6417 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01564/0.5265, allocations: 6.312 MB / 0.6479 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.5265, allocations: 0 / 0.6479 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.034e-06/0.5265, allocations: 3.938 kB / 0.6479 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.664e-05/0.5266, allocations: 0 / 0.6479 GB, free: 8.141 MB / 0.4981 GB 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.006928/0.5335, allocations: 2.313 MB / 0.6502 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.5336, allocations: 12.03 kB / 0.6502 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005081/0.5387, allocations: 0.6246 MB / 0.6508 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001585/0.5403, allocations: 0.8194 MB / 0.6516 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002068/0.5405, allocations: 213.3 kB / 0.6518 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000235/0.5408, allocations: 104.1 kB / 0.6519 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004387/0.5451, allocations: 1.81 MB / 0.6536 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.5452, allocations: 11.94 kB / 0.6537 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000157/0.5454, allocations: 48 kB / 0.6537 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-05/0.5454, allocations: 45.94 kB / 0.6537 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004092/0.5495, allocations: 1.639 MB / 0.6553 GB, free: 252 kB / 0.4981 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.009599/0.5592, allocations: 8.564 MB / 0.6637 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003051/0.5622, allocations: 0.9818 MB / 0.6647 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008336/0.5631, allocations: 422.3 kB / 0.6651 GB, free: 5.66 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04399/0.6071, allocations: 25.04 MB / 0.6895 GB, free: 8.898 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.6072, allocations: 43.06 kB / 0.6896 GB, free: 8.848 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005911/0.6078, allocations: 91.25 kB / 0.6897 GB, free: 8.758 MB / 0.545 GB Notification: Performance of pre-optimization done (n=70): time 5.751e-06/0.6078, allocations: 7.922 kB / 0.6897 GB, free: 8.75 MB / 0.545 GB Notification: Performance of matching and sorting (n=78): time 0.01055/0.6183, allocations: 3.468 MB / 0.693 GB, free: 5.203 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/0.6184, allocations: 115.5 kB / 0.6932 GB, free: 5.066 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.6195, allocations: 0.8567 MB / 0.694 GB, free: 4.199 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.536e-05/0.6196, allocations: 37.7 kB / 0.694 GB, free: 4.156 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003946/0.62, allocations: 0.5814 MB / 0.6946 GB, free: 3.566 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.6203, allocations: 297.6 kB / 0.6949 GB, free: 3.273 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003473/0.6206, allocations: 278.7 kB / 0.6951 GB, free: 2.996 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001779/0.6208, allocations: 410.7 kB / 0.6955 GB, free: 2.586 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009432/0.6218, allocations: 430.3 kB / 0.6959 GB, free: 2.164 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.6231, allocations: 0.9931 MB / 0.6969 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002302/0.6254, allocations: 1.494 MB / 0.6984 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.6254, allocations: 8 kB / 0.6984 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003456/0.6289, allocations: 1.736 MB / 0.7001 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.6289, allocations: 15.94 kB / 0.7001 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.6289, allocations: 20 kB / 0.7001 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002669/0.6316, allocations: 0.5876 MB / 0.7007 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008015/0.6324, allocations: 247.6 kB / 0.7009 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/0.6347, allocations: 1.827 MB / 0.7027 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008942/0.6356, allocations: 67.97 kB / 0.7028 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.6357, allocations: 75.98 kB / 0.7028 GB, free: 10.49 MB / 0.5606 GB 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,mixingVolume2.heatTransfer.states[1].phase,flowSource2.medium.phase,mixingVolume1.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (3,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0004944/0.6362, allocations: 347.5 kB / 0.7032 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002416/0.6365, allocations: 111.3 kB / 0.7033 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005604/0.6421, allocations: 4.441 MB / 0.7076 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.6421, allocations: 7.922 kB / 0.7076 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.6421, allocations: 0 / 0.7076 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005188/0.6427, allocations: 367.1 kB / 0.708 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002284/0.6429, allocations: 39.84 kB / 0.708 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000774/0.6437, allocations: 71.91 kB / 0.7081 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.6439, allocations: 76.89 kB / 0.7082 GB, free: 4.969 MB / 0.5606 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): 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 = 1e5 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 = 1e8 start = 5e6 unit = "Pa" nominal = 1e6 ) "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:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008574/0.6447, allocations: 432.5 kB / 0.7086 GB, free: 4.562 MB / 0.5606 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates could not be translated