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.001299/0.001299, allocations: 110.9 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00107/0.00107, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2097/0.2097, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 75.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3309, allocations: 62.44 MB / 0.5317 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates): time 0.05668/0.3876, allocations: 57.01 MB / 0.5873 GB, free: 8.543 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03594/0.4236, allocations: 30.75 MB / 0.6174 GB, free: 9.688 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001329/0.425, allocations: 31.81 kB / 0.6174 GB, free: 9.656 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002008/0.4271, allocations: 0.6716 MB / 0.618 GB, free: 8.98 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01814/0.4452, allocations: 5.759 MB / 0.6237 GB, free: 3.219 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01177/0.457, allocations: 3.88 MB / 0.6275 GB, free: 15.34 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004737/0.4618, allocations: 3.078 MB / 0.6305 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001779/0.4636, allocations: 0.813 MB / 0.6313 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01585/0.4794, allocations: 6.353 MB / 0.6375 GB, free: 4.988 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01668/0.4961, allocations: 7.439 MB / 0.6447 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0005768/0.4968, allocations: 116 kB / 0.6448 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01887/0.5156, allocations: 8.401 MB / 0.653 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007552/0.5164, allocations: 406.8 kB / 0.6534 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001465/0.5179, allocations: 0.6767 MB / 0.6541 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01682/0.5347, allocations: 6.318 MB / 0.6603 GB, free: 13.5 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.5348, allocations: 0 / 0.6603 GB, free: 13.5 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.354e-06/0.5348, allocations: 0 / 0.6603 GB, free: 13.5 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 7.192e-05/0.5349, allocations: 0 / 0.6603 GB, free: 13.5 MB / 0.5138 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.007254/0.5421, allocations: 2.257 MB / 0.6625 GB, free: 11.19 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.5422, allocations: 9.109 kB / 0.6625 GB, free: 11.18 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005209/0.5474, allocations: 0.6239 MB / 0.6631 GB, free: 10.56 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/0.5492, allocations: 0.8034 MB / 0.6639 GB, free: 9.715 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002284/0.5494, allocations: 217.3 kB / 0.6641 GB, free: 9.48 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002331/0.5497, allocations: 100.1 kB / 0.6642 GB, free: 9.383 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004612/0.5543, allocations: 1.826 MB / 0.666 GB, free: 7.422 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.847e-05/0.5544, allocations: 7.938 kB / 0.666 GB, free: 7.414 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.5545, allocations: 44 kB / 0.666 GB, free: 7.371 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-05/0.5546, allocations: 46 kB / 0.666 GB, free: 7.324 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004335/0.5589, allocations: 1.643 MB / 0.6677 GB, free: 5.68 MB / 0.5138 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.01027/0.5692, allocations: 8.571 MB / 0.676 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003224/0.5725, allocations: 0.985 MB / 0.677 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008936/0.5734, allocations: 422.3 kB / 0.6774 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04745/0.6209, allocations: 27.54 MB / 0.7043 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.34e-05/0.621, allocations: 39.12 kB / 0.7043 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006681/0.6217, allocations: 90.95 kB / 0.7044 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=70): time 5.67e-06/0.6217, allocations: 4 kB / 0.7044 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=78): time 0.0113/0.633, allocations: 3.45 MB / 0.7078 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.6331, allocations: 111.5 kB / 0.7079 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.6343, allocations: 0.8564 MB / 0.7087 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.776e-05/0.6343, allocations: 37.7 kB / 0.7088 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004035/0.6348, allocations: 0.5679 MB / 0.7093 GB, free: 6.008 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.635, allocations: 284.1 kB / 0.7096 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003568/0.6354, allocations: 270.6 kB / 0.7098 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000184/0.6356, allocations: 406.7 kB / 0.7102 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009726/0.6365, allocations: 430.3 kB / 0.7106 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/0.6379, allocations: 0.997 MB / 0.7116 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00234/0.6402, allocations: 1.494 MB / 0.7131 GB, free: 1.602 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.284e-05/0.6403, allocations: 4 kB / 0.7131 GB, free: 1.598 MB / 0.5606 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.00363/0.6439, allocations: 1.732 MB / 0.7148 GB, free: 15.85 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 2.709e-05/0.6439, allocations: 12 kB / 0.7148 GB, free: 15.84 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.702e-05/0.644, allocations: 27.92 kB / 0.7148 GB, free: 15.81 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002655/0.6466, allocations: 0.5875 MB / 0.7154 GB, free: 15.22 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007373/0.6474, allocations: 251.5 kB / 0.7156 GB, free: 14.97 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/0.6497, allocations: 1.824 MB / 0.7174 GB, free: 13.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/0.6508, allocations: 68.09 kB / 0.7175 GB, free: 13.03 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/0.6509, allocations: 79.98 kB / 0.7175 GB, free: 12.95 MB / 0.5763 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.0007589/0.6517, allocations: 343.8 kB / 0.7179 GB, free: 12.61 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003228/0.652, allocations: 106.7 kB / 0.718 GB, free: 12.5 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005775/0.6578, allocations: 4.425 MB / 0.7223 GB, free: 8.031 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.6579, allocations: 11.92 kB / 0.7223 GB, free: 8.02 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.6579, allocations: 0 / 0.7223 GB, free: 8.02 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006212/0.6585, allocations: 354.3 kB / 0.7226 GB, free: 7.652 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000286/0.6588, allocations: 43.69 kB / 0.7227 GB, free: 7.609 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008293/0.6596, allocations: 71.91 kB / 0.7228 GB, free: 7.539 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.6598, allocations: 72.84 kB / 0.7228 GB, free: 7.465 MB / 0.5763 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.0008968/0.6607, allocations: 445.1 kB / 0.7232 GB, free: 7.035 MB / 0.5763 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates could not be translated