Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicPlateHeatExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicPlateHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicPlateHeatExchanger") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicPlateHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicPlateHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9344/0.9344, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.000369, allocations: 15.98 kB / 237.8 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06413/0.06451, allocations: 31.35 MB / 269.1 MB, free: 7.035 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicPlateHeatExchanger): time 1.721/1.786, allocations: 299.8 MB / 0.5556 GB, free: 8.234 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5674/2.353, allocations: 195.7 MB / 0.7466 GB, free: 108 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001569/2.355, allocations: 35.69 kB / 0.7467 GB, free: 108 kB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicPlateHeatExchanger.mo:227:3-228:54:writable] Warning: Connector Ec is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicPlateHeatExchanger.mo:229:3-230:54:writable] Warning: Connector Ef is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicPlateHeatExchanger.mo:231:3-232:52:writable] Warning: Connector Sf is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicPlateHeatExchanger.mo:233:3-234:52:writable] Warning: Connector Sc is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/Sink.mo:39:3-40:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticPlateHeatExchanger.mo:91:3-92:54:writable] Warning: Connector Ec is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticPlateHeatExchanger.mo:93:3-94:54:writable] Warning: Connector Ef is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticPlateHeatExchanger.mo:95:3-96:52:writable] Warning: Connector Sf is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/StaticPlateHeatExchanger.mo:97:3-98:51:writable] Warning: Connector Sc is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourcePQ.mo:74:3-75:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/Sink.mo:39:3-40:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0009525/2.356, allocations: 343 kB / 0.747 GB, free: 100 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002021/2.358, allocations: 0.8382 MB / 0.7478 GB, free: 64 kB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.03752/2.395, allocations: 13.76 MB / 0.7612 GB, free: 15.67 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.008572/2.404, allocations: 8.77 MB / 0.7698 GB, free: 15.65 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005519/2.41, allocations: 2.819 MB / 0.7726 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005151/2.415, allocations: 2.699 MB / 0.7752 GB, free: 14.4 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005797/2.421, allocations: 3.457 MB / 0.7786 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.002906/2.424, allocations: 0.6258 MB / 0.7792 GB, free: 13.55 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04846/2.472, allocations: 22.89 MB / 0.8015 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00356/2.476, allocations: 2.135 MB / 0.8036 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.006417/2.482, allocations: 2.68 MB / 0.8062 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.03995/2.522, allocations: 17.33 MB / 0.8232 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/2.522, allocations: 0 / 0.8232 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.204e-06/2.522, allocations: 4 kB / 0.8232 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002084/2.522, allocations: 0 / 0.8232 GB, free: 14.75 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1134 * Number of variables: 1134 Notification: Performance of Generate backend data structure: time 0.02271/2.545, allocations: 6.619 MB / 0.8296 GB, free: 8.066 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/2.545, allocations: 12.03 kB / 0.8296 GB, free: 8.055 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001418/2.547, allocations: 439 kB / 0.8301 GB, free: 7.621 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004871/2.551, allocations: 2.161 MB / 0.8322 GB, free: 5.535 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005077/2.552, allocations: 460.1 kB / 0.8326 GB, free: 5.066 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009887/2.553, allocations: 404 kB / 0.833 GB, free: 4.672 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01514/2.568, allocations: 7.603 MB / 0.8404 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.098e-05/2.568, allocations: 10.47 kB / 0.8404 GB, free: 12.96 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005173/2.569, allocations: 172 kB / 0.8406 GB, free: 12.79 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.553e-05/2.569, allocations: 116 kB / 0.8407 GB, free: 12.68 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02594/2.595, allocations: 18.34 MB / 0.8586 GB, free: 10.34 MB / 0.67 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.2034/2.798, allocations: 92.5 MB / 0.9489 GB, free: 7.238 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01385/2.812, allocations: 7.841 MB / 0.9566 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007795/2.82, allocations: 4.075 MB / 0.9606 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7815/3.602, allocations: 345.3 MB / 1.298 GB, free: 149.9 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001561/3.602, allocations: 92.81 kB / 1.298 GB, free: 149.8 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=676): time 8.677e-06/3.602, allocations: 0 / 1.298 GB, free: 149.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=676): time 0.04184/3.644, allocations: 16.89 MB / 1.314 GB, free: 133.7 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/3.644, allocations: 137.7 kB / 1.314 GB, free: 133.6 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001593/3.645, allocations: 1.436 MB / 1.316 GB, free: 132.2 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0008792/3.646, allocations: 125.7 kB / 1.316 GB, free: 132 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004762/3.647, allocations: 1.036 MB / 1.317 GB, free: 131 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001659/3.648, allocations: 2.27 MB / 1.319 GB, free: 128.8 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00163/3.65, allocations: 1.227 MB / 1.32 GB, free: 127.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 4.381e-05/3.65, allocations: 309 kB / 1.321 GB, free: 127.2 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00592/3.656, allocations: 3.596 MB / 1.324 GB, free: 123.6 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007203/3.663, allocations: 4.522 MB / 1.329 GB, free: 118.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01511/3.678, allocations: 8.646 MB / 1.337 GB, free: 109.9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.032e-05/3.678, allocations: 8 kB / 1.337 GB, free: 109.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=806) (initialization): time 0.02914/3.708, allocations: 13.52 MB / 1.35 GB, free: 96.42 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.706e-05/3.708, allocations: 16.84 kB / 1.35 GB, free: 96.4 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.466e-05/3.708, allocations: 20 kB / 1.35 GB, free: 96.38 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08058/3.788, allocations: 23.37 MB / 1.373 GB, free: 73.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/3.79, allocations: 370.2 kB / 1.374 GB, free: 72.78 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03004/3.82, allocations: 15.67 MB / 1.389 GB, free: 56.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004715/3.824, allocations: 0.6891 MB / 1.39 GB, free: 56.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001194/3.826, allocations: 307.8 kB / 1.39 GB, free: 55.93 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * Number of states: 0 () * Number of discrete variables: 20 (sourceP3.C.ftype,sourceP2.C.ftype,echangeurAPlaques.fluid_c,echangeurAPlaques.fluid_f,puitsP2.fluid,puitsP3.fluid,sourceP3.fluid1,sourceP2.fluid1,sourceP1.C.ftype,sourceP.C.ftype,echangeurAPlaques1D.fluid_c,echangeurAPlaques1D.fluid_f,puitsP.fluid,puitsP1.fluid,sourceP1.fluid1,sourceP.fluid1,echangeurAPlaques1D.Ef.diff_on_2,echangeurAPlaques1D.Sf.diff_on_1,echangeurAPlaques1D.Ec.diff_on_2,echangeurAPlaques1D.Sc.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(4,23), (60,460), (2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.002153/3.828, allocations: 0.8975 MB / 1.391 GB, free: 55.05 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008902/3.829, allocations: 359 kB / 1.391 GB, free: 54.7 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02903/3.858, allocations: 15.12 MB / 1.406 GB, free: 39.6 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001125/3.858, allocations: 27.89 kB / 1.406 GB, free: 39.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/3.858, allocations: 1.438 kB / 1.406 GB, free: 39.57 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00329/3.861, allocations: 1.334 MB / 1.407 GB, free: 38.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007145/3.862, allocations: 115.8 kB / 1.407 GB, free: 38.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003127/3.865, allocations: 275.8 kB / 1.407 GB, free: 37.83 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007128/3.866, allocations: 409.2 kB / 1.408 GB, free: 37.43 MB / 0.8262 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 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(echangeurAPlaques.Tmc, echangeurAPlaques.rhoc, echangeurAPlaques.proc.u, echangeurAPlaques.proc.s, echangeurAPlaques.proc.cp, echangeurAPlaques.proc.ddhp, echangeurAPlaques.proc.ddph, echangeurAPlaques.proc.duph, echangeurAPlaques.proc.duhp, echangeurAPlaques.proc.x) = $cse23 Variables: 1: echangeurAPlaques.proc.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 2: echangeurAPlaques.proc.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 3: $cse23.u:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse23.s:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse23.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 6: echangeurAPlaques.Pmc:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Hot fluid average pressure" type: Real 7: $cse23.d:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse23.duhp:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse23.T:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse23.x:VARIABLE(protected = true ) type: Real unreplaceable [/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): puitsP2.P = if sourceP2.Q0 > 0.0 then sourceP2.P0 - echangeurAPlaques.DPc else sourceP2.P0 + echangeurAPlaques.DPc 2/2 (1): echangeurAPlaques.DPc = if noEvent(echangeurAPlaques.qmc < 0.001) then 0.0 else echangeurAPlaques.c1 * 14423.2 / (echangeurAPlaques.rhoc * echangeurAPlaques.qmc ^ 0.097) * echangeurAPlaques.quc ^ 2.0 * (1472.47 + 0.77 * (echangeurAPlaques.N - 1.0) + 104.97 / echangeurAPlaques.qmc ^ 0.25) 3/3 (1): echangeurAPlaques.muc = ThermoSysPro.Properties.Fluid.DynamicViscosity_rhoT(echangeurAPlaques.rhoc, echangeurAPlaques.Tmc, echangeurAPlaques.fluid_c) 4/4 (1): echangeurAPlaques.hc = if noEvent(echangeurAPlaques.qmc < 0.001) then 0.0 else 11.245 * echangeurAPlaques.qmc ^ 0.8 * abs(echangeurAPlaques.muc * echangeurAPlaques.proc.cp / echangeurAPlaques.lambdac) ^ 0.4 * echangeurAPlaques.lambdac 5/5 (1): echangeurAPlaques.K = echangeurAPlaques.hc * echangeurAPlaques.hf / (echangeurAPlaques.hc + echangeurAPlaques.hf + echangeurAPlaques.hc * echangeurAPlaques.hf * echangeurAPlaques.emetal / echangeurAPlaques.lambdam) 6/6 (1): echangeurAPlaques.W = echangeurAPlaques.K * echangeurAPlaques.S * echangeurAPlaques.DTm 7/7 (1): echangeurAPlaques.DTm = if noEvent(echangeurAPlaques.DT1 > echangeurAPlaques.DT2) and noEvent(echangeurAPlaques.DT2 > 0.0) or noEvent(echangeurAPlaques.DT1 < echangeurAPlaques.DT2) and noEvent(echangeurAPlaques.DT2 < 0.0) then (echangeurAPlaques.DT1 - echangeurAPlaques.DT2) / log(echangeurAPlaques.DT1 / echangeurAPlaques.DT2) else 0.5 * (echangeurAPlaques.DT1 + echangeurAPlaques.DT2) 8/8 (1): echangeurAPlaques.DT1 = echangeurAPlaques.Tec - echangeurAPlaques.Tsf 9/9 (10): $cse28 = ThermoSysPro.Properties.Fluid.Ph(puitsP3.P, echangeurAPlaques.Sf.h, echangeurAPlaques.mode_f, echangeurAPlaques.fluid_f) 10/19 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(echangeurAPlaques.Tsf, echangeurAPlaques.profs.d, echangeurAPlaques.profs.u, echangeurAPlaques.profs.s, echangeurAPlaques.profs.cp, echangeurAPlaques.profs.ddhp, echangeurAPlaques.profs.ddph, echangeurAPlaques.profs.duph, echangeurAPlaques.profs.duhp, echangeurAPlaques.profs.x) = $cse28 11/29 (1): echangeurAPlaques.Hmf = 0.5 * (1e5 + echangeurAPlaques.Sf.h) 12/30 (10): $cse24 = ThermoSysPro.Properties.Fluid.Ph(echangeurAPlaques.Pmf, echangeurAPlaques.Hmf, echangeurAPlaques.mode_f, echangeurAPlaques.fluid_f) 13/40 (1): echangeurAPlaques.muf = ThermoSysPro.Properties.Fluid.DynamicViscosity_rhoT(echangeurAPlaques.rhof, echangeurAPlaques.Tmf, echangeurAPlaques.fluid_f) 14/41 (1): echangeurAPlaques.lambdaf = ThermoSysPro.Properties.Fluid.ThermalConductivity_rhoT(echangeurAPlaques.rhof, echangeurAPlaques.Tmf, echangeurAPlaques.Pmf, 0, echangeurAPlaques.fluid_f) 15/42 (1): echangeurAPlaques.hf = if noEvent(echangeurAPlaques.qmf < 0.001) then 0.0 else 11.245 * echangeurAPlaques.qmf ^ 0.8 * abs(echangeurAPlaques.muf * echangeurAPlaques.prof.cp / echangeurAPlaques.lambdaf) ^ 0.4 * echangeurAPlaques.lambdaf 16/43 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(echangeurAPlaques.Tmf, echangeurAPlaques.rhof, echangeurAPlaques.prof.u, echangeurAPlaques.prof.s, echangeurAPlaques.prof.cp, echangeurAPlaques.prof.ddhp, echangeurAPlaques.prof.ddph, echangeurAPlaques.prof.duph, echangeurAPlaques.prof.duhp, echangeurAPlaques.prof.x) = $cse24 17/53 (1): 0.0 = if abs(sourceP3.Q0) > 0.001 then echangeurAPlaques.W - sourceP3.Q0 * echangeurAPlaques.prof.cp * (echangeurAPlaques.Tsf - echangeurAPlaques.Tef) else echangeurAPlaques.Tef - echangeurAPlaques.Tsf 18/54 (1): 0.0 = if abs(sourceP2.Q0) > 0.001 then echangeurAPlaques.W - sourceP2.Q0 * echangeurAPlaques.proc.cp * (echangeurAPlaques.Tec - echangeurAPlaques.Tsc) else echangeurAPlaques.Tec - echangeurAPlaques.Tsc 19/55 (10): $cse26 = ThermoSysPro.Properties.Fluid.Ph(puitsP2.P, echangeurAPlaques.Sc.h, echangeurAPlaques.mode_c, echangeurAPlaques.fluid_f) 20/65 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(echangeurAPlaques.Tsc, echangeurAPlaques.procs.d, echangeurAPlaques.procs.u, echangeurAPlaques.procs.s, echangeurAPlaques.procs.cp, echangeurAPlaques.procs.ddhp, echangeurAPlaques.procs.ddph, echangeurAPlaques.procs.duph, echangeurAPlaques.procs.duhp, echangeurAPlaques.procs.x) = $cse26 21/75 (1): echangeurAPlaques.Hmc = 0.5 * (sourceP2.C.h + echangeurAPlaques.Sc.h) 22/76 (10): $cse23 = ThermoSysPro.Properties.Fluid.Ph(echangeurAPlaques.Pmc, echangeurAPlaques.Hmc, echangeurAPlaques.mode_c, echangeurAPlaques.fluid_c) 23/86 (1): echangeurAPlaques.lambdac = ThermoSysPro.Properties.Fluid.ThermalConductivity_rhoT(echangeurAPlaques.rhoc, echangeurAPlaques.Tmc, echangeurAPlaques.Pmc, 0, echangeurAPlaques.fluid_c) 24/87 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(echangeurAPlaques.Tmc, echangeurAPlaques.rhoc, echangeurAPlaques.proc.u, echangeurAPlaques.proc.s, echangeurAPlaques.proc.cp, echangeurAPlaques.proc.ddhp, echangeurAPlaques.proc.ddph, echangeurAPlaques.proc.duph, echangeurAPlaques.proc.duhp, echangeurAPlaques.proc.x) = $cse23 25/97 (1): echangeurAPlaques.Pmc = 0.5 * (sourceP2.P0 + puitsP2.P) 26/98 (1): echangeurAPlaques.DT2 = echangeurAPlaques.Tsc - echangeurAPlaques.Tef 27/99 (1): echangeurAPlaques.DPf = if noEvent(echangeurAPlaques.qmf < 0.001) then 0.0 else 14423.2 / (echangeurAPlaques.rhof * echangeurAPlaques.qmf ^ 0.097) * echangeurAPlaques.quf ^ 2.0 * (1472.47 + 0.77 * (echangeurAPlaques.N - 1.0) + 104.97 / echangeurAPlaques.qmf ^ 0.25) 28/100 (1): echangeurAPlaques.qmf = abs(sourceP3.Q0) / (echangeurAPlaques.muf * echangeurAPlaques.N) 29/101 (1): echangeurAPlaques.Pmf = 0.5 * (sourceP3.P0 + puitsP3.P) 30/102 (1): puitsP3.P = if sourceP3.Q0 > 0.0 then sourceP3.P0 - echangeurAPlaques.DPf else sourceP3.P0 + echangeurAPlaques.DPf 31/103 (1): echangeurAPlaques.qmc = abs(sourceP2.Q0) / (echangeurAPlaques.muc * echangeurAPlaques.N) Variables: 1: echangeurAPlaques.qmc:VARIABLE() type: Real 2: echangeurAPlaques.DPf:VARIABLE(unit = "Pa" ) "Pressure loss of the cold fluid" type: Real 3: puitsP3.P:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure" type: Real 4: echangeurAPlaques.muf:VARIABLE(min = 0.0 start = 0.001 unit = "Pa.s" ) "Cold fluid dynamic viscosity" type: Real 5: echangeurAPlaques.qmf:VARIABLE() type: Real 6: echangeurAPlaques.DT2:VARIABLE(unit = "K" ) "Temperature difference at the outlet of the exchanger" type: Real 7: puitsP2.P:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure" type: Real 8: echangeurAPlaques.proc.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 9: $cse23.duph:VARIABLE(protected = true ) type: Real unreplaceable 10: echangeurAPlaques.proc.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 11: echangeurAPlaques.proc.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 12: echangeurAPlaques.proc.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 13: echangeurAPlaques.lambdac:VARIABLE(start = 0.602698 unit = "W/(m.K)" ) "Hot fluid thermal conductivity" type: Real 14: echangeurAPlaques.Tmc:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Hot fluid average temperature" type: Real 15: echangeurAPlaques.proc.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 16: echangeurAPlaques.proc.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 17: echangeurAPlaques.proc.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 18: echangeurAPlaques.proc.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 19: $cse23.u:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse23.s:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse23.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 22: echangeurAPlaques.Pmc:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Hot fluid average pressure" type: Real 23: $cse23.d:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse23.duhp:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse23.T:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse23.x:VARIABLE(protected = true ) type: Real unreplaceable 27: $cse23.cp:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse23.ddph:VARIABLE(protected = true ) type: Real unreplaceable 29: echangeurAPlaques.Hmc:VARIABLE(start = 1e5 unit = "J/kg" ) "Hot fluid average specific enthalpy" type: Real 30: echangeurAPlaques.procs.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 31: echangeurAPlaques.procs.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 32: echangeurAPlaques.procs.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 33: echangeurAPlaques.procs.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 34: echangeurAPlaques.procs.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 35: $cse26.d:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse26.u:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse26.duph:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse26.x:VARIABLE(protected = true ) type: Real unreplaceable 39: $cse26.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 40: $cse26.cp:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse26.duhp:VARIABLE(protected = true ) type: Real unreplaceable 42: echangeurAPlaques.Sc.h:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Specific enthalpy of the fluid crossing the boundary of the control volume" type: Real 43: $cse26.ddph:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse26.s:VARIABLE(protected = true ) type: Real unreplaceable 45: $cse26.T:VARIABLE(protected = true ) type: Real unreplaceable 46: echangeurAPlaques.procs.d:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Density" type: Real 47: echangeurAPlaques.procs.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 48: echangeurAPlaques.procs.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 49: echangeurAPlaques.procs.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 50: echangeurAPlaques.Tsc:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature at the hot outlet" type: Real 51: echangeurAPlaques.W:VARIABLE(unit = "W" ) "Thermal power exchanged between the two sides" type: Real 52: echangeurAPlaques.prof.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 53: $cse24.duhp:VARIABLE(protected = true ) type: Real unreplaceable 54: echangeurAPlaques.prof.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 55: echangeurAPlaques.prof.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 56: echangeurAPlaques.prof.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 57: echangeurAPlaques.prof.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 58: echangeurAPlaques.prof.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 59: echangeurAPlaques.hf:VARIABLE(unit = "W/(m2.K)" ) "Heat transfer coefficient of the cold fluid" type: Real 60: echangeurAPlaques.lambdaf:VARIABLE(start = 0.597928 unit = "W/(m.K)" ) "Cold fluid thermal conductivity" type: Real 61: echangeurAPlaques.Tmf:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Cold fluid average temperature" type: Real 62: echangeurAPlaques.rhof:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Cold fluid density" type: Real 63: echangeurAPlaques.prof.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 64: echangeurAPlaques.prof.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 65: $cse24.ddph:VARIABLE(protected = true ) type: Real unreplaceable 66: $cse24.cp:VARIABLE(protected = true ) type: Real unreplaceable 67: echangeurAPlaques.Pmf:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Cold fluid average pressure" type: Real 68: $cse24.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 69: $cse24.d:VARIABLE(protected = true ) type: Real unreplaceable 70: $cse24.duph:VARIABLE(protected = true ) type: Real unreplaceable 71: $cse24.T:VARIABLE(protected = true ) type: Real unreplaceable 72: $cse24.s:VARIABLE(protected = true ) type: Real unreplaceable 73: $cse24.x:VARIABLE(protected = true ) type: Real unreplaceable 74: $cse24.u:VARIABLE(protected = true ) type: Real unreplaceable 75: echangeurAPlaques.Hmf:VARIABLE(start = 1e5 unit = "J/kg" ) "Cold fluid average specific enthalpy" type: Real 76: echangeurAPlaques.profs.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 77: echangeurAPlaques.profs.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 78: echangeurAPlaques.profs.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 79: echangeurAPlaques.profs.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 80: $cse28.duph:VARIABLE(protected = true ) type: Real unreplaceable 81: $cse28.ddph:VARIABLE(protected = true ) type: Real unreplaceable 82: echangeurAPlaques.Sf.h:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Specific enthalpy of the fluid crossing the boundary of the control volume" type: Real 83: $cse28.duhp:VARIABLE(protected = true ) type: Real unreplaceable 84: $cse28.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 85: $cse28.s:VARIABLE(protected = true ) type: Real unreplaceable 86: $cse28.cp:VARIABLE(protected = true ) type: Real unreplaceable 87: $cse28.d:VARIABLE(protected = true ) type: Real unreplaceable 88: $cse28.T:VARIABLE(protected = true ) type: Real unreplaceable 89: $cse28.u:VARIABLE(protected = true ) type: Real unreplaceable 90: $cse28.x:VARIABLE(protected = true ) type: Real unreplaceable 91: echangeurAPlaques.profs.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 92: echangeurAPlaques.profs.d:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Density" type: Real 93: echangeurAPlaques.profs.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 94: echangeurAPlaques.profs.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 95: echangeurAPlaques.profs.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 96: echangeurAPlaques.Tsf:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature at the cold outlet" type: Real 97: echangeurAPlaques.DT1:VARIABLE(unit = "K" ) "Temperature difference at the inlet of the exchanger" type: Real 98: echangeurAPlaques.DTm:VARIABLE(unit = "K" ) "Difference in average temperature" type: Real 99: echangeurAPlaques.K:VARIABLE(unit = "W/(m2.K)" ) "Global heat transfer coefficient" type: Real 100: echangeurAPlaques.hc:VARIABLE(unit = "W/(m2.K)" ) "Heat transfer coefficient of the hot fluid" type: Real 101: echangeurAPlaques.muc:VARIABLE(min = 0.0 start = 0.001 unit = "Pa.s" ) "Hot fluid dynamic viscosity" type: Real 102: echangeurAPlaques.rhoc:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Hot fluid density" type: Real 103: echangeurAPlaques.DPc:VARIABLE(unit = "Pa" ) "Pressure loss of the hot fluid" 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.002619/3.868, allocations: 3.993 MB / 1.412 GB, free: 32.52 MB / 0.8262 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicPlateHeatExchanger could not be translated