Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.483/2.483, allocations: 270 MB / 282.6 MB, free: 1.809 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.105e-05/4.11e-05, allocations: 7.984 kB / 347.1 MB, free: 3.105 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3877, allocations: 61.87 MB / 408.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.879/2.267, allocations: 0.5614 GB / 0.9607 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002592/2.267, allocations: 76.36 kB / 0.9608 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.331/5.598, allocations: 0.5634 GB / 1.524 GB, free: 47.17 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.074e-06/5.598, allocations: 2.719 kB / 1.524 GB, free: 47.17 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000371/5.599, allocations: 64.61 kB / 1.524 GB, free: 47.17 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.01407/5.613, allocations: 2.949 MB / 1.527 GB, free: 46.27 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/5.613, allocations: 7.219 kB / 1.527 GB, free: 46.27 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001252/5.614, allocations: 259.5 kB / 1.527 GB, free: 46.23 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005112/5.619, allocations: 455.3 kB / 1.528 GB, free: 46.1 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009195/5.628, allocations: 1.998 MB / 1.53 GB, free: 45.75 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002735/5.629, allocations: 140.4 kB / 1.53 GB, free: 45.75 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001203/5.63, allocations: 176.4 kB / 1.53 GB, free: 45.75 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008138/5.638, allocations: 2.701 MB / 1.533 GB, free: 45.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.422e-05/5.638, allocations: 12.72 kB / 1.533 GB, free: 45.29 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004612/5.639, allocations: 76.72 kB / 1.533 GB, free: 45.29 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003154/5.639, allocations: 158.8 kB / 1.533 GB, free: 45.29 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00693/5.646, allocations: 2.253 MB / 1.535 GB, free: 45.28 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.02735/5.673, allocations: 11.6 MB / 1.547 GB, free: 39.13 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005246/5.679, allocations: 1.836 MB / 1.548 GB, free: 38.8 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003038/5.682, allocations: 1.102 MB / 1.549 GB, free: 38.79 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001484/5.683, allocations: 0.5101 MB / 1.55 GB, free: 38.32 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003796/5.687, allocations: 1.331 MB / 1.551 GB, free: 38.15 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=172): time 5.4e-06/5.687, allocations: 3.062 kB / 1.551 GB, free: 38.15 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.04649/5.734, allocations: 9.687 MB / 1.561 GB, free: 36.97 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/5.734, allocations: 361.1 kB / 1.561 GB, free: 36.56 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003231/5.737, allocations: 1.468 MB / 1.562 GB, free: 36.34 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0008543/5.738, allocations: 68.42 kB / 1.562 GB, free: 36.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009058/5.739, allocations: 0.8273 MB / 1.563 GB, free: 35.93 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001191/5.74, allocations: 0.6766 MB / 1.564 GB, free: 35.5 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003107/5.741, allocations: 44.72 kB / 1.564 GB, free: 35.5 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00018/5.741, allocations: 400 kB / 1.564 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002991/5.744, allocations: 1.048 MB / 1.565 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003869/5.748, allocations: 1.527 MB / 1.567 GB, free: 34.71 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003674/5.751, allocations: 1.328 MB / 1.568 GB, free: 34.62 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.882e-05/5.751, allocations: 4.375 kB / 1.568 GB, free: 34.62 MB / 0.5417 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.008982/5.76, allocations: 3.16 MB / 1.571 GB, free: 34.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001061/5.762, allocations: 4.171 MB / 1.575 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-05/5.762, allocations: 12.11 kB / 1.575 GB, free: 30.07 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00135/5.763, allocations: 307.2 kB / 1.576 GB, free: 30.03 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005125/5.768, allocations: 0.5645 MB / 1.576 GB, free: 30.03 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/5.771, allocations: 3.007 MB / 1.579 GB, free: 27.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005025/5.776, allocations: 225.2 kB / 1.579 GB, free: 27.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009973/5.777, allocations: 206.9 kB / 1.58 GB, free: 27.42 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/5.777, allocations: 3.625 kB / 1.58 GB, free: 27.42 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009224/5.786, allocations: 3 MB / 1.582 GB, free: 27.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.367e-05/5.786, allocations: 12.25 kB / 1.583 GB, free: 27.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/5.787, allocations: 303.5 kB / 1.583 GB, free: 27.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004931/5.792, allocations: 0.5573 MB / 1.583 GB, free: 27.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003381/5.795, allocations: 2.995 MB / 1.586 GB, free: 40.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003968/5.799, allocations: 224.3 kB / 1.586 GB, free: 40.62 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008334/5.8, allocations: 204.7 kB / 1.587 GB, free: 40.62 MB / 0.5573 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.001096/5.801, allocations: 310.3 kB / 1.587 GB, free: 40.45 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008529/5.802, allocations: 227.8 kB / 1.587 GB, free: 40.34 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01559/5.818, allocations: 4.784 MB / 1.592 GB, free: 40.04 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.52e-05/5.818, allocations: 24.84 kB / 1.592 GB, free: 40.04 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/5.818, allocations: 0.625 kB / 1.592 GB, free: 40.04 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007961/5.826, allocations: 2.99 MB / 1.595 GB, free: 39.45 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0223/5.848, allocations: 7.219 MB / 1.602 GB, free: 38.03 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/5.848, allocations: 5.812 kB / 1.602 GB, free: 38.03 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004146/5.853, allocations: 464.1 kB / 1.602 GB, free: 38.03 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/5.854, allocations: 317.9 kB / 1.603 GB, free: 37.99 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007349/5.855, allocations: 113.8 kB / 1.603 GB, free: 37.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003851/5.859, allocations: 3.744 MB / 1.606 GB, free: 34.67 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.698e-06/5.859, allocations: 10.75 kB / 1.606 GB, free: 34.67 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/5.871, allocations: 5.052 MB / 1.611 GB, free: 33.34 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002465/5.874, allocations: 0.5602 MB / 1.612 GB, free: 33.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001204/5.875, allocations: 63.11 kB / 1.612 GB, free: 33.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003386/5.879, allocations: 139.6 kB / 1.612 GB, free: 33.12 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004829/5.879, allocations: 192.5 kB / 1.612 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004446/5.88, allocations: 195.1 kB / 1.612 GB, free: 33.11 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002253/5.882, allocations: 1.117 MB / 1.614 GB, free: 32.95 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.91e-07/5.882, allocations: 1.312 kB / 1.614 GB, free: 32.95 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.008798/5.891, allocations: 1.898 MB / 1.615 GB, free: 32.75 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.01935/5.91, allocations: 9.407 MB / 1.625 GB, free: 28.95 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0141/5.924, allocations: 4.466 MB / 1.629 GB, free: 28.66 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/5.924, allocations: 5.969 kB / 1.629 GB, free: 28.66 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003981/5.928, allocations: 1.607 MB / 1.63 GB, free: 28.43 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009838/5.938, allocations: 1.125 MB / 1.632 GB, free: 28.41 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01767/5.956, allocations: 5.28 MB / 1.637 GB, free: 27.1 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001699/5.958, allocations: 1.745 MB / 1.638 GB, free: 26.36 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004196/5.962, allocations: 1.184 MB / 1.64 GB, free: 26.35 MB / 0.5573 GB Notification: Performance of SimCode: time 1.362e-06/5.962, allocations: 0 / 1.64 GB, free: 26.35 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)).