Running command: translateModel(ThermoPower.Test.WaterComponents.TestSplitRev,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev") Notification: Performance of loadModel(ThermoPower): time 2.159/2.159, allocations: 254.6 MB / 267.6 MB, free: 12.37 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.671e-05/3.68e-05, allocations: 4 kB / 330.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3189, allocations: 60.23 MB / 391 MB, free: 4.871 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.255/7.574, allocations: 2.86 GB / 3.242 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/7.575, allocations: 73.17 kB / 3.242 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.974/10.55, allocations: 0.6831 GB / 3.925 GB, free: 49.29 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.747e-06/10.55, allocations: 0 / 3.925 GB, free: 49.29 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.96e-05/10.55, allocations: 27.75 kB / 3.925 GB, free: 49.29 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.007111/10.56, allocations: 1.757 MB / 3.927 GB, free: 48.28 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/10.56, allocations: 16.12 kB / 3.927 GB, free: 48.28 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006179/10.56, allocations: 123.6 kB / 3.927 GB, free: 48.22 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001644/10.56, allocations: 0.5898 MB / 3.927 GB, free: 47.84 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.895e-05/10.56, allocations: 57.12 kB / 3.927 GB, free: 47.82 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/10.56, allocations: 73.5 kB / 3.927 GB, free: 47.79 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002166/10.56, allocations: 0.9996 MB / 3.928 GB, free: 47.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.176e-05/10.56, allocations: 3.938 kB / 3.928 GB, free: 47.19 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/10.56, allocations: 37.69 kB / 3.928 GB, free: 47.17 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/10.56, allocations: 19.22 kB / 3.929 GB, free: 47.16 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001805/10.56, allocations: 0.5685 MB / 3.929 GB, free: 46.97 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005734/10.57, allocations: 4.725 MB / 3.934 GB, free: 43.04 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001651/10.57, allocations: 0.5192 MB / 3.934 GB, free: 42.82 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003989/10.57, allocations: 173.8 kB / 3.934 GB, free: 42.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07454/10.64, allocations: 31.97 MB / 3.966 GB, free: 22.51 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/10.65, allocations: 432.8 kB / 3.966 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=41): time 4.882e-06/10.65, allocations: 0 / 3.966 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of matching and sorting (n=41): time 0.002275/10.65, allocations: 0.6407 MB / 3.967 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/10.65, allocations: 92.14 kB / 3.967 GB, free: 22.02 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007699/10.65, allocations: 495.5 kB / 3.967 GB, free: 21.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.735e-05/10.65, allocations: 40.52 kB / 3.967 GB, free: 21.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/10.65, allocations: 372.5 kB / 3.968 GB, free: 21.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/10.65, allocations: 128.7 kB / 3.968 GB, free: 21.36 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/10.65, allocations: 7.844 kB / 3.968 GB, free: 21.36 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001172/10.65, allocations: 380.5 kB / 3.968 GB, free: 21.02 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004344/10.65, allocations: 147.3 kB / 3.968 GB, free: 20.96 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004586/10.65, allocations: 227.8 kB / 3.968 GB, free: 20.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004436/10.65, allocations: 263 kB / 3.969 GB, free: 20.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.616e-06/10.65, allocations: 0 / 3.969 GB, free: 20.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001413/10.65, allocations: 0.6034 MB / 3.969 GB, free: 20.28 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002713/10.65, allocations: 1.153 MB / 3.97 GB, free: 19.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/10.65, allocations: 11.88 kB / 3.97 GB, free: 19.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/10.65, allocations: 3.812 kB / 3.97 GB, free: 19.03 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/10.65, allocations: 161.9 kB / 3.971 GB, free: 19.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/10.65, allocations: 14.97 kB / 3.971 GB, free: 19.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001415/10.66, allocations: 175.4 kB / 3.971 GB, free: 18.97 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.963e-05/10.66, allocations: 26.75 kB / 3.971 GB, free: 18.96 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/10.66, allocations: 4.688 kB / 3.971 GB, free: 18.96 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001175/10.66, allocations: 0.5328 MB / 3.971 GB, free: 18.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.458e-06/10.66, allocations: 3.875 kB / 3.971 GB, free: 18.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/10.66, allocations: 3.938 kB / 3.971 GB, free: 18.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008563/10.66, allocations: 170.8 kB / 3.971 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.794e-06/10.66, allocations: 3.938 kB / 3.971 GB, free: 18.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/10.66, allocations: 175.4 kB / 3.972 GB, free: 18.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.766e-05/10.66, allocations: 23.75 kB / 3.972 GB, free: 18.61 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.0002277/10.66, allocations: 142.7 kB / 3.972 GB, free: 18.47 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/10.66, allocations: 78.23 kB / 3.972 GB, free: 18.43 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002338/10.66, allocations: 1.585 MB / 3.973 GB, free: 17.67 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.205e-05/10.66, allocations: 25.5 kB / 3.973 GB, free: 17.66 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.044e-06/10.66, allocations: 0 / 3.973 GB, free: 17.66 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/10.66, allocations: 3.562 kB / 3.973 GB, free: 17.66 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/10.66, allocations: 1.024 MB / 3.974 GB, free: 17.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.592e-06/10.66, allocations: 3.953 kB / 3.974 GB, free: 17.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00089/10.66, allocations: 143.6 kB / 3.975 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/10.66, allocations: 3.969 kB / 3.975 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/10.66, allocations: 11 kB / 3.975 GB, free: 17.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.829e-06/10.66, allocations: 4 kB / 3.975 GB, free: 17.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.093e-06/10.66, allocations: 3.906 kB / 3.975 GB, free: 17.08 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/10.67, allocations: 0.8902 MB / 3.975 GB, free: 16.62 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004476/10.67, allocations: 215.6 kB / 3.976 GB, free: 16.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/10.67, allocations: 11.78 kB / 3.976 GB, free: 16.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/10.67, allocations: 143.8 kB / 3.976 GB, free: 16.42 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00025/10.67, allocations: 75.34 kB / 3.976 GB, free: 16.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.756e-05/10.67, allocations: 18.47 kB / 3.976 GB, free: 16.39 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005461/10.67, allocations: 381.2 kB / 3.976 GB, free: 16.22 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.093e-06/10.67, allocations: 0 / 3.976 GB, free: 16.22 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004632/10.67, allocations: 1.205 MB / 3.977 GB, free: 15.14 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.007691/10.68, allocations: 1.833 MB / 3.979 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001928/10.68, allocations: 1.198 MB / 3.98 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.844e-06/10.68, allocations: 0 / 3.98 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007527/10.68, allocations: 442.3 kB / 3.981 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002108/10.69, allocations: 345 kB / 3.981 GB, free: 11.89 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002898/10.69, allocations: 1.296 MB / 3.982 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000489/10.69, allocations: 1.038 MB / 3.983 GB, free: 9.746 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001375/10.69, allocations: 415.3 kB / 3.984 GB, free: 9.484 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002551/10.69, allocations: 51.23 kB / 3.984 GB, free: 9.438 MB / 0.5261 GB Notification: Performance of SimCode: time 1.727e-06/10.69, allocations: 0 / 3.984 GB, free: 9.438 MB / 0.5261 GB Notification: Performance of Templates: time 0.4308/11.12, allocations: 50.73 MB / 4.033 GB, free: 67.13 MB / 0.5417 GB