Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|junctionVolume.medium.h|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.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.256/2.256, allocations: 234.9 MB / 250.1 MB, free: 9.941 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.426e-05/3.411e-05, allocations: 8 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.368, allocations: 54.86 MB / 362.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.1584/0.5264, allocations: 91.83 MB / 454.7 MB, free: 1.801 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06864/0.5951, allocations: 31.77 MB / 486.4 MB, free: 1.973 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003745/0.5989, allocations: 115.2 kB / 486.6 MB, free: 1.859 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004961/0.6039, allocations: 1.248 MB / 487.8 MB, free: 0.6055 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02297/0.627, allocations: 5.9 MB / 493.7 MB, free: 10.69 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02599/0.653, allocations: 6.907 MB / 0.4889 GB, free: 3.77 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008846/0.6619, allocations: 3.437 MB / 0.4922 GB, free: 332 kB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3836/1.045, allocations: 1.15 MB / 0.4934 GB, free: 10.96 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007272/1.053, allocations: 2 MB / 0.4953 GB, free: 10.96 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04226/1.095, allocations: 18.45 MB / 0.5133 GB, free: 10.7 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02571/1.121, allocations: 9.285 MB / 0.5224 GB, free: 10.41 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004881/1.126, allocations: 0.5938 MB / 0.523 GB, free: 9.812 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00191/1.128, allocations: 0.7979 MB / 0.5238 GB, free: 9.512 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001756/1.13, allocations: 304 kB / 0.524 GB, free: 9.215 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01597/1.146, allocations: 6.533 MB / 0.5304 GB, free: 6.137 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/1.146, allocations: 0 / 0.5304 GB, free: 6.137 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.427e-06/1.146, allocations: 0 / 0.5304 GB, free: 6.137 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001507/1.146, allocations: 0 / 0.5304 GB, free: 6.137 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01394/1.16, allocations: 3.655 MB / 0.534 GB, free: 3.168 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/1.16, allocations: 12.03 kB / 0.534 GB, free: 3.156 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009192/1.169, allocations: 0.8807 MB / 0.5349 GB, free: 2.512 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005089/1.174, allocations: 1.678 MB / 0.5365 GB, free: 1.57 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003587/1.175, allocations: 203.2 kB / 0.5367 GB, free: 1.461 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008762/1.175, allocations: 228.7 kB / 0.5369 GB, free: 1.312 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01461/1.19, allocations: 3.841 MB / 0.5407 GB, free: 15.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.423e-05/1.19, allocations: 7.562 kB / 0.5407 GB, free: 15.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004539/1.191, allocations: 93.05 kB / 0.5408 GB, free: 15.22 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004689/1.191, allocations: 204.9 kB / 0.541 GB, free: 15.07 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01522/1.206, allocations: 3.589 MB / 0.5445 GB, free: 12.58 MB / 442.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.03542/1.242, allocations: 16.64 MB / 0.5607 GB, free: 13.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01219/1.254, allocations: 3.143 MB / 0.5638 GB, free: 10.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06898/1.323, allocations: 18.79 MB / 0.5821 GB, free: 6.066 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008097/1.331, allocations: 1.835 MB / 0.5839 GB, free: 4.648 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 6.041e-06/1.331, allocations: 1.031 kB / 0.5839 GB, free: 4.648 MB / 474.7 MB Notification: Performance of matching and sorting (n=212): time 0.05126/1.383, allocations: 10.16 MB / 0.5939 GB, free: 12.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/1.383, allocations: 187.2 kB / 0.594 GB, free: 12.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003258/1.386, allocations: 1.412 MB / 0.5954 GB, free: 11.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006122/1.387, allocations: 64.77 kB / 0.5955 GB, free: 11.47 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/1.388, allocations: 1.009 MB / 0.5965 GB, free: 10.79 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0014/1.389, allocations: 0.711 MB / 0.5972 GB, free: 10.18 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003048/1.39, allocations: 52.12 kB / 0.5972 GB, free: 10.17 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002835/1.39, allocations: 405 kB / 0.5976 GB, free: 9.805 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004704/1.395, allocations: 1.254 MB / 0.5988 GB, free: 8.953 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005495/1.4, allocations: 1.85 MB / 0.6006 GB, free: 7.348 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005278/1.406, allocations: 1.529 MB / 0.6021 GB, free: 6.352 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.673e-05/1.406, allocations: 4 kB / 0.6021 GB, free: 6.348 MB / 490.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.01371/1.42, allocations: 3.623 MB / 0.6057 GB, free: 3.828 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003005/1.423, allocations: 6.425 MB / 0.6119 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-05/1.423, allocations: 16 kB / 0.6119 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/1.425, allocations: 337.3 kB / 0.6123 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005315/1.43, allocations: 0.6214 MB / 0.6129 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003396/1.434, allocations: 3.101 MB / 0.6159 GB, free: 9.164 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005137/1.439, allocations: 333.4 kB / 0.6162 GB, free: 8.875 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000823/1.44, allocations: 130.3 kB / 0.6163 GB, free: 8.773 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/1.44, allocations: 4 kB / 0.6164 GB, free: 8.77 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01397/1.454, allocations: 3.473 MB / 0.6197 GB, free: 6.418 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-05/1.454, allocations: 16 kB / 0.6198 GB, free: 6.402 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001929/1.456, allocations: 338.9 kB / 0.6201 GB, free: 6.129 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005198/1.461, allocations: 0.6106 MB / 0.6207 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003269/1.464, allocations: 3.102 MB / 0.6237 GB, free: 2.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00427/1.469, allocations: 333 kB / 0.624 GB, free: 2.281 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007493/1.469, allocations: 127.2 kB / 0.6241 GB, free: 2.184 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 31 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,junctionVolume.medium.phase,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (296): * Single equations (assignments): 289 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 6,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002632/1.472, allocations: 0.7204 MB / 0.6249 GB, free: 1.695 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008787/1.473, allocations: 225.3 kB / 0.6251 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02189/1.495, allocations: 8.177 MB / 0.6331 GB, free: 11.91 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001423/1.495, allocations: 88.23 kB / 0.6331 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/1.495, allocations: 0 / 0.6331 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01768/1.513, allocations: 7.09 MB / 0.6401 GB, free: 6.93 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03434/1.547, allocations: 13.01 MB / 0.6528 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-05/1.547, allocations: 11.94 kB / 0.6528 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003891/1.551, allocations: 484.4 kB / 0.6532 GB, free: 13.44 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002644/1.554, allocations: 459.6 kB / 0.6537 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005682/1.555, allocations: 78.33 kB / 0.6538 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003315/1.558, allocations: 3.226 MB / 0.6569 GB, free: 9.945 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/1.558, allocations: 7 kB / 0.6569 GB, free: 9.941 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02078/1.579, allocations: 8.4 MB / 0.6651 GB, free: 3.875 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002524/1.581, allocations: 0.7739 MB / 0.6659 GB, free: 3.219 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/1.582, allocations: 64.42 kB / 0.6659 GB, free: 3.191 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00378/1.586, allocations: 230.3 kB / 0.6662 GB, free: 2.996 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008125/1.587, allocations: 191.9 kB / 0.6663 GB, free: 2.84 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003591/1.587, allocations: 87.53 kB / 0.6664 GB, free: 2.77 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00311/1.591, allocations: 1.174 MB / 0.6676 GB, free: 1.848 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.02e-07/1.591, allocations: 0 / 0.6676 GB, free: 1.848 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0122/1.603, allocations: 2.686 MB / 0.6702 GB, free: 15.16 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h,junctionVolume.medium.h) * Number of discrete variables: 59 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse21.phase,$cse21.region,$cse24.phase,$cse24.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse40.phase,$cse40.region,$cse44.phase,$cse44.region,$cse49.phase,$cse49.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (237): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,2 4,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01149/1.614, allocations: 2.137 MB / 0.6723 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01999/1.634, allocations: 6.002 MB / 0.6781 GB, free: 7.281 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/1.634, allocations: 4 kB / 0.6781 GB, free: 7.277 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009088/1.644, allocations: 3.061 MB / 0.6811 GB, free: 4.242 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01061/1.654, allocations: 1.127 MB / 0.6822 GB, free: 3.121 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02406/1.678, allocations: 9.748 MB / 0.6917 GB, free: 9.457 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00383/1.682, allocations: 2.337 MB / 0.694 GB, free: 7.09 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/1.684, allocations: 247.4 kB / 0.6943 GB, free: 6.852 MB / 0.5573 GB Notification: Performance of SimCode: time 1.713e-06/1.684, allocations: 0 / 0.6943 GB, free: 6.852 MB / 0.5573 GB Notification: Performance of Templates: time 0.5403/2.224, allocations: 133.4 MB / 0.8245 GB, free: 141.2 MB / 0.5573 GB