Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.373/2.373, allocations: 270 MB / 282.7 MB, free: 1.773 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.713e-05/3.726e-05, allocations: 4 kB / 347 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3342, allocations: 61.88 MB / 408.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.993/7.327, allocations: 2.838 GB / 3.237 GB, free: 82.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/7.327, allocations: 78.33 kB / 3.237 GB, free: 82.66 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.04/9.367, allocations: 0.4969 GB / 3.734 GB, free: 7.707 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.083e-06/9.367, allocations: 0 / 3.734 GB, free: 7.707 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001446/9.367, allocations: 44 kB / 3.734 GB, free: 7.664 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.0125/9.38, allocations: 2.985 MB / 3.737 GB, free: 4.637 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/9.38, allocations: 12.03 kB / 3.737 GB, free: 4.625 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007197/9.387, allocations: 0.7114 MB / 3.738 GB, free: 3.914 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005692/9.393, allocations: 1.577 MB / 3.739 GB, free: 2.309 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003096/9.393, allocations: 166.5 kB / 3.74 GB, free: 2.148 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007909/9.394, allocations: 183 kB / 3.74 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.376/9.77, allocations: 3.501 MB / 3.743 GB, free: 58.91 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.132e-05/9.77, allocations: 6 kB / 3.743 GB, free: 58.91 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000367/9.77, allocations: 73.42 kB / 3.743 GB, free: 58.91 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000305/9.771, allocations: 172 kB / 3.743 GB, free: 58.9 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009545/9.78, allocations: 3.303 MB / 3.747 GB, free: 58.89 MB / 0.5417 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.02422/9.804, allocations: 14.13 MB / 3.76 GB, free: 51.29 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006409/9.811, allocations: 2.135 MB / 3.762 GB, free: 51.16 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002317/9.813, allocations: 1.071 MB / 3.764 GB, free: 51.11 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1483/9.962, allocations: 63.65 MB / 3.826 GB, free: 28.31 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005467/9.967, allocations: 1.689 MB / 3.827 GB, free: 28.18 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 5.918e-06/9.967, allocations: 0 / 3.827 GB, free: 28.18 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02406/9.991, allocations: 8.153 MB / 3.835 GB, free: 26.63 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000198/9.991, allocations: 279 kB / 3.836 GB, free: 26.32 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002283/9.994, allocations: 1.175 MB / 3.837 GB, free: 26.15 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000459/9.994, allocations: 61.39 kB / 3.837 GB, free: 26.12 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007109/9.995, allocations: 0.8112 MB / 3.838 GB, free: 25.74 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007103/9.996, allocations: 0.6036 MB / 3.838 GB, free: 25.44 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002113/9.996, allocations: 40.47 kB / 3.838 GB, free: 25.44 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0009781/9.997, allocations: 394 kB / 3.839 GB, free: 41.13 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002353/9.999, allocations: 1.146 MB / 3.84 GB, free: 41.12 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00271/10, allocations: 1.69 MB / 3.841 GB, free: 40.49 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002967/10.01, allocations: 1.375 MB / 3.843 GB, free: 40.44 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.226e-05/10.01, allocations: 7.125 kB / 3.843 GB, free: 40.44 MB / 0.573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008777/10.01, allocations: 3.86 MB / 3.846 GB, free: 40.29 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.003069/10.02, allocations: 6.273 MB / 3.853 GB, free: 33.71 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.056e-05/10.02, allocations: 17.44 kB / 3.853 GB, free: 33.71 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/10.04, allocations: 3.462 MB / 3.856 GB, free: 33.62 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001929/10.04, allocations: 329.9 kB / 3.856 GB, free: 33.62 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007508/10.05, allocations: 3.829 MB / 3.86 GB, free: 33.03 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003828/10.05, allocations: 273 kB / 3.86 GB, free: 33.01 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005717/10.05, allocations: 107.9 kB / 3.86 GB, free: 33.01 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/10.05, allocations: 3.688 kB / 3.86 GB, free: 33.01 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008546/10.06, allocations: 3.537 MB / 3.864 GB, free: 32.93 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-05/10.06, allocations: 15.38 kB / 3.864 GB, free: 32.93 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01127/10.07, allocations: 2.172 MB / 3.866 GB, free: 32.87 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002201/10.07, allocations: 370.1 kB / 3.866 GB, free: 32.87 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005187/10.08, allocations: 3.093 MB / 3.869 GB, free: 32.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0027/10.08, allocations: 262.3 kB / 3.87 GB, free: 32.28 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002905/10.08, allocations: 104.8 kB / 3.87 GB, free: 32.28 MB / 0.573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0007181/10.08, allocations: 232.8 kB / 3.87 GB, free: 32.17 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004634/10.08, allocations: 167.9 kB / 3.87 GB, free: 32.09 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/10.09, allocations: 6.759 MB / 3.877 GB, free: 31.52 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.167e-05/10.09, allocations: 70.94 kB / 3.877 GB, free: 31.52 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/10.09, allocations: 11.58 kB / 3.877 GB, free: 31.51 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008047/10.1, allocations: 5.441 MB / 3.882 GB, free: 30.77 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01637/10.12, allocations: 9.471 MB / 3.891 GB, free: 28.69 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/10.12, allocations: 3.844 kB / 3.891 GB, free: 28.69 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002742/10.12, allocations: 446.3 kB / 3.892 GB, free: 28.66 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/10.12, allocations: 438.6 kB / 3.892 GB, free: 28.52 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000293/10.12, allocations: 68.45 kB / 3.892 GB, free: 28.49 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002702/10.13, allocations: 3.208 MB / 3.895 GB, free: 25.64 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.131e-06/10.13, allocations: 7.578 kB / 3.895 GB, free: 25.63 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01078/10.14, allocations: 6.746 MB / 3.902 GB, free: 22.67 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00188/10.14, allocations: 0.7656 MB / 3.903 GB, free: 22.23 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005365/10.14, allocations: 58.72 kB / 3.903 GB, free: 22.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002551/10.14, allocations: 214.7 kB / 3.903 GB, free: 22.14 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004689/10.14, allocations: 179.7 kB / 3.903 GB, free: 22.12 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002366/10.14, allocations: 65.5 kB / 3.903 GB, free: 22.11 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002291/10.15, allocations: 1.224 MB / 3.904 GB, free: 21.63 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.94e-07/10.15, allocations: 0 / 3.904 GB, free: 21.63 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009649/10.16, allocations: 2.363 MB / 3.907 GB, free: 21.39 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01011/10.17, allocations: 2.035 MB / 3.909 GB, free: 21.05 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0111/10.18, allocations: 5.007 MB / 3.914 GB, free: 19.38 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.681e-06/10.18, allocations: 0 / 3.914 GB, free: 19.38 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004329/10.18, allocations: 2.264 MB / 3.916 GB, free: 17.89 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004989/10.19, allocations: 0.7864 MB / 3.917 GB, free: 17.32 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/10.2, allocations: 5.748 MB / 3.922 GB, free: 12.26 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/10.2, allocations: 2.045 MB / 3.924 GB, free: 10.63 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/10.2, allocations: 173.8 kB / 3.924 GB, free: 10.47 MB / 0.573 GB Notification: Performance of SimCode: time 2.054e-06/10.2, allocations: 0 / 3.924 GB, free: 10.47 MB / 0.573 GB Notification: Performance of Templates: time 0.467/10.67, allocations: 87.32 MB / 4.01 GB, free: 99.97 MB / 0.5886 GB