Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/package.mo", uses=false) Using package OpenIMDML with version 1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo) Running command: translateModel(OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample") translateModel(OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIMDML_main_OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.3809/0.3809, allocations: 78.54 MB / 94.85 MB, free: 3.828 MB / 78.07 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 102.5 kB / 114.4 MB, free: 9.785 MB / 94.07 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 188.2 kB / 134.1 MB, free: 6.133 MB / 110.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 376.5 MB, free: 3.773 MB / 270.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/package.mo): time 0.6676/0.6676, allocations: 62.27 MB / 0.4958 GB, free: 7.812 MB / 366.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002357/0.002358, allocations: 128.6 kB / 0.6448 GB, free: 14.45 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1305, allocations: 69.5 MB / 0.7127 GB, free: 13.45 MB / 0.4982 GB Notification: Performance of NFInst.instantiate(OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample): time 0.06854/0.199, allocations: 61.5 MB / 0.7727 GB, free: 15.71 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.6438/0.8429, allocations: 28.09 MB / 0.8002 GB, free: 3.051 MB / 0.5608 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002904/0.8458, allocations: 41.28 kB / 0.8002 GB, free: 3.051 MB / 0.5608 GB Notification: Performance of NFTyping.typeComponents: time 0.0029/0.8488, allocations: 0.8187 MB / 0.801 GB, free: 3.047 MB / 0.5608 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Branches/PSAT/TwoWindingTransformer.mo:44:3-44:83:writable] Warning: In relation tf1_mt1.m <> 1.0, <> on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Branches/PSAT/TwoWindingTransformer.mo:44:3-44:83:writable] Warning: In relation tf2_mt1.m <> 1.0, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeBindings: time 0.0222/0.871, allocations: 6.773 MB / 0.8076 GB, free: 2.922 MB / 0.5608 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:742:11-742:251:writable] Warning: In relation motor.motor.R2 == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:742:11-742:251:writable] Warning: In relation motor.motor.X2 == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:742:11-742:251:writable] Warning: In relation motor.motor.R2 == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:742:11-742:251:writable] Warning: In relation motor.motor.X2 == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:743:11-743:166:writable] Warning: In relation motor.motor.R2 == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:743:11-743:166:writable] Warning: In relation motor.motor.X2 == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:744:11-744:235:writable] Warning: In relation motor.motor.R2 == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:744:11-744:235:writable] Warning: In relation motor.motor.X2 == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:744:11-744:235:writable] Warning: In relation motor.motor.R2 == 0.0, == on Real numbers is only allowed inside functions. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIMDML 1.0.0-main/MultiDomain.mo:744:11-744:235:writable] Warning: In relation motor.motor.X2 == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.01287/0.8839, allocations: 4.509 MB / 0.812 GB, free: 2.789 MB / 0.5608 GB Notification: Performance of NFFlatten.flatten: time 0.007141/0.8911, allocations: 4.533 MB / 0.8165 GB, free: 2.246 MB / 0.5608 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003039/0.8942, allocations: 1.565 MB / 0.818 GB, free: 2.086 MB / 0.5608 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008433/0.9026, allocations: 3.416 MB / 0.8213 GB, free: 1.297 MB / 0.5608 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02333/0.926, allocations: 9.67 MB / 0.8308 GB, free: 13.62 MB / 0.5764 GB Notification: Performance of NFPackage.collectConstants: time 0.001107/0.9271, allocations: 262.7 kB / 0.831 GB, free: 13.62 MB / 0.5764 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02172/0.9489, allocations: 9.267 MB / 0.8401 GB, free: 9.242 MB / 0.5764 GB Notification: Performance of NFScalarize.scalarize: time 0.001378/0.9503, allocations: 0.6954 MB / 0.8407 GB, free: 8.695 MB / 0.5764 GB Notification: Performance of NFVerifyModel.verify: time 0.002627/0.9529, allocations: 1.366 MB / 0.8421 GB, free: 7.754 MB / 0.5764 GB Notification: Performance of NFConvertDAE.convert: time 0.01824/0.9712, allocations: 8.506 MB / 0.8504 GB, free: 2.551 MB / 0.5764 GB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.9712, allocations: 6.531 kB / 0.8504 GB, free: 2.547 MB / 0.5764 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9713, allocations: 0 / 0.8504 GB, free: 2.547 MB / 0.5764 GB Notification: Performance of Transformations before backend: time 0.0001033/0.9714, allocations: 0 / 0.8504 GB, free: 2.547 MB / 0.5764 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 454 * Number of variables: 454 Notification: Performance of Generate backend data structure: time 0.01241/0.9838, allocations: 3.897 MB / 0.8542 GB, free: 15.62 MB / 0.592 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.9838, allocations: 8.031 kB / 0.8542 GB, free: 15.62 MB / 0.592 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00663/0.9905, allocations: 0.8715 MB / 0.8551 GB, free: 14.75 MB / 0.592 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00356/0.9941, allocations: 1.446 MB / 0.8565 GB, free: 13.29 MB / 0.592 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003176/0.9944, allocations: 239.2 kB / 0.8567 GB, free: 13.04 MB / 0.592 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005777/0.995, allocations: 182.8 kB / 0.8569 GB, free: 12.86 MB / 0.592 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007175/1.002, allocations: 2.541 MB / 0.8594 GB, free: 10.24 MB / 0.592 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.034e-05/1.002, allocations: 11.84 kB / 0.8594 GB, free: 10.23 MB / 0.592 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000285/1.003, allocations: 70.58 kB / 0.8594 GB, free: 10.16 MB / 0.592 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000124/1.003, allocations: 95.36 kB / 0.8595 GB, free: 10.07 MB / 0.592 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006046/1.009, allocations: 2.281 MB / 0.8618 GB, free: 7.785 MB / 0.592 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.02108/1.03, allocations: 10.73 MB / 0.8722 GB, free: 12.51 MB / 0.6077 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/1.041, allocations: 3.659 MB / 0.8758 GB, free: 8.73 MB / 0.6077 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002362/1.043, allocations: 1.099 MB / 0.8769 GB, free: 7.633 MB / 0.6077 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1415/1.184, allocations: 63.53 MB / 0.9389 GB, free: 0.6875 MB / 0.6702 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001073/1.185, allocations: 56.56 kB / 0.939 GB, free: 0.625 MB / 0.6702 GB Notification: Performance of pre-optimization done (n=195): time 7.454e-06/1.185, allocations: 7.984 kB / 0.939 GB, free: 0.6172 MB / 0.6702 GB Notification: Performance of matching and sorting (n=201): time 0.03278/1.217, allocations: 9.634 MB / 0.9484 GB, free: 6.902 MB / 0.6858 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/1.218, allocations: 188.2 kB / 0.9486 GB, free: 6.684 MB / 0.6858 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002724/1.22, allocations: 1.659 MB / 0.9502 GB, free: 5.027 MB / 0.6858 GB Notification: Performance of collectPreVariables (initialization): time 0.0004364/1.221, allocations: 61.7 kB / 0.9502 GB, free: 4.961 MB / 0.6858 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007455/1.222, allocations: 0.903 MB / 0.9511 GB, free: 4.051 MB / 0.6858 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009067/1.222, allocations: 0.6891 MB / 0.9518 GB, free: 3.367 MB / 0.6858 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007684/1.223, allocations: 379.7 kB / 0.9522 GB, free: 2.988 MB / 0.6858 GB Notification: Performance of setup shared object (initialization): time 0.0001006/1.223, allocations: 301.1 kB / 0.9524 GB, free: 2.691 MB / 0.6858 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002031/1.225, allocations: 0.9191 MB / 0.9533 GB, free: 1.762 MB / 0.6858 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002435/1.228, allocations: 1.318 MB / 0.9546 GB, free: 288 kB / 0.6858 GB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.03369/1.262, allocations: 7.284 MB / 0.9617 GB, free: 8.848 MB / 0.7014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/1.262, allocations: 3.938 kB / 0.9617 GB, free: 8.844 MB / 0.7014 GB Notification: Performance of matching and sorting (n=271) (initialization): time 0.01123/1.273, allocations: 3.885 MB / 0.9655 GB, free: 4.938 MB / 0.7014 GB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/1.273, allocations: 8 kB / 0.9655 GB, free: 4.93 MB / 0.7014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.497e-05/1.273, allocations: 15.94 kB / 0.9656 GB, free: 4.914 MB / 0.7014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00712/1.28, allocations: 1.644 MB / 0.9672 GB, free: 3.262 MB / 0.7014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00187/1.282, allocations: 375.4 kB / 0.9675 GB, free: 2.895 MB / 0.7014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01825/1.3, allocations: 9.35 MB / 0.9767 GB, free: 9.227 MB / 0.717 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00244/1.303, allocations: 96 kB / 0.9767 GB, free: 9.133 MB / 0.717 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004601/1.303, allocations: 91.98 kB / 0.9768 GB, free: 9.043 MB / 0.717 GB Warning: Assuming fixed start value for the following 4 variables: motor.motor.Eki:VARIABLE(unit = "1" fixed = true ) type: Real motor.motor.Ekr:VARIABLE(unit = "1" fixed = true ) type: Real motor.motor.Epi:VARIABLE(unit = "1" fixed = true ) type: Real motor.motor.Epr:VARIABLE(unit = "1" fixed = true ) type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: motor.motor.s = 0.999999999999999. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003157/1.306, allocations: 1.215 MB / 0.978 GB, free: 7.82 MB / 0.717 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002511/1.309, allocations: 1.316 MB / 0.9793 GB, free: 6.336 MB / 0.717 GB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02835/1.337, allocations: 6.376 MB / 0.9855 GB, free: 15.79 MB / 0.7327 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.611e-05/1.337, allocations: 4 kB / 0.9855 GB, free: 15.79 MB / 0.7327 GB Notification: Performance of matching and sorting (n=271) (initialization_lambda0): time 0.01178/1.349, allocations: 3.784 MB / 0.9892 GB, free: 11.98 MB / 0.7327 GB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/1.349, allocations: 15.94 kB / 0.9892 GB, free: 11.96 MB / 0.7327 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/1.349, allocations: 8 kB / 0.9893 GB, free: 11.96 MB / 0.7327 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004895/1.354, allocations: 1.237 MB / 0.9905 GB, free: 10.71 MB / 0.7327 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001959/1.356, allocations: 403.4 kB / 0.9908 GB, free: 10.32 MB / 0.7327 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01722/1.373, allocations: 9.027 MB / 0.9997 GB, free: 0.9609 MB / 0.7327 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002405/1.376, allocations: 91.94 kB / 0.9998 GB, free: 0.8711 MB / 0.7327 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004425/1.376, allocations: 91.97 kB / 0.9998 GB, free: 0.7812 MB / 0.7327 GB Warning: Assuming fixed start value for the following 4 variables: motor.motor.Eki:VARIABLE(unit = "1" fixed = true ) type: Real motor.motor.Ekr:VARIABLE(unit = "1" fixed = true ) type: Real motor.motor.Epi:VARIABLE(unit = "1" fixed = true ) type: Real motor.motor.Epr:VARIABLE(unit = "1" fixed = true ) type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: motor.motor.s = 0.999999999999999. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 11 (reservoir.medium.phase,pump.medium.phase,pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,SOURCE.medium.phase,reservoir.inFlow[1],reservoir.regularFlow[1],clogged_pipe.state_b.phase,clogged_pipe.state_a.phase,pump.monitoring.state_in.phase,SOURCE.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,5), (5,23), (10,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0008695/1.377, allocations: 314.8 kB / 1 GB, free: 480 kB / 0.7327 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008196/1.378, allocations: 217.4 kB / 1 GB, free: 260 kB / 0.7327 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01357/1.392, allocations: 6.243 MB / 1.006 GB, free: 9.965 MB / 0.7483 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.357e-05/1.392, allocations: 15.91 kB / 1.006 GB, free: 9.949 MB / 0.7483 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/1.392, allocations: 0 / 1.006 GB, free: 9.949 MB / 0.7483 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/1.393, allocations: 0.548 MB / 1.007 GB, free: 9.379 MB / 0.7483 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006657/1.394, allocations: 47.84 kB / 1.007 GB, free: 9.332 MB / 0.7483 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002085/1.396, allocations: 107.9 kB / 1.007 GB, free: 9.227 MB / 0.7483 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007257/1.397, allocations: 269.5 kB / 1.007 GB, free: 8.965 MB / 0.7483 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): pump.Hb_flow = smooth(0, pump.m_flow * (if pump.m_flow > 0.0 then SOURCE.ports[1].h_outflow else pump.heatTransfer.states[1].h)) + smooth(0, (-pump.m_flow) * (if (-pump.m_flow) > 0.0 then pipe.port_a.h_outflow else pump.heatTransfer.states[1].h)) 2/2 (1): -pump.Hb_flow = pump.W_single * /*Real*/(pump.nParallel) 3/3 (1): pump.W_single = pump.dp_pump * pump.V_flow_single / pump.eta 4/4 (1): pump.eta = OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample.pump.efficiencyCharacteristic(pump.V_flow_single * pump.N_nominal / pump.N, 0.8) 5/5 (1): $cse12 = OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample.pump.flowCharacteristic(pump.V_flow_single * pump.N_nominal / pump.N, {0.0, 0.1}, {10.0, 0.0}) 6/6 (1): pump.head = (pump.N / pump.N_nominal) ^ 2.0 * $cse12 7/7 (1): pump.head = pump.dp_pump / (pump.rho * pump.g) 8/8 (1): pump.V_flow = pump.m_flow / pump.rho 9/9 (1): pump.m_flow = clogged_pipe.relativeFlowCoefficient * clogged_pipe.Av * $cse19 10/10 (1): $cse19 = Modelica.Fluid.Utilities.regRoot2(clogged_pipe.dp, clogged_pipe.dp_small, clogged_pipe.state_a.d, clogged_pipe.state_b.d, false, 1.0) 11/11 (1): clogged_pipe.state_b.d = $cse21.rho 12/12 (16): $cse10 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.heatTransfer.states[1].p, pump.heatTransfer.states[1].h, 1, 0) 13/28 (1): pump.rho = $cse10.rho 14/29 (16): $cse20 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.heatTransfer.states[1].p, pump.heatTransfer.states[1].h, 0, 0) 15/45 (1): clogged_pipe.state_a.d = $cse20.rho 16/46 (1): pump.dp_pump = pump.heatTransfer.states[1].p - SOURCE.p 17/47 (1): clogged_pipe.dp = pump.heatTransfer.states[1].p - pipe.flowModel.states[1].p 18/48 (16): $cse13 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe.flowModel.states[1].p, pump.heatTransfer.states[1].h, 0, 0) 19/64 (1): pipe.flowModel.rhos[1] = $cse13.rho 20/65 (1): pipe.flowModel.states[1].T = $cse13.T 21/66 (1): pipe.flowModel.mus[1] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(pipe.flowModel.rhos[1], pipe.flowModel.states[1].T, pipe.flowModel.states[1].p, 0, true) 22/67 (1): $cse15 = OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample.pipe.flowModel.WallFriction.massFlowRate_dp_staticHead(pipe.flowModel.dps_fg[1], pipe.flowModel.rhos[1], pipe.flowModel.rhos[2], pipe.flowModel.mus[1], pipe.flowModel.mus[2], pipe.length, pipe.flowModel.diameters[1], pipe.flowModel.g * pipe.height_ab, pipe.crossArea, pipe.roughness, pipe.flowModel.dp_small, 4000.0) 23/68 (1): pipe.port_b.h_outflow = pump.heatTransfer.states[1].h - system.g * pipe.height_ab 24/69 (16): $cse18 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(reservoir.vessel_ps_static[1], pipe.port_b.h_outflow, 0, 0) 25/85 (1): reservoir.portInDensities[1] = $cse18.rho 26/86 (1): 0.0 = if reservoir.regularFlow[1] then pipe.flowModel.states[2].p - (reservoir.vessel_ps_static[1] + 0.5 * reservoir.portAreas[1] ^ (-2.0) * Modelica.Fluid.Utilities.regSquare2(pump.m_flow, reservoir.m_flow_small, (reservoir.portsData[1].zeta_in - 1.0 + (reservoir.portAreas[1] / reservoir.vesselArea) ^ 2.0) / reservoir.portInDensities[1] * reservoir.ports_penetration[1], (reservoir.portsData[1].zeta_out + 1.0 - (reservoir.portAreas[1] / reservoir.vesselArea) ^ 2.0) / (reservoir.heatTransfer.states[1].d * reservoir.ports_penetration[1]), false, 1.0)) else if reservoir.inFlow[1] then pipe.flowModel.states[2].p - reservoir.vessel_ps_static[1] else pump.m_flow 27/87 (16): $cse14 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe.flowModel.states[2].p, reservoir.medium.h, 0, 0) 28/103 (1): pipe.flowModel.rhos[2] = $cse14.rho 29/104 (1): pipe.flowModel.mus[2] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(pipe.flowModel.rhos[2], pipe.flowModel.states[2].T, pipe.flowModel.states[2].p, 0, true) 30/105 (1): pipe.flowModel.states[2].T = $cse14.T 31/106 (1): 0.0 = if reservoir.regularFlow[1] then reservoir.s[1] - (reservoir.level - reservoir.portsData[1].height) else if reservoir.inFlow[1] then reservoir.s[1] - pump.m_flow else reservoir.s[1] - 9.869232667160129e-6 * (pipe.flowModel.states[2].p - reservoir.vessel_ps_static[1]) * (reservoir.portsData[1].height - reservoir.level) 32/107 (1): reservoir.inFlow[1] = not reservoir.regularFlow[1] and (reservoir.s[1] > 0.0 or reservoir.portsData[1].height >= reservoir.fluidLevel_max) 33/108 (1): pipe.flowModel.Fs_p[1] = pipe.flowModel.nParallel * pipe.crossArea * (pipe.flowModel.states[2].p - pipe.flowModel.states[1].p) 34/109 (1): pipe.flowModel.dps_fg[1] = (-2.0) * pipe.flowModel.Fs_p[1] / (2.0 * pipe.crossArea * pipe.flowModel.nParallel) 35/110 (16): $cse21 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe.flowModel.states[1].p, pipe.port_a.h_outflow, 0, 0) 36/126 (1): pump.m_flow = $cse15 * pipe.flowModel.nParallel 37/127 (1): pump.V_flow_single = pump.V_flow / /*Real*/(pump.nParallel) Variables: 1: pump.V_flow:VARIABLE(unit = "m3/s" ) "Volume flow rate (total)" type: Real 2: $cse15:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse21.pt:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse21.vp:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse21.cv:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse21.T:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse21.h:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse21.cp:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse21.dpT:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse21.rho:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse21.phase:DISCRETE(protected = true ) type: Integer unreplaceable 12: $cse21.s:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse21.region:DISCRETE(protected = true ) type: Integer unreplaceable 14: $cse21.x:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse21.pd:VARIABLE(protected = true ) type: Real unreplaceable 16: pipe.flowModel.dps_fg[1]:VARIABLE(start = pipe.flowModel.p_a_start - pipe.flowModel.p_b_start unit = "Pa" ) "Pressure drop between states" type: Real [1] 17: pipe.flowModel.Fs_p[1]:VARIABLE(unit = "N" ) "Pressure forces" type: Real [1] 18: reservoir.inFlow[1]:DISCRETE(flow=false start = false protected = true ) type: Boolean [1] 19: reservoir.s[1]:VARIABLE(start = reservoir.fluidLevel_max ) "Curve parameters for port flows vs. port pressures; for further details see, Modelica Tutorial: Ideal switching devices" type: Real [1] 20: pipe.flowModel.states[2].T:VARIABLE(min = 273.15 max = 2273.15 start = 500.0 unit = "K" nominal = 500.0 ) "Temperature" type: Real [2] 21: pipe.flowModel.mus[2]:VARIABLE(min = 0.0 max = 1e8 start = 0.001 unit = "Pa.s" nominal = 0.001 ) type: Real [2] 22: pipe.flowModel.rhos[2]:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = "kg/m3" nominal = 500.0 ) type: Real [2] 23: $cse14.vt:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse14.rho:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse14.h:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse14.phase:DISCRETE(protected = true ) type: Integer unreplaceable 27: $cse14.dpT:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse14.region:DISCRETE(protected = true ) type: Integer unreplaceable 29: $cse14.cv:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse14.cp:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse14.p:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse14.R_s:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse14.x:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse14.s:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse14.T:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse14.vp:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse14.pt:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse14.pd:VARIABLE(protected = true ) type: Real unreplaceable 39: pipe.flowModel.states[2].p:VARIABLE(min = 611.657 max = 1e8 start = 5e6 unit = "Pa" nominal = 1e6 ) "Pressure" type: Real [2] 40: reservoir.portInDensities[1]:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = "kg/m3" nominal = 500.0 ) "Densities of the fluid at the device boundary" type: Real [1] 41: $cse18.p:VARIABLE(protected = true ) type: Real unreplaceable 42: $cse18.pd:VARIABLE(protected = true ) type: Real unreplaceable 43: $cse18.dpT:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse18.pt:VARIABLE(protected = true ) type: Real unreplaceable 45: $cse18.phase:DISCRETE(protected = true ) type: Integer unreplaceable 46: $cse18.h:VARIABLE(protected = true ) type: Real unreplaceable 47: $cse18.x:VARIABLE(protected = true ) type: Real unreplaceable 48: $cse18.rho:VARIABLE(protected = true ) type: Real unreplaceable 49: $cse18.cp:VARIABLE(protected = true ) type: Real unreplaceable 50: $cse18.region:DISCRETE(protected = true ) type: Integer unreplaceable 51: $cse18.vp:VARIABLE(protected = true ) type: Real unreplaceable 52: $cse18.vt:VARIABLE(protected = true ) type: Real unreplaceable 53: $cse18.T:VARIABLE(protected = true ) type: Real unreplaceable 54: $cse18.cv:VARIABLE(protected = true ) type: Real unreplaceable 55: $cse18.R_s:VARIABLE(protected = true ) type: Real unreplaceable 56: $cse18.s:VARIABLE(protected = true ) type: Real unreplaceable 57: pipe.port_b.h_outflow:VARIABLE(min = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real 58: pipe.flowModel.rhos[1]:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = "kg/m3" nominal = 500.0 ) type: Real [2] 59: pipe.flowModel.mus[1]:VARIABLE(min = 0.0 max = 1e8 start = 0.001 unit = "Pa.s" nominal = 0.001 ) type: Real [2] 60: pipe.flowModel.states[1].T:VARIABLE(min = 273.15 max = 2273.15 start = 500.0 unit = "K" nominal = 500.0 ) "Temperature" type: Real [2] 61: $cse13.R_s:VARIABLE(protected = true ) type: Real unreplaceable 62: $cse13.p:VARIABLE(protected = true ) type: Real unreplaceable 63: $cse13.vp:VARIABLE(protected = true ) type: Real unreplaceable 64: $cse13.dpT:VARIABLE(protected = true ) type: Real unreplaceable 65: $cse13.phase:DISCRETE(protected = true ) type: Integer unreplaceable 66: $cse13.h:VARIABLE(protected = true ) type: Real unreplaceable 67: $cse13.s:VARIABLE(protected = true ) type: Real unreplaceable 68: $cse13.cv:VARIABLE(protected = true ) type: Real unreplaceable 69: $cse13.cp:VARIABLE(protected = true ) type: Real unreplaceable 70: $cse13.vt:VARIABLE(protected = true ) type: Real unreplaceable 71: $cse13.pd:VARIABLE(protected = true ) type: Real unreplaceable 72: $cse13.T:VARIABLE(protected = true ) type: Real unreplaceable 73: $cse13.pt:VARIABLE(protected = true ) type: Real unreplaceable 74: clogged_pipe.dp:VARIABLE(start = clogged_pipe.dp_start unit = "Pa" ) "Pressure difference between port_a and port_b (= port_a.p - port_b.p)" type: Real 75: pump.dp_pump:VARIABLE(unit = "Pa" ) "Pressure change" type: Real 76: clogged_pipe.state_a.d:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = "kg/m3" nominal = 500.0 protected = true ) "Density" type: Real 77: $cse20.rho:VARIABLE(protected = true ) type: Real unreplaceable 78: $cse20.p:VARIABLE(protected = true ) type: Real unreplaceable 79: $cse20.phase:DISCRETE(protected = true ) type: Integer unreplaceable 80: $cse20.cv:VARIABLE(protected = true ) type: Real unreplaceable 81: $cse20.vt:VARIABLE(protected = true ) type: Real unreplaceable 82: $cse20.s:VARIABLE(protected = true ) type: Real unreplaceable 83: $cse20.T:VARIABLE(protected = true ) type: Real unreplaceable 84: $cse20.region:DISCRETE(protected = true ) type: Integer unreplaceable 85: $cse20.x:VARIABLE(protected = true ) type: Real unreplaceable 86: $cse20.pt:VARIABLE(protected = true ) type: Real unreplaceable 87: $cse20.R_s:VARIABLE(protected = true ) type: Real unreplaceable 88: $cse20.h:VARIABLE(protected = true ) type: Real unreplaceable 89: $cse20.vp:VARIABLE(protected = true ) type: Real unreplaceable 90: $cse20.dpT:VARIABLE(protected = true ) type: Real unreplaceable 91: $cse20.cp:VARIABLE(protected = true ) type: Real unreplaceable 92: $cse20.pd:VARIABLE(protected = true ) type: Real unreplaceable 93: $cse10.phase:DISCRETE(protected = true ) type: Integer unreplaceable 94: $cse10.pd:VARIABLE(protected = true ) type: Real unreplaceable 95: $cse10.cv:VARIABLE(protected = true ) type: Real unreplaceable 96: $cse10.vp:VARIABLE(protected = true ) type: Real unreplaceable 97: $cse10.h:VARIABLE(protected = true ) type: Real unreplaceable 98: $cse10.cp:VARIABLE(protected = true ) type: Real unreplaceable 99: $cse10.region:DISCRETE(protected = true ) type: Integer unreplaceable 100: pump.heatTransfer.states[1].p:VARIABLE(min = 611.657 max = 1e8 start = pump.p_b_start unit = "Pa" nominal = 1e5 final = true ) "Pressure" type: Real [1] 101: $cse10.x:VARIABLE(protected = true ) type: Real unreplaceable 102: $cse10.dpT:VARIABLE(protected = true ) type: Real unreplaceable 103: $cse10.s:VARIABLE(protected = true ) type: Real unreplaceable 104: $cse10.pt:VARIABLE(protected = true ) type: Real unreplaceable 105: $cse10.p:VARIABLE(protected = true ) type: Real unreplaceable 106: $cse10.vt:VARIABLE(protected = true ) type: Real unreplaceable 107: $cse10.T:VARIABLE(protected = true ) type: Real unreplaceable 108: $cse10.rho:VARIABLE(protected = true ) type: Real unreplaceable 109: $cse10.R_s:VARIABLE(protected = true ) type: Real unreplaceable 110: pump.heatTransfer.states[1].h:VARIABLE(min = -1e10 max = 1e10 start = pump.h_start unit = "J/kg" nominal = 5e5 final = true ) "Specific enthalpy" type: Real [1] 111: $cse13.rho:VARIABLE(protected = true ) type: Real unreplaceable 112: $cse13.x:VARIABLE(protected = true ) type: Real unreplaceable 113: $cse13.region:DISCRETE(protected = true ) type: Integer unreplaceable 114: pipe.flowModel.states[1].p:VARIABLE(min = 611.657 max = 1e8 start = 5e6 unit = "Pa" nominal = 1e6 ) "Pressure" type: Real [2] 115: $cse21.vt:VARIABLE(protected = true ) type: Real unreplaceable 116: $cse21.p:VARIABLE(protected = true ) type: Real unreplaceable 117: $cse21.R_s:VARIABLE(protected = true ) type: Real unreplaceable 118: clogged_pipe.state_b.d:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = "kg/m3" nominal = 500.0 protected = true ) "Density" type: Real 119: $cse19:VARIABLE(protected = true ) type: Real unreplaceable 120: pump.m_flow:VARIABLE(min = -1e5 max = 1e5 start = clogged_pipe.m_flow_start unit = "kg/s" ) "Mass flow rate (total)" type: Real 121: pump.rho:VARIABLE(min = 0.0 max = 1e5 start = 150.0 unit = "kg/m3" nominal = 500.0 ) type: Real 122: pump.head:VARIABLE(unit = "m" ) "Pump head" type: Real 123: $cse12:VARIABLE(protected = true ) type: Real unreplaceable 124: pump.V_flow_single:VARIABLE(start = 0.0 unit = "m3/s" ) "Volume flow rate (single pump)" type: Real 125: pump.eta:VARIABLE() "Global Efficiency" type: Real 126: pump.W_single:VARIABLE(unit = "W" ) "Power Consumption (single pump)" type: Real 127: pump.Hb_flow:VARIABLE(unit = "W" ) "Enthalpy flow across boundaries or energy source/sink" 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.003761/1.401, allocations: 4.29 MB / 1.012 GB, free: 3.668 MB / 0.7483 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model OpenIMDML.Examples.MultiDomainExamples.MultiDomainApplications.TankExample could not be translated