Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 106.8 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 215.5 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2248/0.2248, allocations: 46.97 MB / 361.6 MB, free: 4.059 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mixingVolume1.medium.h|mixingVolume1.medium.p|mixingVolume2.medium.h",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mixingVolume1.medium.h|mixingVolume1.medium.p|mixingVolume2.medium.h",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 63.91 kB / 0.4973 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3516, allocations: 66.04 MB / 0.5618 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates): time 0.06097/0.4126, allocations: 52.11 MB / 0.6127 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03708/0.4496, allocations: 27.68 MB / 0.6397 GB, free: 4.113 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.4509, allocations: 39.62 kB / 0.6398 GB, free: 4.074 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001871/0.4528, allocations: 0.6211 MB / 0.6404 GB, free: 3.449 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01481/0.4676, allocations: 5.763 MB / 0.646 GB, free: 13.69 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01035/0.4779, allocations: 3.809 MB / 0.6497 GB, free: 9.883 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.004526/0.4825, allocations: 3.094 MB / 0.6528 GB, free: 6.777 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001099/0.4836, allocations: 0.6963 MB / 0.6534 GB, free: 6.062 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01275/0.4963, allocations: 6.377 MB / 0.6597 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01383/0.5101, allocations: 7.516 MB / 0.667 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003897/0.5105, allocations: 112 kB / 0.6671 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01601/0.5265, allocations: 8.222 MB / 0.6751 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0006383/0.5272, allocations: 418.6 kB / 0.6755 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.00086/0.528, allocations: 0.572 MB / 0.6761 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0134/0.5414, allocations: 6.289 MB / 0.6822 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.5414, allocations: 4 kB / 0.6822 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.393e-06/0.5414, allocations: 0 / 0.6822 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.518e-05/0.5414, allocations: 0 / 0.6822 GB, free: 8.34 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.005545/0.547, allocations: 2.23 MB / 0.6844 GB, free: 6.066 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.547, allocations: 8.031 kB / 0.6844 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004719/0.5517, allocations: 0.5699 MB / 0.685 GB, free: 5.488 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/0.5533, allocations: 0.7434 MB / 0.6857 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002689/0.5535, allocations: 316.2 kB / 0.686 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.5537, allocations: 104.1 kB / 0.6861 GB, free: 4.262 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00434/0.558, allocations: 2.114 MB / 0.6882 GB, free: 1.945 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.116e-05/0.5581, allocations: 11.94 kB / 0.6882 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/0.5582, allocations: 44 kB / 0.6882 GB, free: 1.891 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.657e-05/0.5583, allocations: 49.92 kB / 0.6883 GB, free: 1.84 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004128/0.5624, allocations: 1.631 MB / 0.6899 GB, free: 212 kB / 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.009393/0.5718, allocations: 6.314 MB / 0.696 GB, free: 9.699 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00318/0.575, allocations: 0.9628 MB / 0.697 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008639/0.5758, allocations: 408.2 kB / 0.6974 GB, free: 8.328 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0402/0.616, allocations: 10.43 MB / 0.7076 GB, free: 13.88 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.782e-05/0.6161, allocations: 43.22 kB / 0.7076 GB, free: 13.83 MB / 0.545 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006603/0.6168, allocations: 103.3 kB / 0.7077 GB, free: 13.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=70): time 2.976e-06/0.6168, allocations: 0 / 0.7077 GB, free: 13.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=78): time 0.01087/0.6276, allocations: 3.313 MB / 0.7109 GB, free: 10.38 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.6278, allocations: 115.5 kB / 0.711 GB, free: 10.24 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.6289, allocations: 0.7932 MB / 0.7118 GB, free: 9.441 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.534e-05/0.6289, allocations: 37.7 kB / 0.7118 GB, free: 9.398 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004635/0.6294, allocations: 0.5892 MB / 0.7124 GB, free: 8.801 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000343/0.6298, allocations: 289.6 kB / 0.7127 GB, free: 8.516 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000391/0.6301, allocations: 270.8 kB / 0.713 GB, free: 8.246 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002155/0.6304, allocations: 398.7 kB / 0.7133 GB, free: 7.848 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000967/0.6313, allocations: 438.3 kB / 0.7138 GB, free: 7.418 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.6329, allocations: 1.047 MB / 0.7148 GB, free: 6.09 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002757/0.6356, allocations: 1.486 MB / 0.7162 GB, free: 4.336 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.296e-05/0.6356, allocations: 8 kB / 0.7162 GB, free: 4.328 MB / 0.545 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003945/0.6396, allocations: 1.713 MB / 0.7179 GB, free: 2.602 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.6396, allocations: 18.84 kB / 0.7179 GB, free: 2.586 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/0.6397, allocations: 20 kB / 0.7179 GB, free: 2.566 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002831/0.6425, allocations: 0.5993 MB / 0.7185 GB, free: 1.961 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008344/0.6433, allocations: 247.6 kB / 0.7188 GB, free: 1.719 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/0.646, allocations: 1.812 MB / 0.7205 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009426/0.6469, allocations: 63.97 kB / 0.7206 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.6471, allocations: 79.98 kB / 0.7207 GB, free: 15.71 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.000552/0.6476, allocations: 347.3 kB / 0.721 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.6478, allocations: 99.39 kB / 0.7211 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006453/0.6543, allocations: 4.561 MB / 0.7256 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/0.6543, allocations: 3.984 kB / 0.7256 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.6543, allocations: 7.938 kB / 0.7256 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006029/0.6549, allocations: 282.1 kB / 0.7258 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/0.6551, allocations: 31.89 kB / 0.7259 GB, free: 10.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006984/0.6558, allocations: 67.92 kB / 0.7259 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.6559, allocations: 72.86 kB / 0.726 GB, free: 10.2 MB / 0.5606 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:521:7-523: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:9812:5-9813:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008687/0.6568, allocations: 423 kB / 0.7264 GB, free: 9.797 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 " [Timeout remaining time 659] [Calling sys.exit(0), Time elapsed: 3.44596760100103] Failed to read output from testmodel.py, exit status != 0: ['time', 'mixingVolume1.medium.h', 'mixingVolume1.medium.p', 'mixingVolume2.medium.h'] 0.6660865000012564 0.898807619 0.35452817499999995 Calling exit ...