Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.298/2.298, allocations: 270 MB / 282.7 MB, free: 1.816 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.099e-05/3.115e-05, allocations: 4 kB / 347 MB, free: 3.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3271, allocations: 61.87 MB / 408.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.703/7.03, allocations: 2.83 GB / 3.229 GB, free: 164 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/7.03, allocations: 78.89 kB / 3.229 GB, free: 163.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.635/9.665, allocations: 0.5829 GB / 3.812 GB, free: 51.21 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.075e-06/9.665, allocations: 0 / 3.812 GB, free: 51.21 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001772/9.665, allocations: 44.45 kB / 3.812 GB, free: 51.21 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.009935/9.675, allocations: 2.856 MB / 3.815 GB, free: 50.03 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/9.675, allocations: 11 kB / 3.815 GB, free: 50.03 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005586/9.681, allocations: 0.5418 MB / 3.815 GB, free: 49.95 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00459/9.685, allocations: 1.438 MB / 3.817 GB, free: 49.59 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/9.686, allocations: 111.2 kB / 3.817 GB, free: 49.59 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004234/9.686, allocations: 125 kB / 3.817 GB, free: 49.59 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006182/9.692, allocations: 2.258 MB / 3.819 GB, free: 49.21 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.574e-05/9.692, allocations: 5.5 kB / 3.819 GB, free: 49.21 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002463/9.693, allocations: 58.88 kB / 3.819 GB, free: 49.21 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001643/9.693, allocations: 94.34 kB / 3.819 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006181/9.699, allocations: 1.955 MB / 3.821 GB, free: 49.2 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.01517/9.714, allocations: 9.797 MB / 3.831 GB, free: 43.26 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004197/9.718, allocations: 1.343 MB / 3.832 GB, free: 43.23 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/9.72, allocations: 0.6279 MB / 3.833 GB, free: 43.22 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05516/9.775, allocations: 24.52 MB / 3.857 GB, free: 28.29 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00321/9.778, allocations: 1.056 MB / 3.858 GB, free: 28.21 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 5.223e-06/9.778, allocations: 3.375 kB / 3.858 GB, free: 28.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.01525/9.793, allocations: 4.47 MB / 3.862 GB, free: 27.5 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.876e-05/9.794, allocations: 276.3 kB / 3.862 GB, free: 27.19 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/9.795, allocations: 1.023 MB / 3.863 GB, free: 27.03 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002466/9.796, allocations: 45.33 kB / 3.863 GB, free: 27 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004936/9.796, allocations: 0.6175 MB / 3.864 GB, free: 26.67 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003833/9.797, allocations: 359 kB / 3.864 GB, free: 26.45 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/9.797, allocations: 20.16 kB / 3.864 GB, free: 26.45 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001043/9.797, allocations: 365.5 kB / 3.865 GB, free: 26.14 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/9.798, allocations: 0.617 MB / 3.865 GB, free: 26.13 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/9.8, allocations: 0.9033 MB / 3.866 GB, free: 25.82 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/9.801, allocations: 0.7624 MB / 3.867 GB, free: 25.77 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.181e-06/9.801, allocations: 2.594 kB / 3.867 GB, free: 25.77 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.00409/9.805, allocations: 1.78 MB / 3.869 GB, free: 25.65 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005753/9.806, allocations: 2.736 MB / 3.871 GB, free: 22.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-05/9.806, allocations: 10.03 kB / 3.871 GB, free: 22.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005941/9.807, allocations: 131.5 kB / 3.871 GB, free: 22.79 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/9.808, allocations: 321 kB / 3.872 GB, free: 22.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008382/9.809, allocations: 1.252 MB / 3.873 GB, free: 21.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002066/9.811, allocations: 159.7 kB / 3.873 GB, free: 21.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/9.812, allocations: 65.59 kB / 3.873 GB, free: 21.75 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/9.812, allocations: 4.562 kB / 3.873 GB, free: 21.75 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003902/9.816, allocations: 1.693 MB / 3.875 GB, free: 21.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.028e-05/9.816, allocations: 7 kB / 3.875 GB, free: 21.67 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006021/9.816, allocations: 136 kB / 3.875 GB, free: 21.65 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001933/9.818, allocations: 311.6 kB / 3.875 GB, free: 21.65 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008326/9.819, allocations: 1.254 MB / 3.877 GB, free: 20.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/9.821, allocations: 156.3 kB / 3.877 GB, free: 20.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002683/9.821, allocations: 62.73 kB / 3.877 GB, free: 20.61 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004911/9.822, allocations: 212.5 kB / 3.877 GB, free: 20.46 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003975/9.822, allocations: 141.7 kB / 3.877 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00749/9.83, allocations: 4.741 MB / 3.882 GB, free: 19.87 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.554e-05/9.83, allocations: 53.89 kB / 3.882 GB, free: 19.87 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.013e-06/9.83, allocations: 0 / 3.882 GB, free: 19.87 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00568/9.835, allocations: 3.946 MB / 3.886 GB, free: 19.41 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/9.846, allocations: 6.78 MB / 3.892 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/9.846, allocations: 0 / 3.892 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/9.847, allocations: 250.8 kB / 3.892 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009335/9.848, allocations: 177.6 kB / 3.893 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001584/9.849, allocations: 40.31 kB / 3.893 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007986/9.849, allocations: 1.287 MB / 3.894 GB, free: 17.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.722e-06/9.849, allocations: 0.6562 kB / 3.894 GB, free: 17.78 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006853/9.856, allocations: 4.233 MB / 3.898 GB, free: 17.34 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/9.858, allocations: 0.5551 MB / 3.899 GB, free: 17.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004481/9.858, allocations: 29.59 kB / 3.899 GB, free: 17.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/9.86, allocations: 126.3 kB / 3.899 GB, free: 17.08 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/9.86, allocations: 92.45 kB / 3.899 GB, free: 17.08 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/9.86, allocations: 47.22 kB / 3.899 GB, free: 17.08 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00184/9.862, allocations: 0.9812 MB / 3.9 GB, free: 16.96 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.104e-06/9.862, allocations: 0 / 3.9 GB, free: 16.96 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007764/9.87, allocations: 2.212 MB / 3.902 GB, free: 16.62 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01051/9.88, allocations: 2.404 MB / 3.904 GB, free: 16.12 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005976/9.886, allocations: 3.005 MB / 3.907 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.827e-06/9.886, allocations: 6.594 kB / 3.907 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002412/9.889, allocations: 1.415 MB / 3.909 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004047/9.893, allocations: 0.6417 MB / 3.909 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007018/9.9, allocations: 3.848 MB / 3.913 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001906/9.902, allocations: 1.705 MB / 3.915 GB, free: 30.28 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006975/9.903, allocations: 135.7 kB / 3.915 GB, free: 30.27 MB / 0.5573 GB Notification: Performance of SimCode: time 1.972e-06/9.903, allocations: 0 / 3.915 GB, free: 30.27 MB / 0.5573 GB Notification: Performance of Templates: time 0.09869/10, allocations: 69.27 MB / 3.982 GB, free: 13.06 MB / 0.5573 GB