Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.351/2.351, allocations: 270 MB / 282.7 MB, free: 1.762 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.553e-05/3.564e-05, allocations: 4 kB / 347 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3273, allocations: 61.89 MB / 408.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.95/7.277, allocations: 2.831 GB / 3.23 GB, free: 89.04 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001931/7.277, allocations: 79.27 kB / 3.23 GB, free: 89 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.8/11.08, allocations: 0.8771 GB / 4.107 GB, free: 40.36 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.335e-06/11.08, allocations: 3.375 kB / 4.107 GB, free: 40.36 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002131/11.08, allocations: 63.81 kB / 4.107 GB, free: 40.34 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.0133/11.09, allocations: 3.825 MB / 4.111 GB, free: 38.22 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/11.09, allocations: 11.16 kB / 4.111 GB, free: 38.22 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00746/11.1, allocations: 0.7802 MB / 4.112 GB, free: 38.03 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005921/11.1, allocations: 1.935 MB / 4.114 GB, free: 37.15 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/11.1, allocations: 174.1 kB / 4.114 GB, free: 37.08 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004177/11.11, allocations: 179.3 kB / 4.114 GB, free: 37.03 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008883/11.11, allocations: 3.277 MB / 4.117 GB, free: 35.67 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.369e-05/11.11, allocations: 3.938 kB / 4.117 GB, free: 35.67 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003098/11.11, allocations: 85.02 kB / 4.117 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002199/11.11, allocations: 145.5 kB / 4.117 GB, free: 35.6 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008645/11.12, allocations: 2.893 MB / 4.12 GB, free: 34.69 MB / 0.5573 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.02225/11.15, allocations: 14.23 MB / 4.134 GB, free: 23.4 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005528/11.15, allocations: 1.971 MB / 4.136 GB, free: 21.73 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001835/11.15, allocations: 0.9805 MB / 4.137 GB, free: 20.86 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04946/11.2, allocations: 24.62 MB / 4.161 GB, free: 12.23 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005493/11.21, allocations: 1.582 MB / 4.162 GB, free: 10.62 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001452/11.21, allocations: 182.2 kB / 4.163 GB, free: 10.44 MB / 0.573 GB Notification: Performance of pre-optimization done (n=146): time 5.551e-06/11.21, allocations: 0 / 4.163 GB, free: 10.44 MB / 0.573 GB Notification: Performance of matching and sorting (n=158): time 0.02518/11.24, allocations: 6.912 MB / 4.169 GB, free: 3.453 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001943/11.24, allocations: 252.6 kB / 4.17 GB, free: 3.148 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003087/11.24, allocations: 1.402 MB / 4.171 GB, free: 1.746 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004214/11.24, allocations: 53.7 kB / 4.171 GB, free: 1.688 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000952/11.24, allocations: 0.8271 MB / 4.172 GB, free: 0.8555 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008539/11.24, allocations: 0.5255 MB / 4.172 GB, free: 344 kB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001908/11.24, allocations: 36 kB / 4.172 GB, free: 308 kB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.4177/11.66, allocations: 378.8 kB / 4.173 GB, free: 58.35 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002769/11.66, allocations: 0.9257 MB / 4.174 GB, free: 58.35 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002875/11.66, allocations: 1.298 MB / 4.175 GB, free: 57.96 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002902/11.67, allocations: 1.154 MB / 4.176 GB, free: 57.88 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.05e-05/11.67, allocations: 0.5625 kB / 4.176 GB, free: 57.88 MB / 0.573 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.0076/11.67, allocations: 2.86 MB / 4.179 GB, free: 57.71 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007812/11.68, allocations: 3.729 MB / 4.183 GB, free: 53.84 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-05/11.68, allocations: 10.53 kB / 4.183 GB, free: 53.84 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004052/11.68, allocations: 0.5873 MB / 4.183 GB, free: 53.81 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/11.68, allocations: 434.6 kB / 4.184 GB, free: 53.81 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002357/11.69, allocations: 2.818 MB / 4.186 GB, free: 51.74 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002951/11.69, allocations: 231.4 kB / 4.186 GB, free: 51.74 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003054/11.69, allocations: 93 kB / 4.187 GB, free: 51.74 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/11.69, allocations: 8.719 kB / 4.187 GB, free: 51.74 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005971/11.69, allocations: 2.576 MB / 4.189 GB, free: 51.61 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.357e-05/11.69, allocations: 9.562 kB / 4.189 GB, free: 51.61 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008337/11.7, allocations: 197 kB / 4.189 GB, free: 51.58 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002642/11.7, allocations: 447.3 kB / 4.19 GB, free: 51.58 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/11.7, allocations: 1.873 MB / 4.192 GB, free: 50.03 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/11.7, allocations: 239.9 kB / 4.192 GB, free: 50.03 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002771/11.7, allocations: 86.45 kB / 4.192 GB, free: 50.03 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006704/11.7, allocations: 294.5 kB / 4.192 GB, free: 49.86 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005614/11.7, allocations: 195.4 kB / 4.192 GB, free: 49.86 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01176/11.71, allocations: 7.45 MB / 4.2 GB, free: 49.35 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.803e-05/11.72, allocations: 85.7 kB / 4.2 GB, free: 49.35 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/11.72, allocations: 0 / 4.2 GB, free: 49.35 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0096/11.72, allocations: 6.519 MB / 4.206 GB, free: 48.48 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0164/11.74, allocations: 10.39 MB / 4.216 GB, free: 47.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/11.74, allocations: 0.5625 kB / 4.216 GB, free: 47.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001972/11.74, allocations: 338.7 kB / 4.217 GB, free: 47.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004194/11.75, allocations: 1.585 MB / 4.218 GB, free: 47.83 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003791/11.75, allocations: 57.81 kB / 4.218 GB, free: 47.83 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002859/11.75, allocations: 3.467 MB / 4.222 GB, free: 45.73 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.395e-06/11.75, allocations: 3.953 kB / 4.222 GB, free: 45.73 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01145/11.76, allocations: 7.075 MB / 4.228 GB, free: 45.15 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001827/11.76, allocations: 0.7386 MB / 4.229 GB, free: 44.89 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005683/11.76, allocations: 50.33 kB / 4.229 GB, free: 44.88 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002177/11.77, allocations: 194.5 kB / 4.229 GB, free: 44.88 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003324/11.77, allocations: 138.8 kB / 4.23 GB, free: 44.88 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002194/11.77, allocations: 66.56 kB / 4.23 GB, free: 44.88 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002345/11.77, allocations: 1.258 MB / 4.231 GB, free: 44.71 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.23e-07/11.77, allocations: 0 / 4.231 GB, free: 44.71 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009911/11.78, allocations: 2.738 MB / 4.233 GB, free: 44.71 MB / 0.573 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,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($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,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (166): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01179/11.79, allocations: 2.924 MB / 4.236 GB, free: 44.47 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009442/11.8, allocations: 4.552 MB / 4.241 GB, free: 44.18 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.22e-06/11.8, allocations: 3.938 kB / 4.241 GB, free: 44.18 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00392/11.81, allocations: 2.218 MB / 4.243 GB, free: 44.04 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006166/11.81, allocations: 0.9652 MB / 4.244 GB, free: 44.01 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/11.82, allocations: 5.551 MB / 4.249 GB, free: 42.96 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001885/11.82, allocations: 2.131 MB / 4.251 GB, free: 42.21 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/11.82, allocations: 193.1 kB / 4.252 GB, free: 42.21 MB / 0.573 GB Notification: Performance of SimCode: time 1.842e-06/11.82, allocations: 0 / 4.252 GB, free: 42.21 MB / 0.573 GB Notification: Performance of Templates: time 0.1429/11.97, allocations: 111.9 MB / 4.361 GB, free: 9.895 MB / 0.573 GB