Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") Notification: Performance of loadModel(ModelicaTest): time 2.406/2.406, allocations: 234.9 MB / 251.1 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00063/0.0006302, allocations: 12 kB / 315 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3742/0.3748, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates): time 0.07515/0.4501, allocations: 47.7 MB / 417.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05096/0.5011, allocations: 25.99 MB / 443.5 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001824/0.503, allocations: 35.69 kB / 443.5 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002543/0.5056, allocations: 0.5793 MB / 444.1 MB, free: 260 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02103/0.5266, allocations: 4.548 MB / 448.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01441/0.541, allocations: 3.171 MB / 451.8 MB, free: 8.516 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005179/0.5462, allocations: 2.018 MB / 453.8 MB, free: 6.496 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00169/0.548, allocations: 0.6746 MB / 454.5 MB, free: 5.805 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0277/0.5757, allocations: 9.484 MB / 464 MB, free: 12.31 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03258/0.6083, allocations: 11.86 MB / 475.9 MB, free: 456 kB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004422/0.6088, allocations: 60 kB / 475.9 MB, free: 396 kB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4033/1.012, allocations: 8.103 MB / 484 MB, free: 28.05 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009137/1.013, allocations: 327.5 kB / 484.3 MB, free: 28.05 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006529/1.014, allocations: 257.7 kB / 484.6 MB, free: 28.02 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02614/1.04, allocations: 4.301 MB / 488.9 MB, free: 27.8 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/1.04, allocations: 0 / 488.9 MB, free: 27.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/1.04, allocations: 1.875 kB / 488.9 MB, free: 27.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.274e-05/1.04, allocations: 3.969 kB / 488.9 MB, free: 27.8 MB / 394.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.01702/1.057, allocations: 2.012 MB / 490.9 MB, free: 26.78 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/1.057, allocations: 6.75 kB / 490.9 MB, free: 26.78 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02077/1.078, allocations: 0.6431 MB / 491.6 MB, free: 26.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/1.081, allocations: 0.7642 MB / 492.3 MB, free: 26.44 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000349/1.081, allocations: 208.8 kB / 492.5 MB, free: 26.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004061/1.082, allocations: 106.6 kB / 492.6 MB, free: 26.31 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009048/1.091, allocations: 1.84 MB / 494.5 MB, free: 25.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.296e-05/1.091, allocations: 5.656 kB / 494.5 MB, free: 25.96 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003059/1.091, allocations: 48.67 kB / 494.5 MB, free: 25.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001207/1.091, allocations: 45.97 kB / 494.6 MB, free: 25.96 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009492/1.101, allocations: 1.68 MB / 496.3 MB, free: 25.94 MB / 394.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.0148/1.116, allocations: 8.445 MB / 0.4929 GB, free: 20.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004452/1.12, allocations: 0.9363 MB / 0.4938 GB, free: 20.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2137/1.334, allocations: 58.09 MB / 0.5505 GB, free: 9.496 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.224e-05/1.334, allocations: 41.62 kB / 0.5505 GB, free: 9.453 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001261/1.335, allocations: 96.72 kB / 0.5506 GB, free: 9.367 MB / 442.7 MB Notification: Performance of pre-optimization done (n=69): time 5.671e-06/1.336, allocations: 3.656 kB / 0.5506 GB, free: 9.367 MB / 442.7 MB Notification: Performance of matching and sorting (n=77): time 0.02234/1.358, allocations: 3.347 MB / 0.5539 GB, free: 6.734 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/1.358, allocations: 114.8 kB / 0.554 GB, free: 6.602 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/1.36, allocations: 0.7943 MB / 0.5548 GB, free: 5.988 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001699/1.36, allocations: 40.2 kB / 0.5548 GB, free: 5.953 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007367/1.361, allocations: 0.6163 MB / 0.5554 GB, free: 5.453 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004593/1.362, allocations: 280 kB / 0.5557 GB, free: 5.223 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001308/1.362, allocations: 28.44 kB / 0.5557 GB, free: 5.215 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002636/1.362, allocations: 366.5 kB / 0.5561 GB, free: 4.875 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002075/1.364, allocations: 420.6 kB / 0.5565 GB, free: 4.594 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002914/1.367, allocations: 1.038 MB / 0.5575 GB, free: 3.434 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002699/1.37, allocations: 0.576 MB / 0.5581 GB, free: 3.066 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.998e-05/1.37, allocations: 8 kB / 0.5581 GB, free: 3.059 MB / 442.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.007629/1.377, allocations: 1.697 MB / 0.5597 GB, free: 1.918 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.448e-05/1.378, allocations: 19.95 kB / 0.5597 GB, free: 1.898 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.306e-05/1.378, allocations: 20 kB / 0.5598 GB, free: 1.879 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006279/1.384, allocations: 0.6153 MB / 0.5604 GB, free: 1.352 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001965/1.386, allocations: 259.9 kB / 0.5606 GB, free: 1.133 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004716/1.391, allocations: 1.809 MB / 0.5624 GB, free: 15.55 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002573/1.393, allocations: 120.5 kB / 0.5625 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002767/1.394, allocations: 82.48 kB / 0.5626 GB, free: 15.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * 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 (141): * Single equations (assignments): 139 * 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 27} Notification: Performance of prepare postOptimizeDAE: time 0.001115/1.395, allocations: 345.6 kB / 0.5629 GB, free: 15.15 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003655/1.395, allocations: 102.8 kB / 0.563 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01185/1.407, allocations: 4.407 MB / 0.5673 GB, free: 12.13 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.23e-05/1.407, allocations: 11.83 kB / 0.5673 GB, free: 12.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/1.407, allocations: 0 / 0.5673 GB, free: 12.12 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/1.408, allocations: 401.5 kB / 0.5677 GB, free: 11.76 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003179/1.409, allocations: 18.62 kB / 0.5677 GB, free: 11.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001826/1.411, allocations: 100.2 kB / 0.5678 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002884/1.411, allocations: 74.34 kB / 0.5679 GB, free: 11.61 MB / 458.7 MB [/var/lib/jenkins/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 = $cse20.T 2/2 (16): $cse20 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(flowSource2.ports[1].p, 200000.0, 0, 0) 3/18 (1): simpleGenericOrifice1.rho_a = $cse20.rho 4/19 (1): 1.0 = 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) 5/20 (1): simpleGenericOrifice1.mu_a = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(simpleGenericOrifice1.rho_a, simpleGenericOrifice1.state_a.T, flowSource2.ports[1].p, 0) 6/21 (1): simpleGenericOrifice1.dp = flowSource2.ports[1].p - mixingVolume1.medium.p Variables: 1: 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 2: simpleGenericOrifice1.state_a.T:VARIABLE(min = 273.15 max = 2273.15 start = 500.0 unit = "K" nominal = 500.0 protected = true ) "Temperature" type: Real 3: simpleGenericOrifice1.mu_a:VARIABLE(min = 0.0 unit = "Pa.s" protected = true ) type: Real 4: simpleGenericOrifice1.rho_a:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 protected = true ) type: Real 5: $cse20.rho:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse20.p:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse20.pt:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse20.cv:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse20.h:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse20.pd:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse20.vp:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse20.phase:DISCRETE(protected = true ) type: Integer unreplaceable 13: $cse20.x:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse20.cp:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse20.vt:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse20.region:DISCRETE(protected = true ) type: Integer unreplaceable 17: $cse20.dpT:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse20.R:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse20.T:VARIABLE(protected = true ) type: Real unreplaceable 20: 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] 21: $cse20.s:VARIABLE(protected = true ) type: Real unreplaceable [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9703:5-9704:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001528/1.412, allocations: 454.3 kB / 0.5683 GB, free: 11.22 MB / 458.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.