Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates") Notification: Performance of loadModel(ModelicaTest): time 1.79/1.79, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004104/0.0004105, allocations: 16 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.326, allocations: 48.71 MB / 331.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Vessels.TestMixingVolumesPressureStates): time 0.07549/0.4015, allocations: 47.32 MB / 379.1 MB, free: 15.13 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.061/0.4625, allocations: 25.71 MB / 404.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001811/0.4644, allocations: 39.62 kB / 404.9 MB, free: 5.324 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003371/0.4678, allocations: 0.5715 MB / 405.5 MB, free: 4.75 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02425/0.4921, allocations: 4.492 MB / 410 MB, free: 252 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01283/0.505, allocations: 3.121 MB / 413.1 MB, free: 13.12 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004521/0.5095, allocations: 1.99 MB / 415.1 MB, free: 11.12 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001556/0.5111, allocations: 0.6669 MB / 415.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02642/0.5376, allocations: 9.379 MB / 425.1 MB, free: 1.059 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03167/0.5693, allocations: 11.73 MB / 436.8 MB, free: 5.32 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003916/0.5698, allocations: 64 kB / 436.9 MB, free: 5.258 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0236/0.5934, allocations: 7.956 MB / 444.9 MB, free: 13.29 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007567/0.5942, allocations: 331 kB / 445.2 MB, free: 12.97 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005305/0.5947, allocations: 261.1 kB / 445.4 MB, free: 12.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.6062, allocations: 4.229 MB / 449.7 MB, free: 8.469 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.6063, allocations: 3.938 kB / 449.7 MB, free: 8.465 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6063, allocations: 0 / 449.7 MB, free: 8.465 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.573e-05/0.6063, allocations: 4 kB / 449.7 MB, free: 8.461 MB / 378.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.007411/0.6137, allocations: 1.991 MB / 451.7 MB, free: 6.418 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.6138, allocations: 8.031 kB / 451.7 MB, free: 6.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00675/0.6206, allocations: 0.5996 MB / 452.3 MB, free: 5.809 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002146/0.6228, allocations: 0.7596 MB / 453 MB, free: 5.008 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002701/0.6231, allocations: 208.8 kB / 453.2 MB, free: 4.777 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.6233, allocations: 99.91 kB / 453.3 MB, free: 4.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006321/0.6297, allocations: 1.842 MB / 455.2 MB, free: 2.703 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.698e-05/0.6298, allocations: 7.938 kB / 455.2 MB, free: 2.695 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002132/0.63, allocations: 47.95 kB / 455.2 MB, free: 2.648 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.102e-05/0.6301, allocations: 57.91 kB / 455.3 MB, free: 2.594 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006808/0.6369, allocations: 1.678 MB / 457 MB, free: 0.9102 MB / 378.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.01445/0.6514, allocations: 8.45 MB / 465.4 MB, free: 7.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004417/0.6559, allocations: 0.9411 MB / 466.4 MB, free: 6.891 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4594/1.115, allocations: 57.99 MB / 0.5121 GB, free: 109.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.48e-05/1.115, allocations: 43.12 kB / 0.5121 GB, free: 109.5 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007614/1.116, allocations: 93.41 kB / 0.5122 GB, free: 109.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=69): time 3.367e-06/1.116, allocations: 0 / 0.5122 GB, free: 109.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.01356/1.13, allocations: 3.351 MB / 0.5155 GB, free: 106.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/1.13, allocations: 111.5 kB / 0.5156 GB, free: 106 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/1.131, allocations: 0.7896 MB / 0.5163 GB, free: 105.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.869e-05/1.131, allocations: 37.7 kB / 0.5164 GB, free: 105.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003448/1.131, allocations: 0.6242 MB / 0.517 GB, free: 104.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002208/1.132, allocations: 279.1 kB / 0.5172 GB, free: 104.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.404e-05/1.132, allocations: 28 kB / 0.5173 GB, free: 104.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.855e-05/1.132, allocations: 362.8 kB / 0.5176 GB, free: 103.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/1.133, allocations: 419.7 kB / 0.518 GB, free: 103.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001623/1.135, allocations: 1.047 MB / 0.519 GB, free: 102.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/1.137, allocations: 0.5742 MB / 0.5196 GB, free: 101.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/1.137, allocations: 9.422 kB / 0.5196 GB, free: 101.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.004587/1.141, allocations: 1.702 MB / 0.5213 GB, free: 99.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.868e-05/1.141, allocations: 15.95 kB / 0.5213 GB, free: 99.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/1.141, allocations: 24.09 kB / 0.5213 GB, free: 99.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004172/1.145, allocations: 0.6131 MB / 0.5219 GB, free: 99.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/1.147, allocations: 259.5 kB / 0.5222 GB, free: 98.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002857/1.15, allocations: 1.812 MB / 0.5239 GB, free: 97.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/1.151, allocations: 119.8 kB / 0.524 GB, free: 96.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001352/1.151, allocations: 83.98 kB / 0.5241 GB, free: 96.82 MB / 410.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.0006165/1.152, allocations: 347.3 kB / 0.5245 GB, free: 96.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/1.152, allocations: 94.88 kB / 0.5245 GB, free: 96.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007148/1.159, allocations: 4.43 MB / 0.5289 GB, free: 91.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/1.159, allocations: 3.984 kB / 0.5289 GB, free: 91.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/1.159, allocations: 0 / 0.5289 GB, free: 91.92 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006532/1.16, allocations: 401.9 kB / 0.5293 GB, free: 91.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/1.16, allocations: 16 kB / 0.5293 GB, free: 91.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/1.162, allocations: 107.9 kB / 0.5294 GB, free: 91.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/1.162, allocations: 72.84 kB / 0.5294 GB, free: 91.31 MB / 410.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.0009202/1.163, allocations: 440.8 kB / 0.5299 GB, free: 90.89 MB / 410.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.