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_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.386/2.386, allocations: 234.9 MB / 250.1 MB, free: 9.809 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.135e-05/3.145e-05, allocations: 4 kB / 308 MB, free: 15.79 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.352, allocations: 54.86 MB / 362.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13): time 0.1362/0.4882, allocations: 81.22 MB / 444.1 MB, free: 10.39 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0635/0.5518, allocations: 30.43 MB / 474.5 MB, free: 11.88 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003462/0.5553, allocations: 107.2 kB / 474.6 MB, free: 11.78 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004503/0.5599, allocations: 1.089 MB / 475.7 MB, free: 10.68 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02198/0.5819, allocations: 5.487 MB / 481.2 MB, free: 5.18 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.412/0.994, allocations: 6.371 MB / 487.6 MB, free: 9.285 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008045/1.002, allocations: 2.883 MB / 490.4 MB, free: 9.285 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002421/1.005, allocations: 0.9893 MB / 491.4 MB, free: 9.277 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005903/1.01, allocations: 1.688 MB / 493.1 MB, free: 9.277 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04104/1.052, allocations: 18.21 MB / 0.4993 GB, free: 9 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02598/1.078, allocations: 9.507 MB / 0.5086 GB, free: 6.727 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004576/1.082, allocations: 0.5811 MB / 0.5092 GB, free: 6.148 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001652/1.084, allocations: 0.6706 MB / 0.5099 GB, free: 5.887 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/1.085, allocations: 259.5 kB / 0.5101 GB, free: 5.637 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01556/1.101, allocations: 6.102 MB / 0.5161 GB, free: 2.672 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/1.101, allocations: 0 / 0.5161 GB, free: 2.672 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.101, allocations: 0 / 0.5161 GB, free: 2.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001205/1.101, allocations: 0 / 0.5161 GB, free: 2.672 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01197/1.113, allocations: 3.254 MB / 0.5192 GB, free: 15.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/1.113, allocations: 12.03 kB / 0.5193 GB, free: 15.97 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007879/1.121, allocations: 0.7834 MB / 0.52 GB, free: 15.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004762/1.126, allocations: 1.484 MB / 0.5215 GB, free: 14.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002527/1.126, allocations: 164.6 kB / 0.5216 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005358/1.127, allocations: 187.6 kB / 0.5218 GB, free: 13.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01156/1.138, allocations: 3.189 MB / 0.5249 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.139e-05/1.139, allocations: 14.61 kB / 0.5249 GB, free: 11.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003337/1.139, allocations: 78.72 kB / 0.525 GB, free: 11.51 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000399/1.139, allocations: 171.7 kB / 0.5252 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01218/1.152, allocations: 3.002 MB / 0.5281 GB, free: 9.219 MB / 426.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.03042/1.182, allocations: 13.95 MB / 0.5417 GB, free: 12.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007881/1.19, allocations: 2.007 MB / 0.5437 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06453/1.255, allocations: 19.11 MB / 0.5623 GB, free: 5.832 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00651/1.261, allocations: 1.529 MB / 0.5638 GB, free: 4.637 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001473/1.263, allocations: 167.8 kB / 0.564 GB, free: 4.492 MB / 458.7 MB Notification: Performance of pre-optimization done (n=146): time 4.789e-06/1.263, allocations: 0 / 0.564 GB, free: 4.492 MB / 458.7 MB Notification: Performance of matching and sorting (n=158): time 0.03657/1.299, allocations: 8.134 MB / 0.5719 GB, free: 14.11 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/1.299, allocations: 183.2 kB / 0.5721 GB, free: 13.89 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002961/1.302, allocations: 1.307 MB / 0.5734 GB, free: 12.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004423/1.303, allocations: 56.39 kB / 0.5734 GB, free: 12.86 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009447/1.304, allocations: 0.8763 MB / 0.5743 GB, free: 12.27 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009056/1.305, allocations: 0.5287 MB / 0.5748 GB, free: 11.81 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001972/1.305, allocations: 40.44 kB / 0.5749 GB, free: 11.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002269/1.305, allocations: 387.5 kB / 0.5752 GB, free: 11.45 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003315/1.309, allocations: 1.001 MB / 0.5762 GB, free: 10.77 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003832/1.312, allocations: 1.439 MB / 0.5776 GB, free: 9.527 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003949/1.316, allocations: 1.25 MB / 0.5788 GB, free: 8.715 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.077e-05/1.316, allocations: 4 kB / 0.5788 GB, free: 8.711 MB / 474.7 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.01241/1.329, allocations: 3.088 MB / 0.5818 GB, free: 6.543 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002328/1.331, allocations: 5.032 MB / 0.5868 GB, free: 1.219 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.186e-05/1.331, allocations: 12 kB / 0.5868 GB, free: 1.207 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005209/1.337, allocations: 0.6 MB / 0.5874 GB, free: 0.6797 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003732/1.34, allocations: 450.3 kB / 0.5878 GB, free: 288 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003522/1.344, allocations: 2.81 MB / 0.5905 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003658/1.348, allocations: 233.5 kB / 0.5908 GB, free: 13.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004961/1.348, allocations: 103.9 kB / 0.5909 GB, free: 13.36 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/1.348, allocations: 4 kB / 0.5909 GB, free: 13.36 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009441/1.358, allocations: 2.754 MB / 0.5935 GB, free: 11.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-05/1.358, allocations: 12 kB / 0.5936 GB, free: 11.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009983/1.359, allocations: 206.8 kB / 0.5938 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003939/1.363, allocations: 474.8 kB / 0.5942 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/1.365, allocations: 1.878 MB / 0.596 GB, free: 9.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002858/1.368, allocations: 229 kB / 0.5963 GB, free: 8.875 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004066/1.368, allocations: 94.66 kB / 0.5964 GB, free: 8.801 MB / 490.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: 29 (pipe3.state_a.phase,pipe2.state_a.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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * 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.002002/1.37, allocations: 0.6439 MB / 0.597 GB, free: 8.34 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006404/1.371, allocations: 185.8 kB / 0.5972 GB, free: 8.156 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0173/1.388, allocations: 7.406 MB / 0.6044 GB, free: 3.195 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001177/1.388, allocations: 84.89 kB / 0.6045 GB, free: 3.133 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/1.388, allocations: 4 kB / 0.6045 GB, free: 3.129 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01423/1.402, allocations: 6.489 MB / 0.6108 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02291/1.425, allocations: 10.23 MB / 0.6208 GB, free: 8.074 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/1.425, allocations: 0 / 0.6208 GB, free: 8.074 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002759/1.428, allocations: 326.9 kB / 0.6211 GB, free: 7.777 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005182/1.433, allocations: 1.331 MB / 0.6224 GB, free: 6.625 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004345/1.434, allocations: 52.97 kB / 0.6225 GB, free: 6.598 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004162/1.438, allocations: 3.451 MB / 0.6258 GB, free: 3.605 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.438, allocations: 0 / 0.6258 GB, free: 3.605 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01736/1.455, allocations: 7.142 MB / 0.6328 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002152/1.458, allocations: 0.6952 MB / 0.6335 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007844/1.459, allocations: 44 kB / 0.6335 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002813/1.461, allocations: 183.2 kB / 0.6337 GB, free: 13.04 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/1.462, allocations: 125.8 kB / 0.6338 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002266/1.462, allocations: 63.97 kB / 0.6339 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002752/1.465, allocations: 1.106 MB / 0.635 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.31e-07/1.465, allocations: 7.188 kB / 0.635 GB, free: 11.72 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009791/1.475, allocations: 2.468 MB / 0.6374 GB, free: 9.25 MB / 0.5105 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 ($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,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 (164): * Single equations (assignments): 138 * 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.01085/1.486, allocations: 2.086 MB / 0.6394 GB, free: 7.344 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01478/1.5, allocations: 4.889 MB / 0.6442 GB, free: 2.508 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.5, allocations: 0 / 0.6442 GB, free: 2.508 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006445/1.507, allocations: 2.34 MB / 0.6465 GB, free: 180 kB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007968/1.515, allocations: 0.889 MB / 0.6473 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01871/1.534, allocations: 8.29 MB / 0.6554 GB, free: 7.082 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002666/1.536, allocations: 2.137 MB / 0.6575 GB, free: 4.914 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001258/1.538, allocations: 187.4 kB / 0.6577 GB, free: 4.73 MB / 0.5261 GB Notification: Performance of SimCode: time 1.292e-06/1.538, allocations: 4 kB / 0.6577 GB, free: 4.727 MB / 0.5261 GB Notification: Performance of Templates: time 0.5292/2.067, allocations: 107.3 MB / 0.7625 GB, free: 166.5 MB / 0.5417 GB