Running command: "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFEM_G,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFEM_G",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.779/2.779, allocations: 254.6 MB / 267.7 MB, free: 12.46 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.951e-05/4.957e-05, allocations: 4 kB / 330.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4271/0.4272, allocations: 60.23 MB / 391.1 MB, free: 4.875 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.121/9.548, allocations: 2.949 GB / 3.331 GB, free: 58.96 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/9.549, allocations: 82.45 kB / 3.331 GB, free: 58.93 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.824/11.37, allocations: 308.9 MB / 3.633 GB, free: 77.55 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.144e-06/11.37, allocations: 4.375 kB / 3.633 GB, free: 77.55 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.065e-05/11.37, allocations: 40.38 kB / 3.633 GB, free: 77.55 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.01856/11.39, allocations: 3.435 MB / 3.636 GB, free: 76.64 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/11.39, allocations: 12.34 kB / 3.636 GB, free: 76.64 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001219/11.39, allocations: 294.2 kB / 3.636 GB, free: 76.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002546/11.4, allocations: 364.8 kB / 3.637 GB, free: 76.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006587/11.4, allocations: 1.346 MB / 3.638 GB, free: 76.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001739/11.4, allocations: 151.8 kB / 3.638 GB, free: 76.19 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009477/11.4, allocations: 190.7 kB / 3.638 GB, free: 76.19 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0151/11.42, allocations: 4.6 MB / 3.643 GB, free: 76 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.009e-05/11.42, allocations: 0 / 3.643 GB, free: 76 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003937/11.42, allocations: 79.64 kB / 3.643 GB, free: 76 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.121e-05/11.42, allocations: 72.8 kB / 3.643 GB, free: 75.99 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01908/11.44, allocations: 5.02 MB / 3.648 GB, free: 75.98 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.0206/11.46, allocations: 9.219 MB / 3.657 GB, free: 72.09 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008486/11.47, allocations: 2.219 MB / 3.659 GB, free: 72.06 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002407/11.47, allocations: 0.9773 MB / 3.66 GB, free: 72.05 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2048/11.67, allocations: 63.98 MB / 3.723 GB, free: 32.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008861/11.68, allocations: 1.944 MB / 3.724 GB, free: 32.35 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=137): time 7.063e-06/11.68, allocations: 0 / 3.724 GB, free: 32.35 MB / 0.5105 GB Notification: Performance of matching and sorting (n=137): time 0.03283/11.72, allocations: 5.35 MB / 3.73 GB, free: 32.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/11.72, allocations: 252.3 kB / 3.73 GB, free: 31.82 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002487/11.72, allocations: 1.213 MB / 3.731 GB, free: 31.61 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008721/11.72, allocations: 50.3 kB / 3.731 GB, free: 31.57 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001112/11.72, allocations: 1.015 MB / 3.732 GB, free: 30.96 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001429/11.72, allocations: 0.5073 MB / 3.733 GB, free: 30.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004952/11.72, allocations: 56.62 kB / 3.733 GB, free: 30.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003777/11.72, allocations: 470 kB / 3.733 GB, free: 30.27 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00423/11.73, allocations: 1.415 MB / 3.734 GB, free: 29.82 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005191/11.73, allocations: 2.701 MB / 3.737 GB, free: 27.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005145/11.74, allocations: 1.906 MB / 3.739 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.668e-05/11.74, allocations: 10.38 kB / 3.739 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.03024/11.77, allocations: 6.19 MB / 3.745 GB, free: 22.83 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.006216/11.77, allocations: 17.1 MB / 3.762 GB, free: 20.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001435/11.77, allocations: 43.95 kB / 3.762 GB, free: 20.43 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01983/11.79, allocations: 2.562 MB / 3.764 GB, free: 18.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004754/11.8, allocations: 0.678 MB / 3.765 GB, free: 18.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03923/11.84, allocations: 13.11 MB / 3.778 GB, free: 7.227 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005066/11.84, allocations: 432.7 kB / 3.778 GB, free: 6.844 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/11.85, allocations: 222.4 kB / 3.778 GB, free: 6.656 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/11.85, allocations: 8 kB / 3.778 GB, free: 6.648 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02893/11.87, allocations: 5.994 MB / 3.784 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00019/11.87, allocations: 43.52 kB / 3.784 GB, free: 1.898 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02056/11.89, allocations: 2.546 MB / 3.787 GB, free: 216 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005017/11.9, allocations: 0.6787 MB / 3.787 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04217/11.94, allocations: 13.15 MB / 3.8 GB, free: 4.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004645/11.95, allocations: 335.2 kB / 3.801 GB, free: 4.367 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001051/11.95, allocations: 218.2 kB / 3.801 GB, free: 4.18 MB / 0.5417 GB Warning: Assuming fixed start value for the following 6 variables: hex.h[6]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0)))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0)))) start = hex.hstart[6] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[5]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[5] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[4]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[4] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[3]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[3] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[2]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, -10000000000.0)) max = min(10000000000.0, min(10000000000.0, 10000000000.0)) start = hex.hstart[2] unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] hex.h[1]:VARIABLE(min = max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, max(-10000000000.0, -10000000000.0)))) max = min(10000000000.0, min(10000000000.0, min(10000000000.0, min(10000000000.0, 10000000000.0)))) start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Fluid specific enthalpy" type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 196 * Number of states: 0 () * Number of discrete variables: 15 (hex.fluidState[6].phase,hex.fluidState[5].phase,hex.fluidState[4].phase,hex.fluidState[3].phase,hex.fluidState[2].phase,hex.fluidState[1].phase,$whenCondition1,MassFlowRate.a,MassFlowRate.b,MassFlowRate.last,$PRE.MassFlowRate.nextEvent,MassFlowRate.nextEvent,MassFlowRate.nextEventScaled,T_out.fluidState.phase,T_in.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (293): * Single equations (assignments): 291 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 49} Notification: Performance of prepare postOptimizeDAE: time 0.00154/11.95, allocations: 433.5 kB / 3.801 GB, free: 3.781 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006315/11.95, allocations: 150.1 kB / 3.801 GB, free: 3.637 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.428/12.38, allocations: 15.72 MB / 3.817 GB, free: 100.9 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-05/12.38, allocations: 35.66 kB / 3.817 GB, free: 100.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/12.38, allocations: 2.281 kB / 3.817 GB, free: 100.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.457e-05/12.38, allocations: 6.891 kB / 3.817 GB, free: 100.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04421/12.42, allocations: 21.58 MB / 3.838 GB, free: 99.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.51e-05/12.42, allocations: 0 / 3.838 GB, free: 99.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00268/12.43, allocations: 217.5 kB / 3.838 GB, free: 99.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02149/12.45, allocations: 2.79 MB / 3.841 GB, free: 99.28 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006993/12.45, allocations: 60.75 kB / 3.841 GB, free: 99.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04003/12.49, allocations: 13.12 MB / 3.854 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/12.49, allocations: 0.6562 kB / 3.854 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02609/12.51, allocations: 6.673 MB / 3.86 GB, free: 95.68 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/12.52, allocations: 495 kB / 3.861 GB, free: 95.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005701/12.52, allocations: 47.98 kB / 3.861 GB, free: 95.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002967/12.52, allocations: 131.5 kB / 3.861 GB, free: 95.38 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007698/12.52, allocations: 124.5 kB / 3.861 GB, free: 95.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002682/12.52, allocations: 50.19 kB / 3.861 GB, free: 95.35 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001604/12.52, allocations: 0.8462 MB / 3.862 GB, free: 95.04 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.21e-07/12.52, allocations: 0 / 3.862 GB, free: 95.04 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01189/12.53, allocations: 2.044 MB / 3.864 GB, free: 94.84 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (hex.h[1],hex.h[2],hex.h[3],hex.h[4],hex.h[5],hex.h[6]) * Number of discrete variables: 22 ($cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$whenCondition1,MassFlowRate.a,MassFlowRate.b,MassFlowRate.last,MassFlowRate.nextEvent,MassFlowRate.nextEventScaled) * Number of discrete states: 6 (MassFlowRate.nextEvent,MassFlowRate.last,MassFlowRate.nextEventScaled,MassFlowRate.b,MassFlowRate.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 54} Notification: Performance of Backend phase and start with SimCode phase: time 0.03515/12.57, allocations: 8.526 MB / 3.872 GB, free: 91.95 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01977/12.59, allocations: 6.496 MB / 3.878 GB, free: 89.73 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/12.59, allocations: 3.391 kB / 3.878 GB, free: 89.73 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006613/12.6, allocations: 2.014 MB / 3.88 GB, free: 88.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003949/12.6, allocations: 445.7 kB / 3.881 GB, free: 88.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/12.61, allocations: 4.948 MB / 3.886 GB, free: 87.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001479/12.62, allocations: 1.64 MB / 3.887 GB, free: 86.37 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01649/12.63, allocations: 8.824 MB / 3.896 GB, free: 86.22 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002157/12.64, allocations: 0.7814 MB / 3.897 GB, free: 85.64 MB / 0.5417 GB Notification: Performance of SimCode: time 1.132e-06/12.64, allocations: 6.219 kB / 3.897 GB, free: 85.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3026/12.94, allocations: 108.1 MB / 4.002 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.3828/13.32, allocations: 207.3 kB / 4.002 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.398/19.72, allocations: 0 / 4.002 GB, free: 111.1 MB / 0.5417 GB