Running command: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestJoinRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestJoinRev",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.57/2.57, allocations: 254.6 MB / 267.6 MB, free: 12.46 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.48e-05/4.503e-05, allocations: 4 kB / 330.9 MB, free: 13.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4292/0.4293, allocations: 60.23 MB / 391.1 MB, free: 4.762 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.994/9.424, allocations: 2.86 GB / 3.242 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/9.424, allocations: 74.17 kB / 3.242 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.423/12.85, allocations: 0.6506 GB / 3.892 GB, free: 52.72 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.287e-06/12.85, allocations: 0 / 3.892 GB, free: 52.72 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001018/12.85, allocations: 25.73 kB / 3.892 GB, free: 52.71 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.01298/12.86, allocations: 1.756 MB / 3.894 GB, free: 51.79 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/12.86, allocations: 7.125 kB / 3.894 GB, free: 51.79 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004206/12.86, allocations: 110.4 kB / 3.894 GB, free: 51.75 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009404/12.86, allocations: 127.8 kB / 3.894 GB, free: 51.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003215/12.87, allocations: 0.5872 MB / 3.895 GB, free: 51.41 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/12.87, allocations: 49.56 kB / 3.895 GB, free: 51.41 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003795/12.87, allocations: 69.12 kB / 3.895 GB, free: 51.41 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003935/12.87, allocations: 0.9586 MB / 3.896 GB, free: 51.08 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/12.87, allocations: 0 / 3.896 GB, free: 51.08 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001285/12.87, allocations: 38.59 kB / 3.896 GB, free: 51.08 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/12.87, allocations: 18.44 kB / 3.896 GB, free: 51.07 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/12.87, allocations: 0.5705 MB / 3.897 GB, free: 51.06 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006673/12.88, allocations: 4.415 MB / 3.901 GB, free: 47.78 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/12.88, allocations: 0.5224 MB / 3.901 GB, free: 47.73 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004748/12.88, allocations: 178.5 kB / 3.902 GB, free: 47.71 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1109/12.99, allocations: 31.99 MB / 3.933 GB, free: 28.04 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001422/12.99, allocations: 438 kB / 3.933 GB, free: 27.97 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 3.377e-06/12.99, allocations: 0 / 3.933 GB, free: 27.97 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42): time 0.002399/13, allocations: 0.6534 MB / 3.934 GB, free: 27.89 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/13, allocations: 93.17 kB / 3.934 GB, free: 27.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000754/13, allocations: 478.1 kB / 3.934 GB, free: 27.67 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.299e-05/13, allocations: 43.58 kB / 3.934 GB, free: 27.64 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002934/13, allocations: 352.7 kB / 3.935 GB, free: 27.48 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000162/13, allocations: 136.8 kB / 3.935 GB, free: 27.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.592e-05/13, allocations: 7.594 kB / 3.935 GB, free: 27.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001162/13, allocations: 378.2 kB / 3.935 GB, free: 27.09 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004674/13, allocations: 146 kB / 3.935 GB, free: 27.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005101/13, allocations: 208.7 kB / 3.936 GB, free: 26.93 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005703/13, allocations: 258.6 kB / 3.936 GB, free: 26.74 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/13, allocations: 0 / 3.936 GB, free: 26.74 MB / 0.5261 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00246/13, allocations: 0.594 MB / 3.936 GB, free: 26.41 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003407/13, allocations: 0.8104 MB / 3.937 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/13, allocations: 3.906 kB / 3.937 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.218e-05/13, allocations: 3.688 kB / 3.937 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00218/13, allocations: 164.8 kB / 3.937 GB, free: 25.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.3e-05/13, allocations: 2.688 kB / 3.937 GB, free: 25.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002859/13.01, allocations: 181.7 kB / 3.938 GB, free: 25.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/13.01, allocations: 18.69 kB / 3.938 GB, free: 25.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/13.01, allocations: 8.125 kB / 3.938 GB, free: 25.46 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001928/13.01, allocations: 0.521 MB / 3.938 GB, free: 25.19 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/13.01, allocations: 7.781 kB / 3.938 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/13.01, allocations: 3.312 kB / 3.938 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/13.01, allocations: 150.5 kB / 3.938 GB, free: 25.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/13.01, allocations: 3.938 kB / 3.938 GB, free: 25.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002371/13.01, allocations: 171.5 kB / 3.938 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/13.01, allocations: 26.06 kB / 3.938 GB, free: 25.12 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition4,$whenCondition3,$PRE.Sine1.T_start,Sine1.T_start,$PRE.Sine1.count,Sine1.count,$PRE.Sine2.T_start,Sine2.T_start,$PRE.Sine2.count,Sine2.count,$whenCondition2,$whenCondition1,$PRE.Sine3.T_start,Sine3.T_start,$PRE.Sine3.count,Sine3.count,$PRE.Sine4.T_start,Sine4.T_start,$PRE.Sine4.count,Sine4.count,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003642/13.01, allocations: 140.8 kB / 3.939 GB, free: 24.98 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002626/13.01, allocations: 69.83 kB / 3.939 GB, free: 24.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003943/13.02, allocations: 1.611 MB / 3.94 GB, free: 24.16 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.724e-05/13.02, allocations: 25.69 kB / 3.94 GB, free: 24.16 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/13.02, allocations: 3.5 kB / 3.94 GB, free: 24.16 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/13.02, allocations: 3.75 kB / 3.94 GB, free: 24.16 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002375/13.02, allocations: 1.023 MB / 3.941 GB, free: 23.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/13.02, allocations: 0 / 3.941 GB, free: 23.61 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001793/13.02, allocations: 138.8 kB / 3.941 GB, free: 23.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-05/13.02, allocations: 7.859 kB / 3.941 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.284e-05/13.02, allocations: 7.312 kB / 3.941 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.747e-06/13.02, allocations: 0 / 3.941 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/13.02, allocations: 7.844 kB / 3.941 GB, free: 23.59 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002542/13.03, allocations: 0.8906 MB / 3.942 GB, free: 23.14 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000639/13.03, allocations: 222.8 kB / 3.942 GB, free: 22.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002124/13.03, allocations: 10.44 kB / 3.942 GB, free: 22.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002263/13.03, allocations: 144.5 kB / 3.943 GB, free: 22.93 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004325/13.03, allocations: 83.92 kB / 3.943 GB, free: 22.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.525e-05/13.03, allocations: 13.86 kB / 3.943 GB, free: 22.9 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0008884/13.03, allocations: 376.2 kB / 3.943 GB, free: 22.72 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.052e-06/13.03, allocations: 0 / 3.943 GB, free: 22.72 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007411/13.04, allocations: 1.188 MB / 3.944 GB, free: 22.49 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count) * Number of discrete states: 4 (Sine3.count,Sine4.count,Sine1.count,Sine2.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01543/13.05, allocations: 3.211 MB / 3.947 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003534/13.06, allocations: 1.212 MB / 3.949 GB, free: 20.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/13.06, allocations: 0 / 3.949 GB, free: 20.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001491/13.06, allocations: 447.3 kB / 3.949 GB, free: 20.07 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00506/13.06, allocations: 324.3 kB / 3.949 GB, free: 20 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01136/13.08, allocations: 1.729 MB / 3.951 GB, free: 19.25 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007168/13.08, allocations: 1.03 MB / 3.952 GB, free: 18.53 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002411/13.08, allocations: 440.3 kB / 3.952 GB, free: 18.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009348/13.08, allocations: 335.4 kB / 3.953 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of SimCode: time 1.724e-06/13.08, allocations: 3.781 kB / 3.953 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6005/13.68, allocations: 60.89 MB / 4.012 GB, free: 59.38 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/13.68, allocations: 144.6 kB / 4.012 GB, free: 59.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.528/19.21, allocations: 3.688 kB / 4.012 GB, free: 59.16 MB / 0.5417 GB