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.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.233/2.233, allocations: 249.5 MB / 261.6 MB, free: 2.156 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.474e-05/3.479e-05, allocations: 8 kB / 323.4 MB, free: 4.309 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3206, allocations: 58.84 MB / 382.2 MB, free: 10.33 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.59/6.91, allocations: 2.847 GB / 3.22 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/6.911, allocations: 75.59 kB / 3.22 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.16/11.07, allocations: 1.014 GB / 4.234 GB, free: 2.367 MB / 0.5574 GB Notification: Performance of FrontEnd: time 5.264e-06/11.07, allocations: 3.938 kB / 4.234 GB, free: 2.363 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 0.0003316/11.07, allocations: 71.92 kB / 4.234 GB, free: 2.293 MB / 0.5574 GB 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.3913/11.46, allocations: 4.235 MB / 4.238 GB, free: 40.66 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/11.46, allocations: 16.2 kB / 4.238 GB, free: 40.65 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008993/11.47, allocations: 0.9392 MB / 4.239 GB, free: 40.5 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00743/11.48, allocations: 2.195 MB / 4.241 GB, free: 40.15 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000347/11.48, allocations: 198.6 kB / 4.242 GB, free: 40.14 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000795/11.48, allocations: 227.9 kB / 4.242 GB, free: 40.14 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01108/11.49, allocations: 3.862 MB / 4.246 GB, free: 39.54 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.073e-05/11.49, allocations: 17.59 kB / 4.246 GB, free: 39.54 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004016/11.49, allocations: 97.31 kB / 4.246 GB, free: 39.54 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002575/11.49, allocations: 174.8 kB / 4.246 GB, free: 39.53 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01058/11.5, allocations: 3.412 MB / 4.249 GB, free: 39.52 MB / 0.5574 GB Warning: The model contains alias variables with conflicting start and/or 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/11.53, allocations: 16.95 MB / 4.266 GB, free: 29.51 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008024/11.54, allocations: 3.058 MB / 4.269 GB, free: 28.91 MB / 0.5574 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002607/11.54, allocations: 1.266 MB / 4.27 GB, free: 28.89 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05651/11.6, allocations: 24.41 MB / 4.294 GB, free: 30.07 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006148/11.6, allocations: 1.883 MB / 4.296 GB, free: 29.95 MB / 0.573 GB Notification: Performance of pre-optimization done (n=192): time 6.263e-06/11.6, allocations: 0 / 4.296 GB, free: 29.95 MB / 0.573 GB Notification: Performance of matching and sorting (n=212): time 0.03416/11.64, allocations: 8.911 MB / 4.304 GB, free: 28.85 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001962/11.64, allocations: 265.5 kB / 4.305 GB, free: 28.57 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002861/11.64, allocations: 1.504 MB / 4.306 GB, free: 28.32 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005541/11.64, allocations: 67.98 kB / 4.306 GB, free: 28.29 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009984/11.64, allocations: 1.032 MB / 4.307 GB, free: 27.91 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008707/11.64, allocations: 0.7075 MB / 4.308 GB, free: 27.46 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000228/11.64, allocations: 52.84 kB / 4.308 GB, free: 27.46 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002605/11.64, allocations: 397.1 kB / 4.308 GB, free: 27.15 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002374/11.65, allocations: 1.139 MB / 4.309 GB, free: 27.14 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003021/11.65, allocations: 1.649 MB / 4.311 GB, free: 26.64 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00313/11.65, allocations: 1.397 MB / 4.312 GB, free: 26.55 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.619e-05/11.65, allocations: 5.188 kB / 4.312 GB, free: 26.55 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.008729/11.66, allocations: 3.49 MB / 4.316 GB, free: 26.25 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002504/11.66, allocations: 5.147 MB / 4.321 GB, free: 20.89 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.481e-05/11.66, allocations: 10.75 kB / 4.321 GB, free: 20.89 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001704/11.66, allocations: 334.4 kB / 4.321 GB, free: 20.85 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00388/11.67, allocations: 0.5985 MB / 4.322 GB, free: 20.85 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00283/11.67, allocations: 3.091 MB / 4.325 GB, free: 18.26 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003955/11.68, allocations: 337.1 kB / 4.325 GB, free: 18.24 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006105/11.68, allocations: 124 kB / 4.325 GB, free: 18.24 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/11.68, allocations: 3.125 kB / 4.325 GB, free: 18.24 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007504/11.68, allocations: 3.207 MB / 4.328 GB, free: 18.09 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.227e-05/11.68, allocations: 17.53 kB / 4.328 GB, free: 18.09 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/11.69, allocations: 333.2 kB / 4.329 GB, free: 18.05 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003628/11.69, allocations: 0.5848 MB / 4.329 GB, free: 18.05 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002815/11.69, allocations: 3.099 MB / 4.332 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003783/11.7, allocations: 336.6 kB / 4.332 GB, free: 15.44 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005644/11.7, allocations: 119.1 kB / 4.333 GB, free: 15.44 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (283): * Single equations (assignments): 276 * 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.0009028/11.7, allocations: 329.4 kB / 4.333 GB, free: 15.25 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006308/11.7, allocations: 234.2 kB / 4.333 GB, free: 15.13 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01411/11.71, allocations: 8.212 MB / 4.341 GB, free: 14.32 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-05/11.71, allocations: 87.28 kB / 4.341 GB, free: 14.32 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/11.71, allocations: 0 / 4.341 GB, free: 14.32 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01181/11.72, allocations: 7.121 MB / 4.348 GB, free: 13.35 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02534/11.75, allocations: 13.21 MB / 4.361 GB, free: 11.71 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/11.75, allocations: 5.906 kB / 4.361 GB, free: 11.71 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002754/11.75, allocations: 493.5 kB / 4.362 GB, free: 11.71 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002238/11.75, allocations: 459 kB / 4.362 GB, free: 11.66 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004835/11.75, allocations: 76.08 kB / 4.362 GB, free: 11.66 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003263/11.76, allocations: 3.221 MB / 4.365 GB, free: 25.07 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.996e-06/11.76, allocations: 15.59 kB / 4.365 GB, free: 25.07 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01361/11.77, allocations: 8.243 MB / 4.373 GB, free: 23.63 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002408/11.77, allocations: 0.8303 MB / 4.374 GB, free: 23.28 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008477/11.78, allocations: 62.23 kB / 4.374 GB, free: 23.28 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003/11.78, allocations: 242.4 kB / 4.374 GB, free: 23.27 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005202/11.78, allocations: 196.6 kB / 4.375 GB, free: 23.26 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003025/11.78, allocations: 95.59 kB / 4.375 GB, free: 23.26 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.00257/11.78, allocations: 1.325 MB / 4.376 GB, free: 23.1 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.042e-06/11.78, allocations: 0 / 4.376 GB, free: 23.1 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01184/11.79, allocations: 2.954 MB / 4.379 GB, free: 22.99 MB / 0.5886 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,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.region3boundary,$cse45.region3boundary,$cse46.phase,$cse46.region,$cse48.phase,$cse48.region,$cse49.region3boundary,$cse50.region3boundary,$cse51.phase,$cse51.region,$cse52.phase,$cse52.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 (239): * Single equations (assignments): 208 * 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.01241/11.81, allocations: 3.079 MB / 4.382 GB, free: 22.62 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01209/11.82, allocations: 5.556 MB / 4.387 GB, free: 22.29 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/11.82, allocations: 3.938 kB / 4.387 GB, free: 22.29 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006007/11.82, allocations: 2.94 MB / 4.39 GB, free: 22.15 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007287/11.83, allocations: 1.213 MB / 4.391 GB, free: 22.12 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01302/11.84, allocations: 6.64 MB / 4.398 GB, free: 20.72 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002546/11.85, allocations: 2.391 MB / 4.4 GB, free: 19.9 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.007826/11.86, allocations: 2.761 MB / 4.403 GB, free: 19.78 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/11.86, allocations: 208.6 kB / 4.403 GB, free: 19.77 MB / 0.5886 GB Notification: Performance of SimCode: time 1.756e-06/11.86, allocations: 0 / 4.403 GB, free: 19.77 MB / 0.5886 GB Notification: Performance of Templates: time 0.6298/12.49, allocations: 101.5 MB / 4.502 GB, free: 69.55 MB / 0.5886 GB