Running command: translateModel(ThermoPower.Test.WaterComponents.TestJoinRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestJoinRev") Notification: Performance of loadModel(ThermoPower): time 2.196/2.196, allocations: 254.6 MB / 267.7 MB, free: 12.45 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.045e-05/3.055e-05, allocations: 4 kB / 330.8 MB, free: 13.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3184, allocations: 60.23 MB / 391 MB, free: 4.891 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.666/6.984, allocations: 2.86 GB / 3.242 GB, free: 62.87 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/6.985, allocations: 71.97 kB / 3.242 GB, free: 62.8 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.822/9.806, allocations: 0.6506 GB / 3.892 GB, free: 0.5547 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.839e-06/9.806, allocations: 0 / 3.892 GB, free: 0.5547 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.884e-05/9.806, allocations: 20.94 kB / 3.892 GB, free: 0.5352 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.3406/10.15, allocations: 1.737 MB / 3.894 GB, free: 44.73 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/10.15, allocations: 9.281 kB / 3.894 GB, free: 44.73 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006812/10.15, allocations: 123.1 kB / 3.894 GB, free: 44.68 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001769/10.15, allocations: 0.5914 MB / 3.895 GB, free: 44.44 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.312e-05/10.15, allocations: 48.66 kB / 3.895 GB, free: 44.44 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/10.15, allocations: 71.86 kB / 3.895 GB, free: 44.44 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/10.15, allocations: 0.9528 MB / 3.896 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/10.15, allocations: 8.219 kB / 3.896 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/10.15, allocations: 29.75 kB / 3.896 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/10.15, allocations: 18.31 kB / 3.896 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/10.15, allocations: 0.5619 MB / 3.896 GB, free: 44.12 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005234/10.16, allocations: 4.418 MB / 3.901 GB, free: 40.93 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/10.16, allocations: 0.519 MB / 3.901 GB, free: 40.88 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004077/10.16, allocations: 187.4 kB / 3.901 GB, free: 40.86 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07059/10.23, allocations: 32 MB / 3.933 GB, free: 37.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001444/10.23, allocations: 432.7 kB / 3.933 GB, free: 37.36 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 4.192e-06/10.23, allocations: 0 / 3.933 GB, free: 37.36 MB / 0.5417 GB Notification: Performance of matching and sorting (n=42): time 0.002257/10.24, allocations: 0.6515 MB / 3.934 GB, free: 37.29 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/10.24, allocations: 89.31 kB / 3.934 GB, free: 37.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007239/10.24, allocations: 475.5 kB / 3.934 GB, free: 37.07 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.962e-05/10.24, allocations: 36.14 kB / 3.934 GB, free: 37.04 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/10.24, allocations: 361.8 kB / 3.935 GB, free: 36.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/10.24, allocations: 137.3 kB / 3.935 GB, free: 36.84 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.799e-05/10.24, allocations: 9.156 kB / 3.935 GB, free: 36.84 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002003/10.24, allocations: 372.9 kB / 3.935 GB, free: 36.52 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003921/10.24, allocations: 150.5 kB / 3.935 GB, free: 36.52 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004218/10.24, allocations: 211 kB / 3.935 GB, free: 36.46 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004503/10.24, allocations: 255.2 kB / 3.936 GB, free: 36.33 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.811e-06/10.24, allocations: 1.75 kB / 3.936 GB, free: 36.33 MB / 0.5417 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001334/10.24, allocations: 0.5967 MB / 3.936 GB, free: 36.13 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000419/10.24, allocations: 0.8097 MB / 3.937 GB, free: 35.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/10.24, allocations: 3.906 kB / 3.937 GB, free: 35.28 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/10.24, allocations: 3.812 kB / 3.937 GB, free: 35.28 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009021/10.24, allocations: 168.1 kB / 3.937 GB, free: 35.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/10.24, allocations: 3.875 kB / 3.937 GB, free: 35.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/10.24, allocations: 175.1 kB / 3.937 GB, free: 35.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.127e-05/10.24, allocations: 22.8 kB / 3.937 GB, free: 35.25 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/10.24, allocations: 9.578 kB / 3.937 GB, free: 35.24 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001129/10.24, allocations: 0.5125 MB / 3.938 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.463e-06/10.24, allocations: 11 kB / 3.938 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/10.24, allocations: 3.75 kB / 3.938 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008384/10.24, allocations: 154.6 kB / 3.938 GB, free: 35.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/10.24, allocations: 3.594 kB / 3.938 GB, free: 35.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/10.25, allocations: 164.2 kB / 3.938 GB, free: 35.08 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.816e-05/10.25, allocations: 21.53 kB / 3.938 GB, free: 35.08 MB / 0.5417 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.0002471/10.25, allocations: 140.6 kB / 3.938 GB, free: 34.97 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/10.25, allocations: 76.53 kB / 3.938 GB, free: 34.93 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/10.25, allocations: 1.608 MB / 3.94 GB, free: 34.76 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/10.25, allocations: 24.05 kB / 3.94 GB, free: 34.76 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.89e-06/10.25, allocations: 0 / 3.94 GB, free: 34.76 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.645e-06/10.25, allocations: 3.656 kB / 3.94 GB, free: 34.76 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/10.25, allocations: 1.037 MB / 3.941 GB, free: 34.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.069e-06/10.25, allocations: 0 / 3.941 GB, free: 34.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008695/10.25, allocations: 140.3 kB / 3.941 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/10.25, allocations: 3.25 kB / 3.941 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.724e-05/10.25, allocations: 13.72 kB / 3.941 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.107e-06/10.25, allocations: 3.688 kB / 3.941 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.646e-06/10.25, allocations: 4 kB / 3.941 GB, free: 34.54 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/10.25, allocations: 0.8928 MB / 3.942 GB, free: 34.35 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004316/10.25, allocations: 218.4 kB / 3.942 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/10.25, allocations: 15.03 kB / 3.942 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/10.25, allocations: 150 kB / 3.942 GB, free: 34.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002497/10.25, allocations: 82.86 kB / 3.942 GB, free: 34.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.82e-05/10.26, allocations: 13.72 kB / 3.943 GB, free: 34.19 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005511/10.26, allocations: 370.2 kB / 3.943 GB, free: 34.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.43e-07/10.26, allocations: 3.781 kB / 3.943 GB, free: 34.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004481/10.26, allocations: 1.182 MB / 3.944 GB, free: 34.04 MB / 0.5417 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.007203/10.27, allocations: 1.795 MB / 3.946 GB, free: 33.71 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002098/10.27, allocations: 1.201 MB / 3.947 GB, free: 33.19 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.958e-06/10.27, allocations: 0 / 3.947 GB, free: 33.19 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0007448/10.27, allocations: 453.3 kB / 3.947 GB, free: 33.19 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/10.27, allocations: 326 kB / 3.948 GB, free: 33.16 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/10.28, allocations: 1.316 MB / 3.949 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006663/10.28, allocations: 1.031 MB / 3.95 GB, free: 32.09 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001277/10.28, allocations: 432.6 kB / 3.95 GB, free: 32.05 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002523/10.28, allocations: 55.86 kB / 3.95 GB, free: 32.05 MB / 0.5417 GB Notification: Performance of SimCode: time 1.801e-06/10.28, allocations: 4 kB / 3.95 GB, free: 32.04 MB / 0.5417 GB Notification: Performance of Templates: time 0.08263/10.36, allocations: 49.77 MB / 3.999 GB, free: 29.31 MB / 0.5417 GB