Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.388/2.388, allocations: 270 MB / 282.6 MB, free: 1.91 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.178e-05/4.205e-05, allocations: 3.938 kB / 347.1 MB, free: 3.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3969, allocations: 61.87 MB / 408.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.865/2.262, allocations: 0.5613 GB / 0.9606 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/2.262, allocations: 73.98 kB / 0.9607 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.554/4.816, allocations: 0.506 GB / 1.467 GB, free: 38.32 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.015e-06/4.816, allocations: 4 kB / 1.467 GB, free: 38.32 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000273/4.816, allocations: 67.86 kB / 1.467 GB, free: 38.25 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.01139/4.828, allocations: 2.798 MB / 1.47 GB, free: 35.39 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/4.828, allocations: 8.031 kB / 1.47 GB, free: 35.38 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000986/4.829, allocations: 248.7 kB / 1.47 GB, free: 35.12 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004441/4.833, allocations: 440.8 kB / 1.47 GB, free: 34.69 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007881/4.841, allocations: 1.933 MB / 1.472 GB, free: 32.71 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/4.841, allocations: 127 kB / 1.472 GB, free: 32.59 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007217/4.842, allocations: 172 kB / 1.472 GB, free: 32.42 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006366/4.848, allocations: 2.587 MB / 1.475 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.679e-05/4.848, allocations: 4 kB / 1.475 GB, free: 29.68 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000389/4.849, allocations: 83.41 kB / 1.475 GB, free: 29.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002851/4.849, allocations: 151 kB / 1.475 GB, free: 29.45 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005813/4.855, allocations: 2.165 MB / 1.477 GB, free: 27.28 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.02344/4.878, allocations: 11.01 MB / 1.488 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004657/4.883, allocations: 1.755 MB / 1.49 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002553/4.886, allocations: 1.052 MB / 1.491 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001298/4.887, allocations: 0.5143 MB / 1.491 GB, free: 12.02 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002997/4.89, allocations: 1.276 MB / 1.492 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 4.268e-06/4.89, allocations: 4 kB / 1.493 GB, free: 10.7 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.0368/4.927, allocations: 8.676 MB / 1.501 GB, free: 1.895 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/4.927, allocations: 360.1 kB / 1.501 GB, free: 1.461 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002789/4.93, allocations: 1.403 MB / 1.503 GB, free: 64 kB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007067/4.931, allocations: 69.78 kB / 1.503 GB, free: 15.98 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001055/4.932, allocations: 0.7993 MB / 1.504 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00118/4.933, allocations: 0.6238 MB / 1.504 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002787/4.933, allocations: 40 kB / 1.504 GB, free: 14.51 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002461/4.933, allocations: 394.8 kB / 1.505 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002992/4.936, allocations: 0.9957 MB / 1.506 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003598/4.94, allocations: 1.436 MB / 1.507 GB, free: 11.52 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003761/4.944, allocations: 1.268 MB / 1.508 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.341e-05/4.944, allocations: 4 kB / 1.508 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of matching and sorting (n=260) (initialization): time 0.009247/4.953, allocations: 2.928 MB / 1.511 GB, free: 7.277 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001696/4.955, allocations: 3.648 MB / 1.515 GB, free: 3.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.932e-05/4.955, allocations: 8 kB / 1.515 GB, free: 3.332 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008035/4.956, allocations: 187.3 kB / 1.515 GB, free: 3.137 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005115/4.961, allocations: 0.5461 MB / 1.515 GB, free: 2.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/4.963, allocations: 2.315 MB / 1.518 GB, free: 176 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4551/5.418, allocations: 217.4 kB / 1.518 GB, free: 63.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001153/5.419, allocations: 187.8 kB / 1.518 GB, free: 63.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/5.42, allocations: 3.594 kB / 1.518 GB, free: 63.5 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009846/5.429, allocations: 2.786 MB / 1.521 GB, free: 63.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.81e-05/5.429, allocations: 8 kB / 1.521 GB, free: 63.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006126/5.43, allocations: 185.2 kB / 1.521 GB, free: 63.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004632/5.435, allocations: 0.5366 MB / 1.521 GB, free: 63.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/5.436, allocations: 2.321 MB / 1.524 GB, free: 61.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/5.44, allocations: 210.8 kB / 1.524 GB, free: 61.28 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005928/5.441, allocations: 190.4 kB / 1.524 GB, free: 61.28 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.001073/5.442, allocations: 292 kB / 1.524 GB, free: 61.11 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007347/5.442, allocations: 217.9 kB / 1.525 GB, free: 61.11 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01351/5.456, allocations: 4.606 MB / 1.529 GB, free: 60.86 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/5.456, allocations: 18 kB / 1.529 GB, free: 60.86 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/5.456, allocations: 3.609 kB / 1.529 GB, free: 60.86 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006781/5.463, allocations: 2.744 MB / 1.532 GB, free: 60.28 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01919/5.482, allocations: 6.963 MB / 1.539 GB, free: 58.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/5.482, allocations: 8.703 kB / 1.539 GB, free: 58.75 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00376/5.486, allocations: 436.1 kB / 1.539 GB, free: 58.75 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006928/5.487, allocations: 187.6 kB / 1.539 GB, free: 58.71 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004836/5.487, allocations: 100.1 kB / 1.539 GB, free: 58.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002088/5.489, allocations: 3.07 MB / 1.542 GB, free: 55.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.708e-06/5.489, allocations: 10.5 kB / 1.542 GB, free: 55.92 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/5.5, allocations: 4.726 MB / 1.547 GB, free: 54.67 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002052/5.502, allocations: 0.5402 MB / 1.547 GB, free: 54.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008068/5.503, allocations: 58.03 kB / 1.547 GB, free: 54.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003155/5.506, allocations: 137.3 kB / 1.548 GB, free: 54.46 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005679/5.506, allocations: 170.5 kB / 1.548 GB, free: 54.45 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004275/5.507, allocations: 167.6 kB / 1.548 GB, free: 54.45 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002439/5.509, allocations: 1.085 MB / 1.549 GB, free: 54.29 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.232e-06/5.509, allocations: 0 / 1.549 GB, free: 54.29 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008727/5.518, allocations: 1.794 MB / 1.551 GB, free: 54.29 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.01754/5.536, allocations: 9.079 MB / 1.56 GB, free: 50.58 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01227/5.548, allocations: 4.195 MB / 1.564 GB, free: 50.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.517e-05/5.548, allocations: 2.906 kB / 1.564 GB, free: 50.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003779/5.552, allocations: 1.486 MB / 1.565 GB, free: 50.07 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008624/5.56, allocations: 0.9854 MB / 1.566 GB, free: 50.04 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/5.577, allocations: 4.993 MB / 1.571 GB, free: 48.99 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/5.579, allocations: 1.699 MB / 1.573 GB, free: 48.25 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004024/5.583, allocations: 1.111 MB / 1.574 GB, free: 48.25 MB / 0.5417 GB Notification: Performance of SimCode: time 1.664e-06/5.583, allocations: 0 / 1.574 GB, free: 48.25 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)).