Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001414/0.001415, allocations: 118.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001673/0.001673, allocations: 206.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 247.6 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2077/0.2077, allocations: 46.1 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 75.88 kB / 482 MB, free: 4.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3228, allocations: 62.43 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates): time 0.05409/0.3769, allocations: 57.01 MB / 0.5873 GB, free: 8.535 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03354/0.4105, allocations: 30.75 MB / 0.6174 GB, free: 9.68 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001298/0.4119, allocations: 27.81 kB / 0.6174 GB, free: 9.652 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001849/0.4137, allocations: 0.6794 MB / 0.618 GB, free: 8.969 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01576/0.4295, allocations: 5.726 MB / 0.6236 GB, free: 3.242 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009983/0.4395, allocations: 3.892 MB / 0.6274 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003956/0.4435, allocations: 3.055 MB / 0.6304 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001112/0.4446, allocations: 0.8169 MB / 0.6312 GB, free: 11.46 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01158/0.4562, allocations: 6.346 MB / 0.6374 GB, free: 5.027 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01287/0.4691, allocations: 7.439 MB / 0.6447 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003505/0.4695, allocations: 116 kB / 0.6448 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01612/0.4856, allocations: 8.397 MB / 0.653 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004309/0.486, allocations: 410.8 kB / 0.6534 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007873/0.4868, allocations: 0.6767 MB / 0.654 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.4988, allocations: 6.315 MB / 0.6602 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4989, allocations: 0 / 0.6602 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4989, allocations: 0 / 0.6602 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.286e-05/0.4989, allocations: 0 / 0.6602 GB, free: 13.55 MB / 0.5137 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.005361/0.5043, allocations: 2.257 MB / 0.6624 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.193e-05/0.5043, allocations: 9.109 kB / 0.6624 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004811/0.5091, allocations: 0.6278 MB / 0.663 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.5108, allocations: 0.7995 MB / 0.6638 GB, free: 9.758 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.511, allocations: 213.3 kB / 0.664 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.5112, allocations: 108.1 kB / 0.6641 GB, free: 9.422 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004237/0.5155, allocations: 1.818 MB / 0.6659 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.692e-05/0.5155, allocations: 7.938 kB / 0.6659 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.5157, allocations: 44 kB / 0.6659 GB, free: 7.418 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.389e-05/0.5158, allocations: 42 kB / 0.666 GB, free: 7.375 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00419/0.52, allocations: 1.651 MB / 0.6676 GB, free: 5.723 MB / 0.5137 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.00953/0.5295, allocations: 8.571 MB / 0.676 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002928/0.5325, allocations: 0.985 MB / 0.6769 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007955/0.5333, allocations: 422.3 kB / 0.6773 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04506/0.5784, allocations: 27.54 MB / 0.7042 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.708e-05/0.5785, allocations: 43.12 kB / 0.7043 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006518/0.5791, allocations: 86.97 kB / 0.7044 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=70): time 5.621e-06/0.5791, allocations: 0 / 0.7044 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=78): time 0.01054/0.5897, allocations: 3.466 MB / 0.7077 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.955e-05/0.5898, allocations: 111.5 kB / 0.7078 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/0.591, allocations: 0.8564 MB / 0.7087 GB, free: 6.66 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.364e-05/0.5911, allocations: 37.7 kB / 0.7087 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004667/0.5916, allocations: 0.564 MB / 0.7093 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002358/0.5919, allocations: 284.1 kB / 0.7095 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000402/0.5923, allocations: 270.6 kB / 0.7098 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001929/0.5925, allocations: 406.7 kB / 0.7102 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009194/0.5934, allocations: 430.3 kB / 0.7106 GB, free: 4.664 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/0.5948, allocations: 0.997 MB / 0.7116 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002444/0.5973, allocations: 1.486 MB / 0.713 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.445e-05/0.5973, allocations: 8 kB / 0.713 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003461/0.6008, allocations: 1.736 MB / 0.7147 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.6008, allocations: 12 kB / 0.7147 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.817e-05/0.6009, allocations: 20 kB / 0.7148 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002758/0.6036, allocations: 0.5877 MB / 0.7153 GB, free: 15.26 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007875/0.6044, allocations: 255.5 kB / 0.7156 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002176/0.6066, allocations: 1.824 MB / 0.7174 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009069/0.6075, allocations: 67.97 kB / 0.7174 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.6077, allocations: 75.98 kB / 0.7175 GB, free: 13 MB / 0.5762 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.0005402/0.6082, allocations: 347.9 kB / 0.7178 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002493/0.6085, allocations: 106.7 kB / 0.7179 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005393/0.6139, allocations: 4.434 MB / 0.7223 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.6139, allocations: 7.922 kB / 0.7223 GB, free: 8.055 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.6139, allocations: 0 / 0.7223 GB, free: 8.055 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004607/0.6144, allocations: 350.3 kB / 0.7226 GB, free: 7.691 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000199/0.6146, allocations: 43.69 kB / 0.7226 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007248/0.6153, allocations: 79.84 kB / 0.7227 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.6155, allocations: 72.89 kB / 0.7228 GB, free: 7.496 MB / 0.5762 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.0007826/0.6163, allocations: 440.4 kB / 0.7232 GB, free: 7.074 MB / 0.5762 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates could not be translated