Running command: "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSplitRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ThermoPower): time 2.642/2.642, allocations: 254.6 MB / 267.6 MB, free: 12.46 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.288e-05/4.296e-05, allocations: 4 kB / 330.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.428/0.428, allocations: 60.23 MB / 391.1 MB, free: 4.883 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.875/9.304, allocations: 2.86 GB / 3.242 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/9.304, allocations: 75.44 kB / 3.242 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.658/12.96, allocations: 0.6831 GB / 3.925 GB, free: 45.95 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.254e-06/12.96, allocations: 0 / 3.925 GB, free: 45.95 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.649e-05/12.96, allocations: 22.09 kB / 3.925 GB, free: 45.95 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.009604/12.97, allocations: 1.765 MB / 3.927 GB, free: 44.92 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/12.97, allocations: 14.75 kB / 3.927 GB, free: 44.92 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003496/12.97, allocations: 105.2 kB / 3.927 GB, free: 44.84 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006222/12.97, allocations: 126.5 kB / 3.927 GB, free: 44.79 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002019/12.97, allocations: 0.5971 MB / 3.928 GB, free: 44.41 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.106e-05/12.97, allocations: 50.78 kB / 3.928 GB, free: 44.39 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001749/12.97, allocations: 67.78 kB / 3.928 GB, free: 44.37 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002525/12.98, allocations: 0.9989 MB / 3.929 GB, free: 43.76 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/12.98, allocations: 7.281 kB / 3.929 GB, free: 43.76 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/12.98, allocations: 35.81 kB / 3.929 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/12.98, allocations: 19.56 kB / 3.929 GB, free: 43.73 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/12.98, allocations: 0.5675 MB / 3.929 GB, free: 43.54 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007137/12.99, allocations: 4.743 MB / 3.934 GB, free: 39.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001824/12.99, allocations: 0.5185 MB / 3.934 GB, free: 39.37 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00045/12.99, allocations: 169.1 kB / 3.935 GB, free: 39.29 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09945/13.09, allocations: 31.98 MB / 3.966 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001334/13.09, allocations: 421.2 kB / 3.966 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=41): time 3.446e-06/13.09, allocations: 0 / 3.966 GB, free: 14.71 MB / 0.5261 GB Notification: Performance of matching and sorting (n=41): time 0.002326/13.09, allocations: 0.6393 MB / 3.967 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/13.09, allocations: 94.86 kB / 3.967 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000757/13.09, allocations: 495.6 kB / 3.967 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001027/13.09, allocations: 37.7 kB / 3.967 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002923/13.09, allocations: 380.2 kB / 3.968 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/13.09, allocations: 131.5 kB / 3.968 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.443e-05/13.09, allocations: 12 kB / 3.968 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001146/13.09, allocations: 370.8 kB / 3.968 GB, free: 12.54 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004446/13.09, allocations: 141.1 kB / 3.968 GB, free: 12.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005224/13.09, allocations: 238.7 kB / 3.969 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004696/13.1, allocations: 254.7 kB / 3.969 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/13.1, allocations: 0 / 3.969 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001471/13.1, allocations: 0.6054 MB / 3.969 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002667/13.1, allocations: 1.151 MB / 3.971 GB, free: 9.969 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/13.1, allocations: 7.938 kB / 3.971 GB, free: 9.961 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.046e-05/13.1, allocations: 7.984 kB / 3.971 GB, free: 9.953 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/13.1, allocations: 163.8 kB / 3.971 GB, free: 9.793 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.977e-05/13.1, allocations: 19.88 kB / 3.971 GB, free: 9.773 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001819/13.1, allocations: 179.2 kB / 3.971 GB, free: 9.598 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/13.1, allocations: 27.98 kB / 3.971 GB, free: 9.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/13.1, allocations: 4.781 kB / 3.971 GB, free: 9.566 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001214/13.1, allocations: 0.5142 MB / 3.971 GB, free: 9.027 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/13.1, allocations: 8.062 kB / 3.971 GB, free: 9.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/13.1, allocations: 11.98 kB / 3.971 GB, free: 9.008 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/13.1, allocations: 159.8 kB / 3.972 GB, free: 8.852 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/13.1, allocations: 4 kB / 3.972 GB, free: 8.848 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001637/13.1, allocations: 179.2 kB / 3.972 GB, free: 8.672 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.189e-05/13.1, allocations: 20 kB / 3.972 GB, free: 8.652 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition2,$whenCondition1,$PRE.Sine1.T_start,Sine1.T_start,$PRE.Sine1.count,Sine1.count,$PRE.Sine2.T_start,Sine2.T_start,$PRE.Sine2.count,Sine2.count,$whenCondition4,$whenCondition3,$PRE.Sine3.T_start,Sine3.T_start,$PRE.Sine3.count,Sine3.count,$PRE.Sine4.T_start,Sine4.T_start,$PRE.Sine4.count,Sine4.count,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * 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.0002494/13.1, allocations: 150.9 kB / 3.972 GB, free: 8.496 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/13.11, allocations: 71.16 kB / 3.972 GB, free: 8.426 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002465/13.11, allocations: 1.59 MB / 3.974 GB, free: 6.82 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.309e-05/13.11, allocations: 27.89 kB / 3.974 GB, free: 6.793 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/13.11, allocations: 0 / 3.974 GB, free: 6.793 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/13.11, allocations: 4 kB / 3.974 GB, free: 6.789 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/13.11, allocations: 1.025 MB / 3.975 GB, free: 5.727 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/13.11, allocations: 7.703 kB / 3.975 GB, free: 5.723 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/13.11, allocations: 135.9 kB / 3.975 GB, free: 5.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/13.11, allocations: 4 kB / 3.975 GB, free: 5.586 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.584e-05/13.11, allocations: 15.94 kB / 3.975 GB, free: 5.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/13.11, allocations: 0 / 3.975 GB, free: 5.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/13.11, allocations: 4 kB / 3.975 GB, free: 5.566 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/13.11, allocations: 0.8829 MB / 3.976 GB, free: 4.652 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004145/13.11, allocations: 215.6 kB / 3.976 GB, free: 4.422 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001521/13.11, allocations: 15.98 kB / 3.976 GB, free: 4.406 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/13.11, allocations: 143.8 kB / 3.976 GB, free: 4.266 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002989/13.11, allocations: 75.88 kB / 3.976 GB, free: 4.191 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.914e-05/13.11, allocations: 16 kB / 3.976 GB, free: 4.176 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005759/13.12, allocations: 387.2 kB / 3.976 GB, free: 3.805 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/13.12, allocations: 0 / 3.976 GB, free: 3.805 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00561/13.12, allocations: 1.202 MB / 3.978 GB, free: 2.602 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,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count) * Number of discrete states: 4 (Sine2.count,Sine1.count,Sine4.count,Sine3.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 33 * 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.01099/13.13, allocations: 3.239 MB / 3.981 GB, free: 15.65 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002701/13.13, allocations: 1.193 MB / 3.982 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/13.13, allocations: 448 / 3.982 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001061/13.14, allocations: 440.9 kB / 3.982 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00337/13.14, allocations: 341.5 kB / 3.983 GB, free: 13.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007664/13.15, allocations: 1.723 MB / 3.984 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008019/13.15, allocations: 1.032 MB / 3.985 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001652/13.15, allocations: 414.7 kB / 3.986 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007425/13.15, allocations: 335.3 kB / 3.986 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of SimCode: time 1.163e-06/13.15, allocations: 0 / 3.986 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6413/13.79, allocations: 62.15 MB / 4.047 GB, free: 58.55 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002575/13.79, allocations: 142.8 kB / 4.047 GB, free: 58.33 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.415/19.21, allocations: 2 kB / 4.047 GB, free: 58.33 MB / 0.5417 GB