Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17") Notification: Performance of loadModel(ModelicaTest): time 2.378/2.378, allocations: 270 MB / 282.7 MB, free: 1.867 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.28e-05/3.29e-05, allocations: 4 kB / 347 MB, free: 3.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.327, allocations: 61.88 MB / 408.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.551/1.878, allocations: 0.5614 GB / 0.9607 GB, free: 167.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/1.879, allocations: 81.48 kB / 0.9607 GB, free: 167.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.486/4.364, allocations: 0.5634 GB / 1.524 GB, free: 8.672 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.128e-06/4.364, allocations: 0 / 1.524 GB, free: 8.672 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002928/4.365, allocations: 75.86 kB / 1.524 GB, free: 8.598 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01154/4.376, allocations: 2.94 MB / 1.527 GB, free: 5.586 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/4.376, allocations: 12.03 kB / 1.527 GB, free: 5.574 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004595/4.381, allocations: 452.7 kB / 1.528 GB, free: 5.129 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007751/4.389, allocations: 1.997 MB / 1.529 GB, free: 3.078 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002638/4.389, allocations: 135.2 kB / 1.53 GB, free: 2.945 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009056/4.39, allocations: 179.9 kB / 1.53 GB, free: 2.77 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.37/4.76, allocations: 2.703 MB / 1.532 GB, free: 43.59 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/4.76, allocations: 5.719 kB / 1.532 GB, free: 43.59 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006701/4.761, allocations: 77.67 kB / 1.533 GB, free: 43.59 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003607/4.761, allocations: 156.5 kB / 1.533 GB, free: 43.58 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007108/4.768, allocations: 2.259 MB / 1.535 GB, free: 43.57 MB / 0.5417 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.0209/4.789, allocations: 11.6 MB / 1.546 GB, free: 37.52 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004218/4.794, allocations: 1.828 MB / 1.548 GB, free: 37.21 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00242/4.796, allocations: 1.109 MB / 1.549 GB, free: 37.19 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001055/4.797, allocations: 0.5067 MB / 1.55 GB, free: 36.72 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00289/4.8, allocations: 1.341 MB / 1.551 GB, free: 36.56 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=172): time 6.285e-06/4.8, allocations: 0 / 1.551 GB, free: 36.56 MB / 0.5417 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 4: junctionVolume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=200): time 0.03431/4.834, allocations: 9.669 MB / 1.56 GB, free: 35.39 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/4.835, allocations: 367.1 kB / 1.561 GB, free: 34.98 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002844/4.837, allocations: 1.462 MB / 1.562 GB, free: 34.75 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0006148/4.838, allocations: 64.36 kB / 1.562 GB, free: 34.72 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007256/4.839, allocations: 0.836 MB / 1.563 GB, free: 34.41 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009593/4.84, allocations: 0.673 MB / 1.564 GB, free: 34.07 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002605/4.84, allocations: 45.62 kB / 1.564 GB, free: 34.07 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001556/4.84, allocations: 398.8 kB / 1.564 GB, free: 33.75 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002488/4.843, allocations: 1.056 MB / 1.565 GB, free: 33.74 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00319/4.846, allocations: 1.524 MB / 1.567 GB, free: 33.28 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003251/4.849, allocations: 1.338 MB / 1.568 GB, free: 33.19 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.876e-05/4.849, allocations: 2.781 kB / 1.568 GB, free: 33.19 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.008338/4.858, allocations: 3.153 MB / 1.571 GB, free: 32.96 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008847/4.859, allocations: 4.171 MB / 1.575 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.391e-05/4.859, allocations: 10.41 kB / 1.575 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/4.86, allocations: 299.1 kB / 1.575 GB, free: 28.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003904/4.864, allocations: 0.5697 MB / 1.576 GB, free: 28.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/4.866, allocations: 3.005 MB / 1.579 GB, free: 26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003971/4.87, allocations: 219.3 kB / 1.579 GB, free: 26 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008401/4.871, allocations: 213.2 kB / 1.579 GB, free: 26 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/4.871, allocations: 3.875 kB / 1.579 GB, free: 26 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007612/4.878, allocations: 3.008 MB / 1.582 GB, free: 25.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.599e-05/4.878, allocations: 11.53 kB / 1.582 GB, free: 25.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009487/4.879, allocations: 304.6 kB / 1.582 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003731/4.883, allocations: 0.5544 MB / 1.583 GB, free: 25.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002066/4.885, allocations: 2.997 MB / 1.586 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002872/4.888, allocations: 219.1 kB / 1.586 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005717/4.889, allocations: 205.1 kB / 1.586 GB, free: 23.21 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (261): * Single equations (assignments): 254 * 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 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00101/4.89, allocations: 299.2 kB / 1.587 GB, free: 23.04 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006803/4.891, allocations: 228.8 kB / 1.587 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0128/4.903, allocations: 4.791 MB / 1.592 GB, free: 22.64 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.439e-05/4.903, allocations: 19 kB / 1.592 GB, free: 22.64 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/4.903, allocations: 6.125 kB / 1.592 GB, free: 22.64 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006461/4.91, allocations: 2.983 MB / 1.594 GB, free: 22.05 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01842/4.928, allocations: 7.227 MB / 1.602 GB, free: 36.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.977e-05/4.928, allocations: 8.781 kB / 1.602 GB, free: 36.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002843/4.931, allocations: 468.4 kB / 1.602 GB, free: 36.64 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/4.932, allocations: 311.8 kB / 1.602 GB, free: 36.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005594/4.933, allocations: 117.2 kB / 1.602 GB, free: 36.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003703/4.937, allocations: 3.741 MB / 1.606 GB, free: 33.28 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.157e-06/4.937, allocations: 9.219 kB / 1.606 GB, free: 33.28 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01055/4.947, allocations: 5.048 MB / 1.611 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002079/4.949, allocations: 0.5591 MB / 1.612 GB, free: 31.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008964/4.95, allocations: 62.16 kB / 1.612 GB, free: 31.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003012/4.953, allocations: 144.8 kB / 1.612 GB, free: 31.74 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006411/4.954, allocations: 191.3 kB / 1.612 GB, free: 31.73 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000485/4.955, allocations: 193.5 kB / 1.612 GB, free: 31.73 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002344/4.957, allocations: 1.113 MB / 1.613 GB, free: 31.57 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.042e-06/4.957, allocations: 3.906 kB / 1.613 GB, free: 31.57 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008573/4.966, allocations: 1.904 MB / 1.615 GB, free: 31.57 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 9 (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,junctionVolume.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 (206): * Single equations (assignments): 199 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006519/4.972, allocations: 2.31 MB / 1.617 GB, free: 31.25 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01085/4.983, allocations: 4.461 MB / 1.622 GB, free: 30.96 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-05/4.983, allocations: 11.77 kB / 1.622 GB, free: 30.96 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003827/4.987, allocations: 1.608 MB / 1.623 GB, free: 30.73 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007049/4.994, allocations: 1.122 MB / 1.624 GB, free: 30.71 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/5.005, allocations: 4.387 MB / 1.629 GB, free: 29.68 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001932/5.007, allocations: 1.746 MB / 1.63 GB, free: 28.94 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003014/5.01, allocations: 467 kB / 1.631 GB, free: 28.93 MB / 0.5573 GB Notification: Performance of SimCode: time 2.75e-06/5.01, allocations: 2.812 kB / 1.631 GB, free: 28.93 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)).