Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.345/2.345, allocations: 269 MB / 284.1 MB, free: 3.566 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.337e-05/2.334e-05, allocations: 0 / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1354, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12): time 0.4705/0.6059, allocations: 75.97 MB / 486.9 MB, free: 11.46 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.07939/0.6854, allocations: 30.54 MB / 0.5053 GB, free: 13.05 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004208/0.6897, allocations: 103.2 kB / 0.5054 GB, free: 12.95 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005683/0.6954, allocations: 1.077 MB / 0.5064 GB, free: 11.87 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02425/0.7197, allocations: 5.483 MB / 0.5118 GB, free: 6.371 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02512/0.7449, allocations: 6.432 MB / 0.5181 GB, free: 15.94 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.008315/0.7532, allocations: 3.037 MB / 0.521 GB, free: 12.89 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002522/0.7558, allocations: 1.066 MB / 0.5221 GB, free: 11.83 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005604/0.7614, allocations: 1.781 MB / 0.5238 GB, free: 10.04 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04582/0.8073, allocations: 18.33 MB / 0.5417 GB, free: 7.703 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02797/0.8353, allocations: 9.653 MB / 0.5512 GB, free: 14.04 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004613/0.84, allocations: 0.5938 MB / 0.5517 GB, free: 13.45 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001889/0.8419, allocations: 0.7596 MB / 0.5525 GB, free: 12.68 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.8434, allocations: 272 kB / 0.5527 GB, free: 12.42 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01717/0.8606, allocations: 6.455 MB / 0.559 GB, free: 5.949 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.8607, allocations: 3.938 kB / 0.559 GB, free: 5.945 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.8607, allocations: 0 / 0.559 GB, free: 5.945 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001321/0.8608, allocations: 0 / 0.559 GB, free: 5.945 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01558/0.8764, allocations: 3.589 MB / 0.5626 GB, free: 2.281 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.8765, allocations: 16.03 kB / 0.5626 GB, free: 2.266 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008325/0.8848, allocations: 0.8203 MB / 0.5634 GB, free: 1.441 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005269/0.8901, allocations: 1.631 MB / 0.565 GB, free: 15.75 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003194/0.8905, allocations: 175.6 kB / 0.5651 GB, free: 15.59 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008899/0.8914, allocations: 196 kB / 0.5653 GB, free: 15.39 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01356/0.905, allocations: 3.607 MB / 0.5688 GB, free: 11.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.184e-05/0.9051, allocations: 11.92 kB / 0.5688 GB, free: 11.62 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004395/0.9056, allocations: 79.97 kB / 0.5689 GB, free: 11.54 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004593/0.906, allocations: 199.6 kB / 0.5691 GB, free: 11.35 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01424/0.9203, allocations: 3.52 MB / 0.5726 GB, free: 7.824 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.03393/0.9543, allocations: 14.83 MB / 0.587 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009221/0.9636, allocations: 2.228 MB / 0.5892 GB, free: 5.523 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4146/1.378, allocations: 24.86 MB / 0.6135 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007693/1.386, allocations: 1.678 MB / 0.6151 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001518/1.388, allocations: 181.5 kB / 0.6153 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 9.959e-06/1.388, allocations: 0 / 0.6153 GB, free: 167.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.04676/1.434, allocations: 9.354 MB / 0.6244 GB, free: 164.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/1.434, allocations: 337.3 kB / 0.6247 GB, free: 164.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004044/1.439, allocations: 1.512 MB / 0.6262 GB, free: 163.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005353/1.439, allocations: 58.8 kB / 0.6263 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001095/1.44, allocations: 0.9353 MB / 0.6272 GB, free: 162.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001073/1.441, allocations: 0.5854 MB / 0.6278 GB, free: 162.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002739/1.442, allocations: 42.56 kB / 0.6278 GB, free: 162.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002071/1.442, allocations: 396.7 kB / 0.6282 GB, free: 161.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004224/1.446, allocations: 1.151 MB / 0.6293 GB, free: 161.4 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004833/1.451, allocations: 1.638 MB / 0.6309 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004764/1.456, allocations: 1.412 MB / 0.6323 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.521e-05/1.456, allocations: 3.156 kB / 0.6323 GB, free: 159.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=266) (initialization): time 0.01257/1.469, allocations: 3.445 MB / 0.6357 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001074/1.47, allocations: 4.86 MB / 0.6404 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.518e-05/1.47, allocations: 16.72 kB / 0.6404 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008518/1.478, allocations: 0.9763 MB / 0.6414 GB, free: 153.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003914/1.482, allocations: 483.9 kB / 0.6418 GB, free: 153.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003834/1.486, allocations: 3.142 MB / 0.6449 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003942/1.49, allocations: 237.7 kB / 0.6451 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006377/1.491, allocations: 101.1 kB / 0.6452 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/1.491, allocations: 3.812 kB / 0.6452 GB, free: 150.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01122/1.502, allocations: 3.261 MB / 0.6484 GB, free: 149.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.482e-05/1.502, allocations: 19.5 kB / 0.6484 GB, free: 149.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00186/1.504, allocations: 359 kB / 0.6488 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00397/1.508, allocations: 0.4956 MB / 0.6493 GB, free: 149.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005065/1.513, allocations: 4.13 MB / 0.6533 GB, free: 145.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00308/1.516, allocations: 238.8 kB / 0.6535 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004821/1.517, allocations: 93.66 kB / 0.6536 GB, free: 145.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 218 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002183/1.519, allocations: 0.6954 MB / 0.6543 GB, free: 145.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007359/1.52, allocations: 215.8 kB / 0.6545 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01741/1.537, allocations: 7.932 MB / 0.6622 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/1.537, allocations: 83.88 kB / 0.6623 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/1.537, allocations: 3.953 kB / 0.6623 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01423/1.552, allocations: 6.952 MB / 0.6691 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02181/1.574, allocations: 10.97 MB / 0.6798 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.761e-05/1.574, allocations: 0 / 0.6798 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002845/1.576, allocations: 357.8 kB / 0.6802 GB, free: 121.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007381/1.584, allocations: 2.161 MB / 0.6823 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004516/1.584, allocations: 63.97 kB / 0.6823 GB, free: 119 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00427/1.589, allocations: 4.07 MB / 0.6863 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.589, allocations: 0 / 0.6863 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/1.605, allocations: 8.012 MB / 0.6941 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002144/1.608, allocations: 0.7611 MB / 0.6949 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009277/1.609, allocations: 51.98 kB / 0.6949 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003163/1.612, allocations: 191.6 kB / 0.6951 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005954/1.612, allocations: 149.7 kB / 0.6953 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002374/1.613, allocations: 68.75 kB / 0.6953 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002698/1.615, allocations: 1.347 MB / 0.6966 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.12e-07/1.615, allocations: 0 / 0.6966 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009488/1.625, allocations: 2.615 MB / 0.6992 GB, free: 101.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.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 (170): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01032/1.635, allocations: 2.153 MB / 0.7013 GB, free: 99.84 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01537/1.651, allocations: 5.611 MB / 0.7068 GB, free: 94.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/1.651, allocations: 0 / 0.7068 GB, free: 94.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005525/1.656, allocations: 2.416 MB / 0.7091 GB, free: 91.68 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008395/1.665, allocations: 0.9577 MB / 0.7101 GB, free: 90.73 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01701/1.682, allocations: 8.674 MB / 0.7185 GB, free: 82.05 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002507/1.684, allocations: 2.256 MB / 0.7207 GB, free: 79.77 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001222/1.686, allocations: 195.4 kB / 0.7209 GB, free: 79.57 MB / 0.5105 GB Notification: Performance of SimCode: time 1.293e-06/1.686, allocations: 0 / 0.7209 GB, free: 79.57 MB / 0.5105 GB Notification: Performance of Templates: time 0.5299/2.216, allocations: 114.8 MB / 0.833 GB, free: 148.9 MB / 0.5105 GB