Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") Notification: Performance of loadModel(ModelicaTest): time 2.294/2.294, allocations: 270 MB / 282.7 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.036e-05/3.046e-05, allocations: 8 kB / 347 MB, free: 3.254 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.325, allocations: 61.87 MB / 408.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.515/1.841, allocations: 0.5613 GB / 0.9606 GB, free: 167.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/1.841, allocations: 73.61 kB / 0.9606 GB, free: 167.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.231/4.072, allocations: 0.506 GB / 1.467 GB, free: 48.61 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.727e-06/4.072, allocations: 0 / 1.467 GB, free: 48.61 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002408/4.072, allocations: 59.8 kB / 1.467 GB, free: 48.6 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.009844/4.082, allocations: 2.816 MB / 1.469 GB, free: 46.66 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/4.082, allocations: 7.781 kB / 1.469 GB, free: 46.66 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00456/4.087, allocations: 437 kB / 1.47 GB, free: 46.46 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006472/4.093, allocations: 1.929 MB / 1.472 GB, free: 45.21 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002022/4.093, allocations: 127.3 kB / 1.472 GB, free: 45.16 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007451/4.094, allocations: 165.3 kB / 1.472 GB, free: 45.12 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006198/4.1, allocations: 2.588 MB / 1.475 GB, free: 43.49 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.795e-05/4.101, allocations: 3.938 kB / 1.475 GB, free: 43.48 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003786/4.101, allocations: 76.75 kB / 1.475 GB, free: 43.42 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002297/4.101, allocations: 153.7 kB / 1.475 GB, free: 43.27 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005136/4.106, allocations: 2.176 MB / 1.477 GB, free: 41.1 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.01921/4.126, allocations: 11.01 MB / 1.488 GB, free: 29.43 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003726/4.129, allocations: 1.76 MB / 1.489 GB, free: 27.61 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002193/4.132, allocations: 1.048 MB / 1.49 GB, free: 26.56 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009477/4.133, allocations: 0.5069 MB / 1.491 GB, free: 25.97 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002525/4.135, allocations: 1.273 MB / 1.492 GB, free: 24.65 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 6.341e-06/4.135, allocations: 0 / 1.492 GB, free: 24.65 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.02746/4.163, allocations: 8.692 MB / 1.501 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.798e-05/4.163, allocations: 364.1 kB / 1.501 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002434/4.165, allocations: 1.4 MB / 1.502 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004992/4.166, allocations: 61.7 kB / 1.502 GB, free: 13.94 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006107/4.166, allocations: 0.8 MB / 1.503 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007317/4.167, allocations: 0.6241 MB / 1.504 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000222/4.167, allocations: 44 kB / 1.504 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001351/4.168, allocations: 386.8 kB / 1.504 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002051/4.17, allocations: 0.9996 MB / 1.505 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002446/4.172, allocations: 1.428 MB / 1.507 GB, free: 9.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002594/4.175, allocations: 1.276 MB / 1.508 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/4.175, allocations: 4 kB / 1.508 GB, free: 8.207 MB / 0.5261 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.006432/4.181, allocations: 2.932 MB / 1.511 GB, free: 5.242 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007366/4.182, allocations: 3.648 MB / 1.514 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/4.182, allocations: 12 kB / 1.514 GB, free: 1.297 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005606/4.183, allocations: 183.3 kB / 1.514 GB, free: 1.105 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003299/4.186, allocations: 0.5461 MB / 1.515 GB, free: 0.5586 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002069/4.188, allocations: 2.323 MB / 1.517 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003376/4.191, allocations: 219.7 kB / 1.517 GB, free: 13.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007683/4.192, allocations: 188 kB / 1.518 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/4.192, allocations: 8 kB / 1.518 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007455/4.2, allocations: 2.775 MB / 1.52 GB, free: 10.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.031e-05/4.2, allocations: 12.03 kB / 1.52 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005923/4.2, allocations: 187.3 kB / 1.521 GB, free: 10.72 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003449/4.204, allocations: 0.5422 MB / 1.521 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/4.206, allocations: 2.319 MB / 1.523 GB, free: 7.754 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002625/4.209, allocations: 203.9 kB / 1.524 GB, free: 7.555 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006492/4.209, allocations: 188 kB / 1.524 GB, free: 7.371 MB / 0.5417 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.0009246/4.21, allocations: 299.4 kB / 1.524 GB, free: 7.062 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000711/4.211, allocations: 217.4 kB / 1.524 GB, free: 6.848 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01294/4.224, allocations: 4.6 MB / 1.529 GB, free: 2.207 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.281e-05/4.224, allocations: 23.98 kB / 1.529 GB, free: 2.184 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/4.224, allocations: 3.953 kB / 1.529 GB, free: 2.18 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006525/4.231, allocations: 2.728 MB / 1.531 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01864/4.249, allocations: 6.977 MB / 1.538 GB, free: 8.074 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/4.25, allocations: 4 kB / 1.538 GB, free: 8.07 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002782/4.252, allocations: 435.4 kB / 1.539 GB, free: 7.645 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006829/4.253, allocations: 195.5 kB / 1.539 GB, free: 7.441 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004485/4.253, allocations: 104 kB / 1.539 GB, free: 7.34 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00306/4.257, allocations: 3.058 MB / 1.542 GB, free: 4.074 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.161e-05/4.257, allocations: 8 kB / 1.542 GB, free: 4.066 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3626/4.619, allocations: 4.723 MB / 1.547 GB, free: 78.27 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/4.621, allocations: 0.5386 MB / 1.547 GB, free: 78.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008025/4.622, allocations: 56.08 kB / 1.547 GB, free: 78.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002408/4.625, allocations: 136.7 kB / 1.547 GB, free: 78.17 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004434/4.625, allocations: 174.4 kB / 1.547 GB, free: 78.17 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004405/4.625, allocations: 160.8 kB / 1.548 GB, free: 78.17 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002294/4.628, allocations: 1.089 MB / 1.549 GB, free: 78.01 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.34e-07/4.628, allocations: 2.562 kB / 1.549 GB, free: 78.01 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007021/4.635, allocations: 1.795 MB / 1.55 GB, free: 78.01 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.00537/4.64, allocations: 2.173 MB / 1.553 GB, free: 77.78 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.009328/4.65, allocations: 4.197 MB / 1.557 GB, free: 77.5 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/4.65, allocations: 3.281 kB / 1.557 GB, free: 77.5 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002947/4.653, allocations: 1.476 MB / 1.558 GB, free: 77.27 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005889/4.659, allocations: 0.9782 MB / 1.559 GB, free: 77.24 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009406/4.668, allocations: 4.139 MB / 1.563 GB, free: 76.25 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001514/4.67, allocations: 1.702 MB / 1.565 GB, free: 75.52 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002569/4.672, allocations: 443.6 kB / 1.565 GB, free: 75.51 MB / 0.5573 GB Notification: Performance of SimCode: time 1.861e-06/4.672, allocations: 0 / 1.565 GB, free: 75.51 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)).