Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.273/2.273, allocations: 270 MB / 283.6 MB, free: 1.812 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.634e-05/2.672e-05, allocations: 0 / 348.4 MB, free: 2.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3972, allocations: 61.88 MB / 410.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.877/7.274, allocations: 2.831 GB / 3.231 GB, free: 89.06 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/7.274, allocations: 76.16 kB / 3.231 GB, free: 89.02 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.993/11.27, allocations: 0.8771 GB / 4.108 GB, free: 40.34 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.042e-06/11.27, allocations: 0 / 4.108 GB, free: 40.34 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002025/11.27, allocations: 57.58 kB / 4.109 GB, free: 40.32 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.01332/11.28, allocations: 3.834 MB / 4.112 GB, free: 38.2 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/11.28, allocations: 10.56 kB / 4.112 GB, free: 38.2 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007233/11.29, allocations: 0.7829 MB / 4.113 GB, free: 38.01 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005796/11.29, allocations: 1.928 MB / 4.115 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/11.29, allocations: 163.5 kB / 4.115 GB, free: 37.06 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005612/11.3, allocations: 188.6 kB / 4.115 GB, free: 37.01 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008891/11.3, allocations: 3.273 MB / 4.118 GB, free: 35.65 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.168e-05/11.3, allocations: 7.203 kB / 4.118 GB, free: 35.65 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003222/11.3, allocations: 88.52 kB / 4.119 GB, free: 35.6 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002222/11.3, allocations: 145.6 kB / 4.119 GB, free: 35.58 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008681/11.31, allocations: 2.894 MB / 4.122 GB, free: 34.67 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.02255/11.34, allocations: 14.22 MB / 4.135 GB, free: 23.39 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005317/11.34, allocations: 1.968 MB / 4.137 GB, free: 21.73 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/11.34, allocations: 0.9797 MB / 4.138 GB, free: 20.84 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05045/11.39, allocations: 24.62 MB / 4.162 GB, free: 12.25 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005344/11.4, allocations: 1.588 MB / 4.164 GB, free: 10.64 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001447/11.4, allocations: 174.2 kB / 4.164 GB, free: 10.46 MB / 0.573 GB Notification: Performance of pre-optimization done (n=146): time 5.393e-06/11.4, allocations: 0 / 4.164 GB, free: 10.46 MB / 0.573 GB Notification: Performance of matching and sorting (n=158): time 0.02459/11.43, allocations: 6.909 MB / 4.171 GB, free: 3.473 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001832/11.43, allocations: 256.6 kB / 4.171 GB, free: 3.164 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003029/11.43, allocations: 1.402 MB / 4.172 GB, free: 1.762 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004094/11.43, allocations: 61.64 kB / 4.172 GB, free: 1.695 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001093/11.43, allocations: 0.8845 MB / 4.173 GB, free: 0.8047 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008049/11.43, allocations: 0.5244 MB / 4.174 GB, free: 292 kB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/11.43, allocations: 36 kB / 4.174 GB, free: 256 kB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.3825/11.81, allocations: 374.4 kB / 4.174 GB, free: 58.47 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002863/11.82, allocations: 0.9292 MB / 4.175 GB, free: 58.47 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002837/11.82, allocations: 1.295 MB / 4.176 GB, free: 58.08 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002685/11.82, allocations: 1.156 MB / 4.178 GB, free: 58 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/11.82, allocations: 4.656 kB / 4.178 GB, free: 58 MB / 0.573 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.00788/11.83, allocations: 2.969 MB / 4.18 GB, free: 57.83 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008263/11.83, allocations: 3.847 MB / 4.184 GB, free: 53.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.063e-05/11.83, allocations: 9.844 kB / 4.184 GB, free: 53.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004172/11.84, allocations: 0.5921 MB / 4.185 GB, free: 53.77 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003033/11.84, allocations: 431.6 kB / 4.185 GB, free: 53.77 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/11.84, allocations: 2.816 MB / 4.188 GB, free: 51.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003216/11.84, allocations: 234.8 kB / 4.188 GB, free: 51.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005123/11.84, allocations: 94.19 kB / 4.188 GB, free: 51.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/11.84, allocations: 7.516 kB / 4.188 GB, free: 51.7 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006116/11.85, allocations: 2.574 MB / 4.191 GB, free: 51.56 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.184e-05/11.85, allocations: 10.88 kB / 4.191 GB, free: 51.56 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009046/11.85, allocations: 195.4 kB / 4.191 GB, free: 51.54 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003039/11.85, allocations: 455.9 kB / 4.191 GB, free: 51.54 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001252/11.86, allocations: 1.872 MB / 4.193 GB, free: 49.98 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003112/11.86, allocations: 235.4 kB / 4.193 GB, free: 49.98 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004323/11.86, allocations: 92.16 kB / 4.194 GB, free: 49.98 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.0006877/11.86, allocations: 288.3 kB / 4.194 GB, free: 49.81 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005276/11.86, allocations: 196.8 kB / 4.194 GB, free: 49.81 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/11.87, allocations: 7.448 MB / 4.201 GB, free: 49.3 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.124e-05/11.87, allocations: 85.62 kB / 4.201 GB, free: 49.3 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/11.87, allocations: 0 / 4.201 GB, free: 49.3 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009898/11.88, allocations: 6.517 MB / 4.208 GB, free: 48.44 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/11.9, allocations: 10.39 MB / 4.218 GB, free: 47.79 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/11.9, allocations: 0 / 4.218 GB, free: 47.79 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002236/11.9, allocations: 339.5 kB / 4.218 GB, free: 47.79 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004415/11.91, allocations: 1.584 MB / 4.22 GB, free: 47.72 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004733/11.91, allocations: 58.61 kB / 4.22 GB, free: 47.72 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002949/11.91, allocations: 3.465 MB / 4.223 GB, free: 45.62 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.291e-06/11.91, allocations: 7.562 kB / 4.223 GB, free: 45.62 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/11.92, allocations: 7.079 MB / 4.23 GB, free: 45.04 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00209/11.93, allocations: 0.7337 MB / 4.231 GB, free: 44.78 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007324/11.93, allocations: 51.2 kB / 4.231 GB, free: 44.77 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002556/11.93, allocations: 191.8 kB / 4.231 GB, free: 44.77 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004867/11.93, allocations: 133.7 kB / 4.231 GB, free: 44.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00026/11.93, allocations: 74.75 kB / 4.231 GB, free: 44.77 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002636/11.93, allocations: 1.258 MB / 4.232 GB, free: 44.61 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.187e-06/11.93, allocations: 0 / 4.232 GB, free: 44.61 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01075/11.94, allocations: 2.735 MB / 4.235 GB, free: 44.61 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.01284/11.96, allocations: 2.906 MB / 4.238 GB, free: 44.37 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01016/11.97, allocations: 4.618 MB / 4.242 GB, free: 44.06 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.343e-06/11.97, allocations: 3.375 kB / 4.242 GB, free: 44.06 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004319/11.97, allocations: 2.228 MB / 4.245 GB, free: 43.92 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0066/11.98, allocations: 0.9741 MB / 4.246 GB, free: 43.89 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/11.99, allocations: 5.515 MB / 4.251 GB, free: 42.86 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001966/11.99, allocations: 2.185 MB / 4.253 GB, free: 42.08 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.006878/12, allocations: 2.4 MB / 4.255 GB, free: 42.04 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008197/12, allocations: 156.8 kB / 4.256 GB, free: 42.03 MB / 0.573 GB Notification: Performance of SimCode: time 1.701e-06/12, allocations: 0 / 4.256 GB, free: 42.03 MB / 0.573 GB Notification: Performance of Templates: time 0.1761/12.17, allocations: 89.64 MB / 4.343 GB, free: 27.91 MB / 0.573 GB