Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.349/2.349, allocations: 269 MB / 284.1 MB, free: 3.625 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.991e-05/2.985e-05, allocations: 4 kB / 349 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1275, allocations: 61.9 MB / 410.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14): time 0.459/0.5865, allocations: 84.12 MB / 495 MB, free: 3.414 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06614/0.6527, allocations: 30.27 MB / 0.513 GB, free: 5.082 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003822/0.6566, allocations: 111.2 kB / 0.5131 GB, free: 4.973 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004988/0.6616, allocations: 1.163 MB / 0.5142 GB, free: 3.805 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02316/0.6848, allocations: 5.623 MB / 0.5197 GB, free: 14.16 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02574/0.7106, allocations: 6.587 MB / 0.5262 GB, free: 7.559 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.009385/0.72, allocations: 3.213 MB / 0.5293 GB, free: 4.34 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002841/0.7229, allocations: 1.055 MB / 0.5303 GB, free: 3.285 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006458/0.7294, allocations: 1.878 MB / 0.5322 GB, free: 1.402 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04639/0.7759, allocations: 18.34 MB / 0.5501 GB, free: 15.05 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0279/0.8038, allocations: 9.15 MB / 0.559 GB, free: 5.887 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004639/0.8085, allocations: 0.582 MB / 0.5596 GB, free: 5.305 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00199/0.8106, allocations: 0.7479 MB / 0.5603 GB, free: 4.555 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001702/0.8123, allocations: 288 kB / 0.5606 GB, free: 4.273 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01685/0.8292, allocations: 6.283 MB / 0.5667 GB, free: 13.98 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.8293, allocations: 4 kB / 0.5667 GB, free: 13.97 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.8293, allocations: 0 / 0.5667 GB, free: 13.97 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001322/0.8294, allocations: 0 / 0.5667 GB, free: 13.97 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01358/0.843, allocations: 3.433 MB / 0.5701 GB, free: 10.47 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.8431, allocations: 12.03 kB / 0.5701 GB, free: 10.46 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008678/0.8518, allocations: 0.8203 MB / 0.5709 GB, free: 9.633 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005442/0.8573, allocations: 1.591 MB / 0.5725 GB, free: 7.988 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003885/0.8577, allocations: 179.8 kB / 0.5726 GB, free: 7.812 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009296/0.8587, allocations: 203.9 kB / 0.5728 GB, free: 7.613 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01397/0.8727, allocations: 3.575 MB / 0.5763 GB, free: 3.883 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.773e-05/0.8728, allocations: 11.94 kB / 0.5763 GB, free: 3.871 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005259/0.8734, allocations: 87.92 kB / 0.5764 GB, free: 3.785 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004872/0.8739, allocations: 199.6 kB / 0.5766 GB, free: 3.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01422/0.8881, allocations: 3.336 MB / 0.5799 GB, free: 256 kB / 490.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.03306/0.9212, allocations: 15.56 MB / 0.595 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01068/0.932, allocations: 2.818 MB / 0.5978 GB, free: 12.44 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4642/1.396, allocations: 24.82 MB / 0.622 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007786/1.404, allocations: 1.72 MB / 0.6237 GB, free: 140 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=173): time 7.053e-06/1.404, allocations: 1.312 kB / 0.6237 GB, free: 140 MB / 0.5105 GB Notification: Performance of matching and sorting (n=189): time 0.05793/1.462, allocations: 9.28 MB / 0.6328 GB, free: 138.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001692/1.462, allocations: 181.6 kB / 0.633 GB, free: 138.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00487/1.467, allocations: 1.391 MB / 0.6343 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000689/1.468, allocations: 61.05 kB / 0.6344 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001298/1.469, allocations: 0.9289 MB / 0.6353 GB, free: 138 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001407/1.471, allocations: 0.6249 MB / 0.6359 GB, free: 137.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000344/1.471, allocations: 46.16 kB / 0.6359 GB, free: 137.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002326/1.471, allocations: 397 kB / 0.6363 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006128/1.477, allocations: 1.136 MB / 0.6374 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006724/1.484, allocations: 1.647 MB / 0.639 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006645/1.491, allocations: 1.389 MB / 0.6404 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.565e-05/1.491, allocations: 8.562 kB / 0.6404 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=273) (initialization): time 0.01689/1.508, allocations: 3.256 MB / 0.6436 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001493/1.51, allocations: 5.291 MB / 0.6487 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.234e-05/1.51, allocations: 11.72 kB / 0.6487 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002098/1.512, allocations: 233 kB / 0.649 GB, free: 130.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00681/1.519, allocations: 0.5433 MB / 0.6495 GB, free: 130.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/1.521, allocations: 2.435 MB / 0.6519 GB, free: 128.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006987/1.529, allocations: 307.3 kB / 0.6522 GB, free: 128.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008669/1.529, allocations: 110 kB / 0.6523 GB, free: 128.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/1.53, allocations: 11.91 kB / 0.6523 GB, free: 128.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01641/1.546, allocations: 3.119 MB / 0.6553 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.556e-05/1.546, allocations: 11.84 kB / 0.6553 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001859/1.548, allocations: 248.5 kB / 0.6556 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006224/1.554, allocations: 0.5275 MB / 0.6561 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002352/1.557, allocations: 2.44 MB / 0.6585 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004342/1.561, allocations: 297.6 kB / 0.6588 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005692/1.562, allocations: 100 kB / 0.6589 GB, free: 126.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 30 (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,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 (259): * Single equations (assignments): 253 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00223/1.564, allocations: 0.6946 MB / 0.6595 GB, free: 126 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007278/1.565, allocations: 215.8 kB / 0.6597 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01659/1.581, allocations: 7.603 MB / 0.6672 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.925e-05/1.581, allocations: 88.39 kB / 0.6673 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/1.581, allocations: 3 kB / 0.6673 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01278/1.594, allocations: 6.603 MB / 0.6737 GB, free: 116.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02602/1.62, allocations: 12.2 MB / 0.6856 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.449e-05/1.62, allocations: 12.12 kB / 0.6856 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003392/1.624, allocations: 435.9 kB / 0.686 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001908/1.626, allocations: 346.5 kB / 0.6864 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004634/1.626, allocations: 71.97 kB / 0.6864 GB, free: 103 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001604/1.628, allocations: 2.529 MB / 0.6889 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/1.628, allocations: 15.08 kB / 0.6889 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01587/1.644, allocations: 7.797 MB / 0.6965 GB, free: 92.21 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002091/1.646, allocations: 0.7611 MB / 0.6973 GB, free: 91.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008949/1.647, allocations: 59.98 kB / 0.6973 GB, free: 91.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003344/1.65, allocations: 211.6 kB / 0.6975 GB, free: 91.16 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005379/1.651, allocations: 185 kB / 0.6977 GB, free: 90.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002585/1.651, allocations: 79.97 kB / 0.6978 GB, free: 90.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002416/1.653, allocations: 1.247 MB / 0.699 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.31e-07/1.653, allocations: 0 / 0.699 GB, free: 89.64 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009104/1.663, allocations: 2.565 MB / 0.7015 GB, free: 87.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (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) * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.region3boundary,$cse21.region3boundary,$cse22.phase,$cse22.region,$cse24.phase,$cse24.region,$cse25.region3boundary,$cse26.region3boundary,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.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) * 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 (214): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009831/1.672, allocations: 2.08 MB / 0.7036 GB, free: 85.59 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01444/1.687, allocations: 5.401 MB / 0.7088 GB, free: 80.24 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.26e-05/1.687, allocations: 128 / 0.7088 GB, free: 80.24 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006161/1.693, allocations: 2.761 MB / 0.7115 GB, free: 77.51 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009052/1.702, allocations: 1.06 MB / 0.7126 GB, free: 76.46 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/1.719, allocations: 8.927 MB / 0.7213 GB, free: 67.47 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002209/1.722, allocations: 2.249 MB / 0.7235 GB, free: 65.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/1.723, allocations: 223.4 kB / 0.7237 GB, free: 64.98 MB / 0.5105 GB Notification: Performance of SimCode: time 1.202e-06/1.723, allocations: 0 / 0.7237 GB, free: 64.98 MB / 0.5105 GB Notification: Performance of Templates: time 0.533/2.256, allocations: 115 MB / 0.836 GB, free: 187.7 MB / 0.5417 GB