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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18") Notification: Performance of loadModel(ModelicaTest): time 2.37/2.37, allocations: 269 MB / 284.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.314e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1318, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18): time 0.4977/0.6295, allocations: 92.35 MB / 0.4915 GB, free: 11.22 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.06821/0.6978, allocations: 31.88 MB / 0.5226 GB, free: 11.28 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004311/0.7022, allocations: 115.2 kB / 0.5227 GB, free: 11.16 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005367/0.7076, allocations: 1.252 MB / 0.5239 GB, free: 9.906 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02441/0.7321, allocations: 5.923 MB / 0.5297 GB, free: 3.965 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02589/0.758, allocations: 6.938 MB / 0.5365 GB, free: 13.01 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.009314/0.7674, allocations: 3.464 MB / 0.5399 GB, free: 9.539 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002735/0.7701, allocations: 1.157 MB / 0.541 GB, free: 8.379 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006622/0.7768, allocations: 2.03 MB / 0.543 GB, free: 6.344 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04436/0.8212, allocations: 18.47 MB / 0.561 GB, free: 3.867 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02802/0.8493, allocations: 9.307 MB / 0.5701 GB, free: 10.55 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004954/0.8543, allocations: 0.5977 MB / 0.5707 GB, free: 9.953 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002089/0.8565, allocations: 0.8062 MB / 0.5715 GB, free: 9.145 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.8579, allocations: 312 kB / 0.5718 GB, free: 8.84 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0176/0.8755, allocations: 6.564 MB / 0.5782 GB, free: 2.262 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.8756, allocations: 4 kB / 0.5782 GB, free: 2.258 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.8756, allocations: 0 / 0.5782 GB, free: 2.258 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001282/0.8757, allocations: 0 / 0.5782 GB, free: 2.258 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 0.01422/0.89, allocations: 3.653 MB / 0.5818 GB, free: 14.53 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.89, allocations: 8.031 kB / 0.5818 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009239/0.8993, allocations: 0.8864 MB / 0.5826 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005294/0.9046, allocations: 1.686 MB / 0.5843 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003232/0.905, allocations: 196.1 kB / 0.5845 GB, free: 11.69 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006922/0.9057, allocations: 224 kB / 0.5847 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0138/0.9195, allocations: 3.804 MB / 0.5884 GB, free: 7.48 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.782e-05/0.9197, allocations: 11.84 kB / 0.5884 GB, free: 7.469 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004213/0.9201, allocations: 91.97 kB / 0.5885 GB, free: 7.379 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004656/0.9206, allocations: 211.9 kB / 0.5887 GB, free: 7.168 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01527/0.9359, allocations: 3.595 MB / 0.5922 GB, free: 3.555 MB / 0.4948 GB 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.03629/0.9722, allocations: 16.86 MB / 0.6087 GB, free: 1.266 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.361/1.333, allocations: 3.197 MB / 0.6118 GB, free: 171.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09772/1.431, allocations: 24.68 MB / 0.6359 GB, free: 155.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008142/1.439, allocations: 1.877 MB / 0.6377 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=192): time 6.362e-06/1.439, allocations: 1.875 kB / 0.6377 GB, free: 155.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=212): time 0.04619/1.486, allocations: 10.43 MB / 0.6479 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.763e-05/1.486, allocations: 183.9 kB / 0.6481 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002643/1.488, allocations: 1.485 MB / 0.6496 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004767/1.489, allocations: 65.58 kB / 0.6496 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008139/1.49, allocations: 0.9877 MB / 0.6506 GB, free: 148.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008357/1.491, allocations: 0.7074 MB / 0.6513 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/1.491, allocations: 51.59 kB / 0.6513 GB, free: 148.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001708/1.491, allocations: 403.5 kB / 0.6517 GB, free: 147.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004022/1.495, allocations: 1.272 MB / 0.653 GB, free: 147.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004536/1.5, allocations: 1.84 MB / 0.6547 GB, free: 145.9 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004374/1.504, allocations: 1.536 MB / 0.6562 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.317e-05/1.504, allocations: 3.969 kB / 0.6563 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=312) (initialization): time 0.01076/1.515, allocations: 3.682 MB / 0.6598 GB, free: 142.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001175/1.516, allocations: 5.903 MB / 0.6656 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.325e-05/1.516, allocations: 16 kB / 0.6656 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/1.518, allocations: 345.2 kB / 0.666 GB, free: 136 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004803/1.523, allocations: 0.6085 MB / 0.6666 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002246/1.525, allocations: 3.11 MB / 0.6696 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004743/1.53, allocations: 339.3 kB / 0.6699 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005566/1.53, allocations: 124 kB / 0.67 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/1.53, allocations: 6.188 kB / 0.67 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01066/1.541, allocations: 3.54 MB / 0.6735 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.562e-05/1.541, allocations: 12 kB / 0.6735 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/1.543, allocations: 344.2 kB / 0.6738 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004616/1.547, allocations: 0.6046 MB / 0.6744 GB, free: 127.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/1.55, allocations: 3.103 MB / 0.6775 GB, free: 123.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003991/1.554, allocations: 327.6 kB / 0.6778 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003388/1.554, allocations: 124 kB / 0.6779 GB, free: 123.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (292): * Single equations (assignments): 285 * 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.001858/1.556, allocations: 0.7119 MB / 0.6786 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006625/1.557, allocations: 241.2 kB / 0.6788 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01849/1.575, allocations: 8.292 MB / 0.6869 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.269e-05/1.575, allocations: 91.88 kB / 0.687 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/1.575, allocations: 3.984 kB / 0.687 GB, free: 114 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01382/1.589, allocations: 7.199 MB / 0.694 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02702/1.616, allocations: 13.21 MB / 0.7069 GB, free: 93.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.008e-05/1.616, allocations: 4 kB / 0.7069 GB, free: 93.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003694/1.62, allocations: 500 kB / 0.7074 GB, free: 92.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003366/1.623, allocations: 459.5 kB / 0.7079 GB, free: 92.21 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005436/1.624, allocations: 79.97 kB / 0.7079 GB, free: 92.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002359/1.626, allocations: 3.226 MB / 0.7111 GB, free: 88.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/1.626, allocations: 8.188 kB / 0.7111 GB, free: 88.77 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01757/1.644, allocations: 8.557 MB / 0.7194 GB, free: 79.85 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002113/1.646, allocations: 0.8115 MB / 0.7202 GB, free: 79.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008789/1.647, allocations: 63.98 kB / 0.7203 GB, free: 78.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00339/1.65, allocations: 231.6 kB / 0.7205 GB, free: 78.72 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005225/1.651, allocations: 201.7 kB / 0.7207 GB, free: 78.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002697/1.651, allocations: 96.66 kB / 0.7208 GB, free: 78.43 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002412/1.654, allocations: 1.309 MB / 0.7221 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.01e-07/1.654, allocations: 192 / 0.7221 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009067/1.663, allocations: 2.732 MB / 0.7248 GB, free: 74.56 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: 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 (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.009529/1.672, allocations: 2.163 MB / 0.7269 GB, free: 72.78 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0164/1.689, allocations: 6.016 MB / 0.7327 GB, free: 66.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/1.689, allocations: 4 kB / 0.7327 GB, free: 66.69 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007755/1.697, allocations: 3.075 MB / 0.7357 GB, free: 63.59 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009915/1.707, allocations: 1.234 MB / 0.7369 GB, free: 62.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01799/1.725, allocations: 9.581 MB / 0.7463 GB, free: 52.71 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002043/1.727, allocations: 2.345 MB / 0.7486 GB, free: 50.34 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/1.728, allocations: 251.4 kB / 0.7488 GB, free: 50.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.223e-06/1.728, allocations: 0 / 0.7488 GB, free: 50.1 MB / 0.5105 GB Notification: Performance of Templates: time 0.5688/2.297, allocations: 134.8 MB / 0.8805 GB, free: 134.8 MB / 0.5261 GB