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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.271/2.271, allocations: 234.9 MB / 249.4 MB, free: 9.801 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.987e-05/2.981e-05, allocations: 0 / 308 MB, free: 15.14 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3454, allocations: 54.86 MB / 362.9 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.1523/0.4979, allocations: 91.83 MB / 454.7 MB, free: 15.68 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.4381/0.936, allocations: 31.76 MB / 486.5 MB, free: 7.359 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0038/0.9398, allocations: 116.3 kB / 486.6 MB, free: 7.359 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00525/0.9451, allocations: 1.245 MB / 487.8 MB, free: 7.355 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02394/0.9691, allocations: 5.904 MB / 493.7 MB, free: 7.277 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02412/0.9933, allocations: 6.905 MB / 0.4889 GB, free: 7.082 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008735/1.002, allocations: 3.443 MB / 0.4923 GB, free: 7.074 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00282/1.005, allocations: 1.154 MB / 0.4934 GB, free: 7.059 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006727/1.012, allocations: 1.995 MB / 0.4953 GB, free: 7.059 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04306/1.055, allocations: 18.46 MB / 0.5134 GB, free: 6.176 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02773/1.083, allocations: 9.281 MB / 0.5224 GB, free: 15.27 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005115/1.088, allocations: 0.5938 MB / 0.523 GB, free: 14.68 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002197/1.09, allocations: 0.7969 MB / 0.5238 GB, free: 14.16 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002184/1.092, allocations: 304 kB / 0.5241 GB, free: 13.86 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01918/1.111, allocations: 6.537 MB / 0.5305 GB, free: 8.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/1.112, allocations: 4 kB / 0.5305 GB, free: 8.316 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.544e-06/1.112, allocations: 0 / 0.5305 GB, free: 8.316 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001332/1.112, allocations: 0 / 0.5305 GB, free: 8.316 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.0143/1.126, allocations: 3.646 MB / 0.534 GB, free: 4.836 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/1.126, allocations: 8.031 kB / 0.534 GB, free: 4.828 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00943/1.136, allocations: 0.8898 MB / 0.5349 GB, free: 4.004 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005677/1.141, allocations: 1.691 MB / 0.5366 GB, free: 2.711 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003768/1.142, allocations: 196.3 kB / 0.5367 GB, free: 2.598 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009384/1.143, allocations: 211.9 kB / 0.537 GB, free: 2.457 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01468/1.157, allocations: 3.793 MB / 0.5407 GB, free: 15.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.181e-05/1.157, allocations: 10.47 kB / 0.5407 GB, free: 15.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004046/1.158, allocations: 93.45 kB / 0.5408 GB, free: 15.47 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004428/1.158, allocations: 205.5 kB / 0.541 GB, free: 15.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01462/1.173, allocations: 3.584 MB / 0.5444 GB, free: 12.7 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.03343/1.206, allocations: 16.65 MB / 0.5607 GB, free: 13.32 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/1.219, allocations: 3.147 MB / 0.5638 GB, free: 10.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06378/1.282, allocations: 18.79 MB / 0.5821 GB, free: 6.18 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008271/1.291, allocations: 1.828 MB / 0.5839 GB, free: 4.766 MB / 474.7 MB Notification: Performance of pre-optimization done (n=192): time 7.093e-06/1.291, allocations: 3.938 kB / 0.5839 GB, free: 4.762 MB / 474.7 MB Notification: Performance of matching and sorting (n=212): time 0.04864/1.339, allocations: 10.18 MB / 0.5939 GB, free: 12.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/1.34, allocations: 187.2 kB / 0.594 GB, free: 12.68 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003088/1.343, allocations: 1.411 MB / 0.5954 GB, free: 11.61 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005598/1.343, allocations: 63.64 kB / 0.5955 GB, free: 11.57 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001185/1.344, allocations: 1.07 MB / 0.5965 GB, free: 10.88 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001177/1.346, allocations: 0.7078 MB / 0.5972 GB, free: 10.27 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000244/1.346, allocations: 50.88 kB / 0.5973 GB, free: 10.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002313/1.346, allocations: 408.4 kB / 0.5976 GB, free: 9.895 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004287/1.35, allocations: 1.25 MB / 0.5989 GB, free: 9.047 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005/1.356, allocations: 1.843 MB / 0.6007 GB, free: 7.445 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00496/1.361, allocations: 1.538 MB / 0.6022 GB, free: 6.445 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.187e-05/1.361, allocations: 7.953 kB / 0.6022 GB, free: 6.438 MB / 490.7 MB Notification: Performance of matching and sorting (n=318) (initialization): time 0.01263/1.373, allocations: 3.734 MB / 0.6058 GB, free: 3.801 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00282/1.376, allocations: 6.625 MB / 0.6123 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.489e-05/1.376, allocations: 16 kB / 0.6123 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001989/1.378, allocations: 342.1 kB / 0.6126 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005134/1.383, allocations: 0.6212 MB / 0.6132 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/1.386, allocations: 3.103 MB / 0.6163 GB, free: 8.855 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005167/1.392, allocations: 338.6 kB / 0.6166 GB, free: 8.562 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005017/1.392, allocations: 125 kB / 0.6167 GB, free: 8.465 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/1.392, allocations: 4 kB / 0.6167 GB, free: 8.461 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01186/1.404, allocations: 3.474 MB / 0.6201 GB, free: 6.105 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.047e-05/1.404, allocations: 16 kB / 0.6201 GB, free: 6.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001728/1.406, allocations: 342.5 kB / 0.6204 GB, free: 5.812 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004966/1.411, allocations: 0.6103 MB / 0.621 GB, free: 5.262 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003064/1.414, allocations: 3.097 MB / 0.6241 GB, free: 2.262 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004633/1.419, allocations: 335.9 kB / 0.6244 GB, free: 1.973 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000457/1.419, allocations: 128.7 kB / 0.6245 GB, free: 1.871 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.002023/1.421, allocations: 0.7236 MB / 0.6252 GB, free: 1.379 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006617/1.422, allocations: 221.3 kB / 0.6254 GB, free: 1.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0199/1.442, allocations: 8.176 MB / 0.6334 GB, free: 11.58 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001287/1.442, allocations: 94 kB / 0.6335 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/1.442, allocations: 0 / 0.6335 GB, free: 11.51 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01592/1.458, allocations: 7.087 MB / 0.6404 GB, free: 6.258 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03165/1.49, allocations: 13.02 MB / 0.6531 GB, free: 8.996 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.322e-05/1.49, allocations: 4 kB / 0.6531 GB, free: 8.992 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003808/1.494, allocations: 480.9 kB / 0.6536 GB, free: 8.543 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002599/1.496, allocations: 458.3 kB / 0.654 GB, free: 8.082 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004945/1.497, allocations: 83.95 kB / 0.6541 GB, free: 8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003127/1.5, allocations: 3.22 MB / 0.6573 GB, free: 4.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-05/1.5, allocations: 10.91 kB / 0.6573 GB, free: 4.652 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02056/1.521, allocations: 8.391 MB / 0.6655 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002318/1.523, allocations: 0.7766 MB / 0.6662 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007856/1.524, allocations: 67.98 kB / 0.6663 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003382/1.527, allocations: 219.6 kB / 0.6665 GB, free: 10.82 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005803/1.528, allocations: 195.5 kB / 0.6667 GB, free: 10.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/1.528, allocations: 99.27 kB / 0.6668 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002617/1.531, allocations: 1.17 MB / 0.6679 GB, free: 9.355 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.11e-07/1.531, allocations: 3.938 kB / 0.6679 GB, free: 9.352 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01337/1.544, allocations: 2.682 MB / 0.6705 GB, free: 6.668 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.01442/1.559, allocations: 2.145 MB / 0.6726 GB, free: 4.711 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.3381/1.897, allocations: 6.052 MB / 0.6785 GB, free: 238.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.248e-05/1.897, allocations: 3.094 kB / 0.6786 GB, free: 238.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008331/1.905, allocations: 3.075 MB / 0.6816 GB, free: 238 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01007/1.915, allocations: 1.121 MB / 0.6826 GB, free: 237.9 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01965/1.935, allocations: 9.715 MB / 0.6921 GB, free: 233.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002434/1.937, allocations: 2.387 MB / 0.6945 GB, free: 232.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008881/1.946, allocations: 2.709 MB / 0.6971 GB, free: 232 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/1.948, allocations: 200.2 kB / 0.6973 GB, free: 232 MB / 0.5417 GB Notification: Performance of SimCode: time 1.322e-06/1.948, allocations: 0 / 0.6973 GB, free: 232 MB / 0.5417 GB Notification: Performance of Templates: time 0.176/2.124, allocations: 83.29 MB / 0.7786 GB, free: 154.3 MB / 0.5417 GB