Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.458/2.458, allocations: 270 MB / 282.6 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.1e-05/4.121e-05, allocations: 4 kB / 347 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4024/0.4025, allocations: 61.88 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.369/8.771, allocations: 2.831 GB / 3.23 GB, free: 71.56 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/8.772, allocations: 80.12 kB / 3.23 GB, free: 71.52 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.808/13.58, allocations: 0.8772 GB / 4.107 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.355e-06/13.58, allocations: 7.938 kB / 4.107 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002709/13.58, allocations: 56.14 kB / 4.107 GB, free: 37.11 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.0172/13.6, allocations: 3.837 MB / 4.111 GB, free: 34.97 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/13.6, allocations: 11.09 kB / 4.111 GB, free: 34.96 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001243/13.6, allocations: 270.8 kB / 4.111 GB, free: 34.81 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008336/13.61, allocations: 0.7797 MB / 4.112 GB, free: 34.46 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007849/13.61, allocations: 1.935 MB / 4.114 GB, free: 32.89 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002788/13.61, allocations: 166.7 kB / 4.114 GB, free: 32.74 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009005/13.62, allocations: 181.7 kB / 4.114 GB, free: 32.57 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01129/13.63, allocations: 3.271 MB / 4.117 GB, free: 29.77 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.938e-05/13.63, allocations: 4 kB / 4.117 GB, free: 29.76 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000403/13.63, allocations: 91.7 kB / 4.118 GB, free: 29.68 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002952/13.63, allocations: 150.5 kB / 4.118 GB, free: 29.55 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009951/13.64, allocations: 2.882 MB / 4.121 GB, free: 27.1 MB / 0.5573 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.02895/13.67, allocations: 14.23 MB / 4.134 GB, free: 12.38 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006433/13.67, allocations: 1.966 MB / 4.136 GB, free: 10.41 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002273/13.68, allocations: 0.9908 MB / 4.137 GB, free: 9.422 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5428/14.22, allocations: 24.62 MB / 4.161 GB, free: 55.39 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006817/14.23, allocations: 1.582 MB / 4.163 GB, free: 55.28 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001899/14.23, allocations: 168.3 kB / 4.163 GB, free: 55.28 MB / 0.573 GB Notification: Performance of pre-optimization done (n=146): time 1.092e-05/14.23, allocations: 1.906 kB / 4.163 GB, free: 55.28 MB / 0.573 GB Notification: Performance of matching and sorting (n=158): time 0.03076/14.26, allocations: 6.915 MB / 4.17 GB, free: 54.5 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/14.26, allocations: 256.4 kB / 4.17 GB, free: 54.22 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00408/14.26, allocations: 1.397 MB / 4.171 GB, free: 54.05 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006385/14.26, allocations: 58.36 kB / 4.171 GB, free: 54.02 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001271/14.26, allocations: 0.8246 MB / 4.172 GB, free: 53.69 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001263/14.27, allocations: 0.5249 MB / 4.173 GB, free: 53.43 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003092/14.27, allocations: 40.94 kB / 4.173 GB, free: 53.43 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002302/14.27, allocations: 378.2 kB / 4.173 GB, free: 53.11 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002885/14.27, allocations: 0.9292 MB / 4.174 GB, free: 53.11 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003178/14.27, allocations: 1.295 MB / 4.175 GB, free: 52.72 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003285/14.28, allocations: 1.151 MB / 4.176 GB, free: 52.64 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.789e-05/14.28, allocations: 3.281 kB / 4.176 GB, free: 52.64 MB / 0.573 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.008962/14.28, allocations: 2.854 MB / 4.179 GB, free: 52.43 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008578/14.29, allocations: 3.733 MB / 4.183 GB, free: 48.56 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-05/14.29, allocations: 10.28 kB / 4.183 GB, free: 48.56 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004973/14.29, allocations: 0.5922 MB / 4.183 GB, free: 48.53 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003728/14.29, allocations: 437.2 kB / 4.184 GB, free: 48.53 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002992/14.3, allocations: 2.821 MB / 4.187 GB, free: 46.45 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004026/14.3, allocations: 228.9 kB / 4.187 GB, free: 46.45 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004917/14.3, allocations: 95.48 kB / 4.187 GB, free: 46.45 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/14.3, allocations: 3.969 kB / 4.187 GB, free: 46.45 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006925/14.31, allocations: 2.575 MB / 4.189 GB, free: 46.31 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-05/14.31, allocations: 12.77 kB / 4.19 GB, free: 46.31 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009123/14.31, allocations: 194.1 kB / 4.19 GB, free: 46.29 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003811/14.31, allocations: 450.4 kB / 4.19 GB, free: 46.29 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/14.32, allocations: 1.871 MB / 4.192 GB, free: 44.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003094/14.32, allocations: 236.1 kB / 4.192 GB, free: 44.72 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003207/14.32, allocations: 90.19 kB / 4.192 GB, free: 44.72 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.000761/14.32, allocations: 282.1 kB / 4.193 GB, free: 44.55 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006986/14.32, allocations: 196.9 kB / 4.193 GB, free: 44.46 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01459/14.34, allocations: 7.462 MB / 4.2 GB, free: 43.82 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001148/14.34, allocations: 81.11 kB / 4.2 GB, free: 43.82 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/14.34, allocations: 0.9375 kB / 4.2 GB, free: 43.82 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01162/14.35, allocations: 6.525 MB / 4.206 GB, free: 42.96 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/14.37, allocations: 10.39 MB / 4.217 GB, free: 42.31 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/14.37, allocations: 0 / 4.217 GB, free: 42.31 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002818/14.37, allocations: 345.9 kB / 4.217 GB, free: 42.31 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004949/14.37, allocations: 1.586 MB / 4.218 GB, free: 42.23 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004775/14.38, allocations: 55.72 kB / 4.219 GB, free: 42.23 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003189/14.38, allocations: 3.465 MB / 4.222 GB, free: 40.14 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/14.38, allocations: 0 / 4.222 GB, free: 40.14 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01331/14.39, allocations: 7.079 MB / 4.229 GB, free: 39.55 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/14.39, allocations: 0.7379 MB / 4.23 GB, free: 39.26 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008295/14.4, allocations: 50.19 kB / 4.23 GB, free: 39.26 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004273/14.4, allocations: 190.4 kB / 4.23 GB, free: 39.25 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004017/14.4, allocations: 139.3 kB / 4.23 GB, free: 39.25 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002288/14.4, allocations: 70.89 kB / 4.23 GB, free: 39.24 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002516/14.4, allocations: 1.257 MB / 4.231 GB, free: 39.08 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.61e-07/14.4, allocations: 0 / 4.231 GB, free: 39.08 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01164/14.41, allocations: 2.735 MB / 4.234 GB, free: 38.96 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,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 (166): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02585/14.44, allocations: 9.91 MB / 4.244 GB, free: 37.65 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01072/14.45, allocations: 4.551 MB / 4.248 GB, free: 37.35 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/14.45, allocations: 6.438 kB / 4.248 GB, free: 37.35 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004413/14.46, allocations: 2.221 MB / 4.25 GB, free: 37.21 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008009/14.46, allocations: 0.9669 MB / 4.251 GB, free: 37.19 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01865/14.48, allocations: 6.883 MB / 4.258 GB, free: 35.95 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001856/14.48, allocations: 2.14 MB / 4.26 GB, free: 35.21 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002483/14.49, allocations: 1.232 MB / 4.261 GB, free: 35.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.463e-06/14.49, allocations: 0.5625 kB / 4.261 GB, free: 35.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.687/20.17, allocations: 125.2 MB / 4.383 GB, free: 70.77 MB / 0.5886 GB