Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 1.894/1.894, allocations: 209.3 MB / 223.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.797e-05/2.809e-05, allocations: 0 / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3547, allocations: 48.7 MB / 324.9 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3): time 0.1327/0.4874, allocations: 80.56 MB / 405.4 MB, free: 14.77 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.05934/0.5468, allocations: 28.9 MB / 434.3 MB, free: 1.812 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003521/0.5504, allocations: 103.2 kB / 434.4 MB, free: 1.711 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005092/0.5555, allocations: 1.104 MB / 435.5 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02232/0.5779, allocations: 5.387 MB / 440.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02318/0.6011, allocations: 6.152 MB / 447.1 MB, free: 5.047 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00782/0.609, allocations: 2.888 MB / 450 MB, free: 2.152 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002309/0.6113, allocations: 0.9976 MB / 451 MB, free: 1.152 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005325/0.6167, allocations: 1.675 MB / 452.6 MB, free: 15.47 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04311/0.6599, allocations: 18.03 MB / 470.7 MB, free: 13.43 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02751/0.6874, allocations: 8.819 MB / 479.5 MB, free: 4.605 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004685/0.6922, allocations: 0.5586 MB / 480 MB, free: 4.047 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001721/0.6939, allocations: 0.6778 MB / 480.7 MB, free: 3.367 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001076/0.695, allocations: 256 kB / 481 MB, free: 3.117 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3385/1.034, allocations: 5.834 MB / 486.8 MB, free: 35 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/1.034, allocations: 1.062 kB / 486.8 MB, free: 35 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.034, allocations: 0 / 486.8 MB, free: 35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001482/1.034, allocations: 0 / 486.8 MB, free: 35 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01319/1.047, allocations: 3.11 MB / 489.9 MB, free: 33.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/1.047, allocations: 9.75 kB / 489.9 MB, free: 33.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008374/1.055, allocations: 0.7237 MB / 490.7 MB, free: 33.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005297/1.061, allocations: 1.491 MB / 492.1 MB, free: 33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000277/1.061, allocations: 162.9 kB / 492.3 MB, free: 33 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006919/1.062, allocations: 181.9 kB / 492.5 MB, free: 33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01182/1.074, allocations: 3.152 MB / 495.6 MB, free: 32.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.133e-05/1.074, allocations: 10.66 kB / 495.6 MB, free: 32.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003706/1.074, allocations: 77.31 kB / 495.7 MB, free: 32.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004349/1.075, allocations: 176.1 kB / 495.9 MB, free: 32.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/1.087, allocations: 2.916 MB / 498.8 MB, free: 32.61 MB / 410.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.02643/1.114, allocations: 13.81 MB / 0.5006 GB, free: 24.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007739/1.122, allocations: 2.023 MB / 0.5026 GB, free: 24.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05869/1.18, allocations: 19.02 MB / 0.5211 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006643/1.187, allocations: 1.553 MB / 0.5227 GB, free: 11.47 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001748/1.189, allocations: 167 kB / 0.5228 GB, free: 11.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=151): time 6.112e-06/1.189, allocations: 0 / 0.5228 GB, free: 11.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.03596/1.225, allocations: 8.214 MB / 0.5308 GB, free: 10.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.689e-05/1.225, allocations: 180.1 kB / 0.531 GB, free: 9.953 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002707/1.228, allocations: 1.232 MB / 0.5322 GB, free: 9.699 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005573/1.228, allocations: 55.2 kB / 0.5323 GB, free: 9.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008769/1.229, allocations: 0.9113 MB / 0.5332 GB, free: 9.164 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000798/1.23, allocations: 0.5464 MB / 0.5337 GB, free: 8.742 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001921/1.23, allocations: 34.44 kB / 0.5337 GB, free: 8.734 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/1.23, allocations: 381.9 kB / 0.5341 GB, free: 8.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002988/1.233, allocations: 1.003 MB / 0.5351 GB, free: 7.867 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003579/1.237, allocations: 1.47 MB / 0.5365 GB, free: 6.605 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003628/1.241, allocations: 1.241 MB / 0.5377 GB, free: 5.797 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-05/1.241, allocations: 0.9844 kB / 0.5377 GB, free: 5.797 MB / 410.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.01127/1.252, allocations: 3.197 MB / 0.5408 GB, free: 3.523 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00186/1.254, allocations: 5.147 MB / 0.5459 GB, free: 13.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-05/1.254, allocations: 12 kB / 0.5459 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004338/1.258, allocations: 0.52 MB / 0.5464 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003821/1.262, allocations: 470.2 kB / 0.5468 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003265/1.266, allocations: 2.697 MB / 0.5495 GB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004378/1.27, allocations: 268.2 kB / 0.5497 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005558/1.271, allocations: 93.03 kB / 0.5498 GB, free: 10.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/1.271, allocations: 4.781 kB / 0.5498 GB, free: 10.22 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009648/1.28, allocations: 2.783 MB / 0.5525 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.944e-05/1.28, allocations: 15.95 kB / 0.5526 GB, free: 8.305 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009893/1.281, allocations: 199.9 kB / 0.5527 GB, free: 8.141 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004011/1.285, allocations: 482.2 kB / 0.5532 GB, free: 7.715 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/1.287, allocations: 1.885 MB / 0.555 GB, free: 5.891 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004106/1.291, allocations: 267 kB / 0.5553 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004797/1.292, allocations: 96.53 kB / 0.5554 GB, free: 5.586 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,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 (224): * Single equations (assignments): 218 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.002057/1.294, allocations: 0.6409 MB / 0.556 GB, free: 5.133 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000627/1.295, allocations: 189.7 kB / 0.5562 GB, free: 4.945 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01739/1.312, allocations: 7.417 MB / 0.5634 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001191/1.312, allocations: 80.2 kB / 0.5635 GB, free: 15.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/1.312, allocations: 7.078 kB / 0.5635 GB, free: 15.83 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01457/1.327, allocations: 6.487 MB / 0.5699 GB, free: 11.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02631/1.353, allocations: 11.06 MB / 0.5807 GB, free: 3.848 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.301e-05/1.353, allocations: 4 kB / 0.5807 GB, free: 3.844 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002914/1.356, allocations: 359.8 kB / 0.581 GB, free: 3.523 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004493/1.361, allocations: 1.179 MB / 0.5822 GB, free: 2.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005557/1.361, allocations: 60.42 kB / 0.5822 GB, free: 2.449 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003834/1.365, allocations: 3.19 MB / 0.5853 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/1.365, allocations: 10.89 kB / 0.5853 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01655/1.382, allocations: 7.349 MB / 0.5925 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002339/1.384, allocations: 0.6733 MB / 0.5932 GB, free: 9.734 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008896/1.385, allocations: 55.67 kB / 0.5932 GB, free: 9.711 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002901/1.388, allocations: 185.4 kB / 0.5934 GB, free: 9.555 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004687/1.389, allocations: 155.5 kB / 0.5936 GB, free: 9.426 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002441/1.389, allocations: 68.98 kB / 0.5936 GB, free: 9.375 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00248/1.391, allocations: 1.043 MB / 0.5946 GB, free: 8.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.61e-07/1.391, allocations: 4 kB / 0.5946 GB, free: 8.566 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01164/1.403, allocations: 2.363 MB / 0.597 GB, free: 6.352 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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: 53 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.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,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 151 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01053/1.414, allocations: 1.99 MB / 0.5989 GB, free: 4.602 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01482/1.428, allocations: 4.861 MB / 0.6036 GB, free: 1.188 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/1.428, allocations: 4.203 kB / 0.6037 GB, free: 1.188 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006309/1.435, allocations: 2.46 MB / 0.6061 GB, free: 15.64 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008531/1.443, allocations: 0.903 MB / 0.6069 GB, free: 14.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0194/1.463, allocations: 8.376 MB / 0.6151 GB, free: 7.59 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002795/1.466, allocations: 2.189 MB / 0.6173 GB, free: 5.449 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008723/1.474, allocations: 2.423 MB / 0.6196 GB, free: 3.039 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009896/1.475, allocations: 154.9 kB / 0.6198 GB, free: 2.898 MB / 474.7 MB Notification: Performance of SimCode: time 1.223e-06/1.476, allocations: 0 / 0.6198 GB, free: 2.898 MB / 474.7 MB Notification: Performance of Templates: time 0.4538/1.929, allocations: 72.75 MB / 0.6908 GB, free: 201.1 MB / 0.4948 GB