Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16") Notification: Performance of loadModel(ModelicaTest): time 2.304/2.304, allocations: 270 MB / 282.7 MB, free: 1.895 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.76e-05/2.772e-05, allocations: 4 kB / 347 MB, free: 3.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3235, allocations: 61.87 MB / 408.8 MB, free: 10.83 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.61/1.933, allocations: 0.5613 GB / 0.9606 GB, free: 121.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/1.933, allocations: 78.7 kB / 0.9606 GB, free: 121.3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.295/4.229, allocations: 0.5061 GB / 1.467 GB, free: 42.96 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.881e-06/4.229, allocations: 4 kB / 1.467 GB, free: 42.95 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002107/4.229, allocations: 60.14 kB / 1.467 GB, free: 42.89 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.00885/4.238, allocations: 2.794 MB / 1.469 GB, free: 40.03 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/4.238, allocations: 12.03 kB / 1.469 GB, free: 40.02 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00403/4.242, allocations: 448.7 kB / 1.47 GB, free: 39.58 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006216/4.248, allocations: 1.928 MB / 1.472 GB, free: 37.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/4.249, allocations: 131 kB / 1.472 GB, free: 37.47 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006379/4.249, allocations: 164 kB / 1.472 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005725/4.255, allocations: 2.587 MB / 1.475 GB, free: 34.57 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.537e-05/4.255, allocations: 11.41 kB / 1.475 GB, free: 34.57 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003515/4.255, allocations: 71.97 kB / 1.475 GB, free: 34.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002232/4.256, allocations: 151 kB / 1.475 GB, free: 34.35 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004903/4.261, allocations: 2.169 MB / 1.477 GB, free: 32.18 MB / 0.5261 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.01791/4.279, allocations: 11.01 MB / 1.488 GB, free: 20.39 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003519/4.282, allocations: 1.768 MB / 1.489 GB, free: 18.57 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002027/4.284, allocations: 1.044 MB / 1.49 GB, free: 17.52 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009645/4.285, allocations: 0.5105 MB / 1.491 GB, free: 16.92 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002442/4.288, allocations: 1.276 MB / 1.492 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 5.34e-06/4.288, allocations: 11.88 kB / 1.492 GB, free: 15.59 MB / 0.5261 GB 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: pipe1.mediums[1].T 2: pipe2.mediums[1].T 3: pipe3.mediums[1].T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=185): time 0.02714/4.315, allocations: 8.669 MB / 1.501 GB, free: 6.789 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/4.315, allocations: 372.1 kB / 1.501 GB, free: 6.344 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002429/4.317, allocations: 1.396 MB / 1.502 GB, free: 4.953 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004975/4.318, allocations: 65.7 kB / 1.502 GB, free: 4.883 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005923/4.319, allocations: 0.7955 MB / 1.503 GB, free: 4.078 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006314/4.319, allocations: 0.6277 MB / 1.504 GB, free: 3.441 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/4.319, allocations: 40 kB / 1.504 GB, free: 3.402 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001314/4.32, allocations: 398.7 kB / 1.504 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002076/4.322, allocations: 0.9957 MB / 1.505 GB, free: 2.008 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002399/4.324, allocations: 1.432 MB / 1.507 GB, free: 424 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00288/4.327, allocations: 1.272 MB / 1.508 GB, free: 15.13 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.22e-05/4.327, allocations: 8 kB / 1.508 GB, free: 15.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.007723/4.335, allocations: 2.921 MB / 1.511 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002077/4.337, allocations: 3.647 MB / 1.514 GB, free: 8.234 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-05/4.337, allocations: 11.98 kB / 1.514 GB, free: 8.223 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006956/4.338, allocations: 195.3 kB / 1.514 GB, free: 8.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003544/4.341, allocations: 0.5422 MB / 1.515 GB, free: 7.477 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/4.343, allocations: 2.315 MB / 1.517 GB, free: 5.059 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003393/4.347, allocations: 219.9 kB / 1.517 GB, free: 4.844 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006214/4.348, allocations: 191.9 kB / 1.518 GB, free: 4.656 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/4.348, allocations: 4 kB / 1.518 GB, free: 4.652 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007669/4.355, allocations: 2.779 MB / 1.52 GB, free: 1.848 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.594e-05/4.355, allocations: 8 kB / 1.52 GB, free: 1.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006033/4.356, allocations: 191.3 kB / 1.521 GB, free: 1.641 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003501/4.359, allocations: 0.5347 MB / 1.521 GB, free: 1.105 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002299/4.362, allocations: 2.323 MB / 1.523 GB, free: 14.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002669/4.365, allocations: 215.8 kB / 1.524 GB, free: 14.47 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005193/4.365, allocations: 184 kB / 1.524 GB, free: 14.29 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 240 * 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.0009159/4.366, allocations: 299.7 kB / 1.524 GB, free: 13.98 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007393/4.367, allocations: 217.4 kB / 1.524 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/4.38, allocations: 4.597 MB / 1.529 GB, free: 9.129 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/4.38, allocations: 16 kB / 1.529 GB, free: 9.113 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/4.38, allocations: 0 / 1.529 GB, free: 9.113 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006681/4.387, allocations: 2.74 MB / 1.531 GB, free: 6.266 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3788/4.765, allocations: 6.975 MB / 1.538 GB, free: 77.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.787e-05/4.765, allocations: 6.281 kB / 1.538 GB, free: 77.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003216/4.769, allocations: 437.8 kB / 1.539 GB, free: 77.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000731/4.769, allocations: 183.8 kB / 1.539 GB, free: 77.77 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005243/4.77, allocations: 103.2 kB / 1.539 GB, free: 77.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00215/4.772, allocations: 3.067 MB / 1.542 GB, free: 74.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-05/4.772, allocations: 12.09 kB / 1.542 GB, free: 74.99 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009958/4.782, allocations: 4.72 MB / 1.547 GB, free: 73.76 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001963/4.784, allocations: 0.5393 MB / 1.547 GB, free: 73.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009742/4.785, allocations: 61.09 kB / 1.547 GB, free: 73.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002712/4.788, allocations: 132.9 kB / 1.547 GB, free: 73.67 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005018/4.788, allocations: 177.4 kB / 1.547 GB, free: 73.66 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000414/4.789, allocations: 158.8 kB / 1.548 GB, free: 73.66 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002307/4.791, allocations: 1.089 MB / 1.549 GB, free: 73.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.042e-06/4.791, allocations: 2.469 kB / 1.549 GB, free: 73.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007736/4.799, allocations: 1.799 MB / 1.55 GB, free: 73.5 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * 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 (191): * Single equations (assignments): 185 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006131/4.805, allocations: 2.171 MB / 1.553 GB, free: 73.23 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009907/4.815, allocations: 4.196 MB / 1.557 GB, free: 72.95 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.208e-05/4.815, allocations: 0 / 1.557 GB, free: 72.95 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003108/4.818, allocations: 1.487 MB / 1.558 GB, free: 72.72 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006178/4.825, allocations: 0.9724 MB / 1.559 GB, free: 72.69 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00991/4.834, allocations: 4.132 MB / 1.563 GB, free: 71.71 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001525/4.836, allocations: 1.705 MB / 1.565 GB, free: 70.97 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002761/4.839, allocations: 437.5 kB / 1.565 GB, free: 70.96 MB / 0.5573 GB Notification: Performance of SimCode: time 2.672e-06/4.839, allocations: 0 / 1.565 GB, free: 70.96 MB / 0.5573 GB [CodegenCppCommon.tpl:986:14-986:14:writable] Error: Template error: Unknown exp:.Modelica.Media.IdealGases.Common.DataRecord("Air", #(0.0289651159), #(-4333.833858403446), #(298609.6803431054), #(1000), #({10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}), #({-176.796731, -3.921504225}), #({241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}), #({6462.26319, -8.147411905}), #(287.0512249529787)).