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 2/2, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.691e-05/4.649e-05, allocations: 0 / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3561, allocations: 48.7 MB / 324.8 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.1576/0.5138, allocations: 91.08 MB / 415.9 MB, free: 4.32 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06853/0.5824, allocations: 31.56 MB / 447.5 MB, free: 4.695 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004034/0.5865, allocations: 115.1 kB / 447.6 MB, free: 4.582 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005141/0.5917, allocations: 1.244 MB / 448.8 MB, free: 3.332 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02497/0.6167, allocations: 5.818 MB / 454.7 MB, free: 13.5 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0264/0.6432, allocations: 6.858 MB / 461.5 MB, free: 6.633 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009236/0.6524, allocations: 3.39 MB / 464.9 MB, free: 3.234 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002813/0.6553, allocations: 1.145 MB / 466.1 MB, free: 2.086 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006476/0.6618, allocations: 1.976 MB / 468 MB, free: 108 kB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3847/1.047, allocations: 18.27 MB / 486.3 MB, free: 27.25 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03079/1.077, allocations: 9.106 MB / 495.4 MB, free: 27.25 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005816/1.083, allocations: 0.5905 MB / 496 MB, free: 27.24 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002067/1.085, allocations: 0.7851 MB / 496.8 MB, free: 27.24 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001731/1.087, allocations: 309.2 kB / 497.1 MB, free: 27.24 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01713/1.104, allocations: 6.442 MB / 0.4917 GB, free: 26.83 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/1.104, allocations: 0 / 0.4917 GB, free: 26.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.038e-06/1.104, allocations: 0 / 0.4917 GB, free: 26.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001824/1.105, allocations: 0 / 0.4917 GB, free: 26.83 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: 571 * Number of variables: 571 Notification: Performance of Generate backend data structure: time 0.01474/1.119, allocations: 3.559 MB / 0.4952 GB, free: 25.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/1.119, allocations: 14.47 kB / 0.4952 GB, free: 25.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009533/1.129, allocations: 0.8544 MB / 0.496 GB, free: 25.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005663/1.135, allocations: 1.679 MB / 0.4977 GB, free: 24.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003517/1.135, allocations: 194.5 kB / 0.4979 GB, free: 24.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/1.136, allocations: 216.4 kB / 0.4981 GB, free: 24.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0142/1.15, allocations: 3.783 MB / 0.5018 GB, free: 24.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/1.151, allocations: 10.64 kB / 0.5018 GB, free: 24.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004977/1.151, allocations: 96.3 kB / 0.5019 GB, free: 24.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004317/1.151, allocations: 206.8 kB / 0.5021 GB, free: 24.08 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01521/1.167, allocations: 3.573 MB / 0.5056 GB, free: 24.03 MB / 410.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.03153/1.198, allocations: 16.63 MB / 0.5218 GB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01124/1.21, allocations: 3.131 MB / 0.5249 GB, free: 11.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06084/1.27, allocations: 18.76 MB / 0.5432 GB, free: 7.176 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00821/1.279, allocations: 1.826 MB / 0.545 GB, free: 5.766 MB / 426.7 MB Notification: Performance of pre-optimization done (n=188): time 6.552e-06/1.279, allocations: 4 kB / 0.545 GB, free: 5.762 MB / 426.7 MB Notification: Performance of matching and sorting (n=208): time 0.05001/1.329, allocations: 10.17 MB / 0.5549 GB, free: 13.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/1.329, allocations: 180.2 kB / 0.5551 GB, free: 13.68 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0032/1.332, allocations: 1.415 MB / 0.5565 GB, free: 12.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005986/1.333, allocations: 61.52 kB / 0.5565 GB, free: 12.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/1.334, allocations: 1.003 MB / 0.5575 GB, free: 11.89 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001309/1.335, allocations: 0.704 MB / 0.5582 GB, free: 11.29 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002939/1.336, allocations: 55.09 kB / 0.5582 GB, free: 11.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002561/1.336, allocations: 410.5 kB / 0.5586 GB, free: 10.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004634/1.341, allocations: 1.242 MB / 0.5598 GB, free: 10.06 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005443/1.346, allocations: 1.834 MB / 0.5616 GB, free: 8.461 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005225/1.351, allocations: 1.521 MB / 0.5631 GB, free: 7.469 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.362e-05/1.351, allocations: 4 kB / 0.5631 GB, free: 7.465 MB / 442.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.0138/1.365, allocations: 3.637 MB / 0.5667 GB, free: 4.926 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002643/1.368, allocations: 6.425 MB / 0.5729 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001012/1.368, allocations: 16 kB / 0.573 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001972/1.37, allocations: 340.4 kB / 0.5733 GB, free: 13.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005292/1.375, allocations: 0.6127 MB / 0.5739 GB, free: 13.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003231/1.379, allocations: 3.1 MB / 0.5769 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005168/1.384, allocations: 332.6 kB / 0.5772 GB, free: 9.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008608/1.385, allocations: 126 kB / 0.5773 GB, free: 9.883 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/1.385, allocations: 4 kB / 0.5773 GB, free: 9.879 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01308/1.398, allocations: 3.477 MB / 0.5807 GB, free: 7.516 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.129e-05/1.398, allocations: 23.17 kB / 0.5808 GB, free: 7.496 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001825/1.4, allocations: 338.8 kB / 0.5811 GB, free: 7.219 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005198/1.405, allocations: 0.6099 MB / 0.5817 GB, free: 6.668 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003182/1.408, allocations: 3.102 MB / 0.5847 GB, free: 3.664 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00423/1.413, allocations: 330.3 kB / 0.585 GB, free: 3.379 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005524/1.413, allocations: 117.7 kB / 0.5851 GB, free: 3.285 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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,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.002291/1.416, allocations: 0.722 MB / 0.5858 GB, free: 2.797 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000803/1.416, allocations: 221.3 kB / 0.5861 GB, free: 2.578 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02089/1.437, allocations: 8.177 MB / 0.594 GB, free: 13 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001372/1.437, allocations: 93.17 kB / 0.5941 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/1.437, allocations: 0 / 0.5941 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0262/1.464, allocations: 7.085 MB / 0.6011 GB, free: 8.023 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0438/1.508, allocations: 12.98 MB / 0.6137 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-05/1.508, allocations: 8 kB / 0.6137 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004181/1.512, allocations: 482.7 kB / 0.6142 GB, free: 14.55 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002727/1.515, allocations: 454.2 kB / 0.6146 GB, free: 14.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006974/1.515, allocations: 73.72 kB / 0.6147 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003479/1.519, allocations: 3.227 MB / 0.6179 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.404e-05/1.519, allocations: 14.28 kB / 0.6179 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02345/1.542, allocations: 8.365 MB / 0.626 GB, free: 4.996 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003439/1.546, allocations: 0.7743 MB / 0.6268 GB, free: 4.34 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001414/1.547, allocations: 57.11 kB / 0.6268 GB, free: 4.316 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01289/1.56, allocations: 231.8 kB / 0.6271 GB, free: 4.121 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001019/1.561, allocations: 200.3 kB / 0.6273 GB, free: 3.961 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004452/1.562, allocations: 84.97 kB / 0.6273 GB, free: 3.895 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008669/1.571, allocations: 1.169 MB / 0.6285 GB, free: 3.008 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.042e-06/1.571, allocations: 0 / 0.6285 GB, free: 3.008 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.02801/1.599, allocations: 2.667 MB / 0.6311 GB, free: 0.5234 MB / 490.7 MB 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,$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,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.01499/1.614, allocations: 2.109 MB / 0.6331 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02059/1.634, allocations: 5.891 MB / 0.6389 GB, free: 10.53 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-05/1.634, allocations: 4 kB / 0.6389 GB, free: 10.53 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008641/1.643, allocations: 2.979 MB / 0.6418 GB, free: 8.09 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01015/1.653, allocations: 1.127 MB / 0.6429 GB, free: 6.973 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3125/1.966, allocations: 9.717 MB / 0.6524 GB, free: 208.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004192/1.97, allocations: 2.33 MB / 0.6547 GB, free: 208.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001685/1.972, allocations: 240.7 kB / 0.6549 GB, free: 208.1 MB / 0.4948 GB Notification: Performance of SimCode: time 2.104e-06/1.972, allocations: 0 / 0.6549 GB, free: 208.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.2227/2.195, allocations: 132.7 MB / 0.7845 GB, free: 102.2 MB / 0.4948 GB