Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.457/2.457, allocations: 270 MB / 282.6 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.045e-05/4.045e-05, allocations: 3.984 kB / 347 MB, free: 3.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3985/0.3986, allocations: 61.87 MB / 408.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.838/2.237, allocations: 0.5613 GB / 0.9607 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/2.237, allocations: 77.97 kB / 0.9607 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.615/4.852, allocations: 0.5061 GB / 1.467 GB, free: 38.15 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.793e-06/4.852, allocations: 0 / 1.467 GB, free: 38.15 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002253/4.853, allocations: 59.98 kB / 1.467 GB, free: 38.09 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.0108/4.863, allocations: 2.802 MB / 1.47 GB, free: 35.22 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/4.863, allocations: 12.03 kB / 1.47 GB, free: 35.21 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007667/4.864, allocations: 244.7 kB / 1.47 GB, free: 34.96 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00406/4.868, allocations: 452.7 kB / 1.47 GB, free: 34.51 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007731/4.876, allocations: 1.917 MB / 1.472 GB, free: 32.55 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/4.876, allocations: 139 kB / 1.472 GB, free: 32.41 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005566/4.877, allocations: 164 kB / 1.472 GB, free: 32.25 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005929/4.883, allocations: 2.583 MB / 1.475 GB, free: 29.52 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.17e-05/4.883, allocations: 7.938 kB / 1.475 GB, free: 29.51 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003552/4.883, allocations: 71.97 kB / 1.475 GB, free: 29.44 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002939/4.883, allocations: 154.9 kB / 1.475 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005466/4.889, allocations: 2.165 MB / 1.477 GB, free: 27.12 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.02199/4.911, allocations: 11.02 MB / 1.488 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004398/4.915, allocations: 1.76 MB / 1.49 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002323/4.918, allocations: 1.048 MB / 1.491 GB, free: 12.46 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0013/4.919, allocations: 0.5065 MB / 1.491 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002753/4.922, allocations: 1.276 MB / 1.493 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 4.008e-06/4.922, allocations: 0 / 1.493 GB, free: 10.54 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.03582/4.958, allocations: 8.684 MB / 1.501 GB, free: 1.727 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/4.958, allocations: 364.1 kB / 1.501 GB, free: 1.289 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002749/4.961, allocations: 1.404 MB / 1.503 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000503/4.961, allocations: 57.7 kB / 1.503 GB, free: 15.82 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001008/4.962, allocations: 0.7955 MB / 1.504 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009937/4.963, allocations: 0.6239 MB / 1.504 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002641/4.963, allocations: 40 kB / 1.504 GB, free: 14.35 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002489/4.964, allocations: 402.7 kB / 1.505 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002954/4.967, allocations: 0.9996 MB / 1.506 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003461/4.97, allocations: 1.42 MB / 1.507 GB, free: 11.37 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003512/4.974, allocations: 1.276 MB / 1.508 GB, free: 10.08 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/4.974, allocations: 4 kB / 1.508 GB, free: 10.08 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.008686/4.982, allocations: 2.924 MB / 1.511 GB, free: 7.121 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0018/4.984, allocations: 3.653 MB / 1.515 GB, free: 3.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-05/4.984, allocations: 8 kB / 1.515 GB, free: 3.172 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007861/4.985, allocations: 187.3 kB / 1.515 GB, free: 2.977 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005112/4.99, allocations: 0.5422 MB / 1.515 GB, free: 2.434 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002278/4.993, allocations: 2.323 MB / 1.518 GB, free: 8 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4267/5.419, allocations: 210.3 kB / 1.518 GB, free: 63.17 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001172/5.42, allocations: 189.3 kB / 1.518 GB, free: 63.17 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/5.421, allocations: 3.719 kB / 1.518 GB, free: 63.17 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009642/5.43, allocations: 2.781 MB / 1.521 GB, free: 63.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.733e-05/5.43, allocations: 17.03 kB / 1.521 GB, free: 63.05 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005941/5.431, allocations: 190.5 kB / 1.521 GB, free: 63.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004741/5.436, allocations: 0.5303 MB / 1.521 GB, free: 63.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/5.437, allocations: 2.327 MB / 1.524 GB, free: 60.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003563/5.441, allocations: 208.9 kB / 1.524 GB, free: 60.96 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006818/5.442, allocations: 187.6 kB / 1.524 GB, free: 60.96 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.001034/5.443, allocations: 298.1 kB / 1.524 GB, free: 60.79 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007277/5.443, allocations: 220.7 kB / 1.525 GB, free: 60.79 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01646/5.46, allocations: 4.593 MB / 1.529 GB, free: 60.53 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.24e-05/5.46, allocations: 22.06 kB / 1.529 GB, free: 60.53 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.607e-05/5.46, allocations: 3.609 kB / 1.529 GB, free: 60.53 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01005/5.47, allocations: 2.741 MB / 1.532 GB, free: 59.95 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0271/5.497, allocations: 6.969 MB / 1.539 GB, free: 58.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.452e-05/5.497, allocations: 7.031 kB / 1.539 GB, free: 58.42 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005143/5.502, allocations: 432.7 kB / 1.539 GB, free: 58.42 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009684/5.504, allocations: 191.1 kB / 1.539 GB, free: 58.39 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006984/5.504, allocations: 100.1 kB / 1.539 GB, free: 58.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/5.507, allocations: 3.068 MB / 1.542 GB, free: 55.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.176e-05/5.507, allocations: 10.44 kB / 1.542 GB, free: 55.59 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01451/5.522, allocations: 4.729 MB / 1.547 GB, free: 54.33 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002741/5.525, allocations: 0.5385 MB / 1.547 GB, free: 54.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001157/5.526, allocations: 58.08 kB / 1.547 GB, free: 54.12 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004183/5.53, allocations: 132.5 kB / 1.548 GB, free: 54.12 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006496/5.531, allocations: 174 kB / 1.548 GB, free: 54.11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000553/5.531, allocations: 161.7 kB / 1.548 GB, free: 54.11 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003247/5.534, allocations: 1.09 MB / 1.549 GB, free: 53.95 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.91e-07/5.535, allocations: 1.594 kB / 1.549 GB, free: 53.95 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01163/5.546, allocations: 1.797 MB / 1.551 GB, free: 53.95 MB / 0.5417 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.01822/5.564, allocations: 9.085 MB / 1.56 GB, free: 50.25 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01084/5.575, allocations: 4.192 MB / 1.564 GB, free: 49.96 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.658e-05/5.575, allocations: 0 / 1.564 GB, free: 49.96 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003391/5.579, allocations: 1.481 MB / 1.565 GB, free: 49.73 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008328/5.587, allocations: 0.9877 MB / 1.566 GB, free: 49.71 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/5.603, allocations: 4.989 MB / 1.571 GB, free: 48.65 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001487/5.604, allocations: 1.698 MB / 1.573 GB, free: 47.92 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004019/5.608, allocations: 1.109 MB / 1.574 GB, free: 47.91 MB / 0.5417 GB Notification: Performance of SimCode: time 1.553e-06/5.608, allocations: 0 / 1.574 GB, free: 47.91 MB / 0.5417 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)).