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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 1.86/1.86, allocations: 209.3 MB / 222 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.317e-05/3.329e-05, allocations: 0 / 273.1 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08717/0.08723, allocations: 48.69 MB / 321.8 MB, free: 2.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.094/6.181, allocations: 2.567 GB / 2.881 GB, free: 62.82 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/6.181, allocations: 75.92 kB / 2.881 GB, free: 62.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689/10.87, allocations: 0.9821 GB / 3.863 GB, free: 23.11 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.365e-06/10.87, allocations: 0 / 3.863 GB, free: 23.11 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002909/10.87, allocations: 70.38 kB / 3.863 GB, free: 23.1 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01547/10.89, allocations: 4.098 MB / 3.867 GB, free: 21.3 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/10.89, allocations: 14.73 kB / 3.867 GB, free: 21.3 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008943/10.89, allocations: 0.9178 MB / 3.868 GB, free: 21.15 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007446/10.9, allocations: 2.181 MB / 3.87 GB, free: 20.68 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003161/10.9, allocations: 202 kB / 3.871 GB, free: 20.68 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/10.9, allocations: 223.8 kB / 3.871 GB, free: 20.67 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/10.92, allocations: 3.831 MB / 3.875 GB, free: 20.08 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001124/10.92, allocations: 7.938 kB / 3.875 GB, free: 20.08 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008321/10.92, allocations: 99.34 kB / 3.875 GB, free: 20.07 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002754/10.92, allocations: 174.9 kB / 3.875 GB, free: 20.07 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01102/10.93, allocations: 3.389 MB / 3.878 GB, free: 20.05 MB / 474.7 MB 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.02806/10.96, allocations: 16.71 MB / 3.894 GB, free: 9.945 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008372/10.96, allocations: 3.02 MB / 3.897 GB, free: 25.34 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002789/10.97, allocations: 1.223 MB / 3.899 GB, free: 25.32 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0441/11.01, allocations: 18.59 MB / 3.917 GB, free: 13.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00658/11.02, allocations: 1.827 MB / 3.918 GB, free: 13.52 MB / 490.7 MB Notification: Performance of pre-optimization done (n=188): time 7.276e-06/11.02, allocations: 0 / 3.918 GB, free: 13.52 MB / 490.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: junctionVolume.medium.h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=208): time 0.04274/11.06, allocations: 10.89 MB / 3.929 GB, free: 12.23 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002007/11.06, allocations: 261.6 kB / 3.929 GB, free: 11.95 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003079/11.06, allocations: 1.425 MB / 3.931 GB, free: 11.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005921/11.07, allocations: 66.58 kB / 3.931 GB, free: 11.67 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009797/11.07, allocations: 0.9823 MB / 3.932 GB, free: 11.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000989/11.07, allocations: 0.6962 MB / 3.932 GB, free: 10.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000274/11.07, allocations: 46.59 kB / 3.933 GB, free: 10.75 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003113/11.07, allocations: 404.9 kB / 3.933 GB, free: 10.43 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002619/11.07, allocations: 1.116 MB / 3.934 GB, free: 10.43 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003275/11.07, allocations: 1.653 MB / 3.936 GB, free: 9.863 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003201/11.08, allocations: 1.385 MB / 3.937 GB, free: 9.758 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-05/11.08, allocations: 6.438 kB / 3.937 GB, free: 9.758 MB / 490.7 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.008755/11.09, allocations: 3.305 MB / 3.94 GB, free: 9.516 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002913/11.09, allocations: 5.471 MB / 3.946 GB, free: 19.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.787e-05/11.09, allocations: 13.78 kB / 3.946 GB, free: 19.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001571/11.09, allocations: 329.1 kB / 3.946 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003798/11.09, allocations: 0.6007 MB / 3.946 GB, free: 19.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002938/11.1, allocations: 3.097 MB / 3.949 GB, free: 17.13 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004129/11.1, allocations: 330.5 kB / 3.95 GB, free: 17.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000757/11.1, allocations: 123.9 kB / 3.95 GB, free: 17.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/11.1, allocations: 7.875 kB / 3.95 GB, free: 17.09 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008049/11.11, allocations: 3.137 MB / 3.953 GB, free: 16.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.718e-05/11.11, allocations: 19.53 kB / 3.953 GB, free: 16.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/11.11, allocations: 331.8 kB / 3.953 GB, free: 16.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003483/11.12, allocations: 0.5885 MB / 3.954 GB, free: 16.86 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002821/11.12, allocations: 3.095 MB / 3.957 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003255/11.12, allocations: 326.2 kB / 3.957 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006508/11.12, allocations: 119.8 kB / 3.957 GB, free: 14.21 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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 (287): * Single equations (assignments): 280 * 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.0009413/11.12, allocations: 328.3 kB / 3.958 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006448/11.12, allocations: 225.8 kB / 3.958 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01434/11.14, allocations: 8.116 MB / 3.966 GB, free: 12.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.259e-05/11.14, allocations: 87.98 kB / 3.966 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/11.14, allocations: 0 / 3.966 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01181/11.15, allocations: 7.033 MB / 3.973 GB, free: 9.141 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03125/11.18, allocations: 13.16 MB / 3.986 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.732e-05/11.18, allocations: 4 kB / 3.986 GB, free: 15.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00283/11.18, allocations: 489.2 kB / 3.986 GB, free: 15.11 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/11.19, allocations: 453.9 kB / 3.987 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005357/11.19, allocations: 75.41 kB / 3.987 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00327/11.19, allocations: 3.217 MB / 3.99 GB, free: 11.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.479e-05/11.19, allocations: 15.95 kB / 3.99 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01739/11.21, allocations: 8.088 MB / 3.998 GB, free: 3.734 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00257/11.21, allocations: 0.7975 MB / 3.998 GB, free: 3.023 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009489/11.21, allocations: 59.89 kB / 3.998 GB, free: 2.969 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003181/11.21, allocations: 234.2 kB / 3.999 GB, free: 2.785 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006955/11.22, allocations: 186 kB / 3.999 GB, free: 2.672 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004388/11.22, allocations: 96.19 kB / 3.999 GB, free: 2.59 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003047/11.22, allocations: 1.179 MB / 4 GB, free: 1.504 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.657e-06/11.22, allocations: 0 / 4 GB, free: 1.504 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.3568/11.58, allocations: 2.883 MB / 4.003 GB, free: 67.99 MB / 0.5105 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: 57 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (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.01378/11.59, allocations: 3.026 MB / 4.006 GB, free: 67.79 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01336/11.6, allocations: 5.404 MB / 4.011 GB, free: 67.47 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/11.6, allocations: 2.625 kB / 4.011 GB, free: 67.47 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006499/11.61, allocations: 2.861 MB / 4.014 GB, free: 67.33 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007688/11.62, allocations: 1.122 MB / 4.015 GB, free: 67.31 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2889/11.91, allocations: 126.1 MB / 4.138 GB, free: 49.12 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002466/11.91, allocations: 2.343 MB / 4.141 GB, free: 47.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001766/11.91, allocations: 243.1 kB / 4.141 GB, free: 47.2 MB / 0.5105 GB Notification: Performance of SimCode: time 3.033e-06/11.91, allocations: 0 / 4.141 GB, free: 47.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.586/12.5, allocations: 136.8 MB / 4.274 GB, free: 57.39 MB / 0.5105 GB