Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.945/1.945, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.475e-05/3.481e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.464/7.569, allocations: 2.545 GB / 2.86 GB, free: 12.31 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/7.57, allocations: 73.66 kB / 2.86 GB, free: 12.27 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.331/11.9, allocations: 0.7755 GB / 3.635 GB, free: 26.47 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.615e-06/11.9, allocations: 0 / 3.635 GB, free: 26.47 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003252/11.9, allocations: 69.45 kB / 3.635 GB, free: 26.46 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01949/11.92, allocations: 3.834 MB / 3.639 GB, free: 24.55 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/11.92, allocations: 10.25 kB / 3.639 GB, free: 24.55 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00112/11.92, allocations: 290.5 kB / 3.639 GB, free: 24.51 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008309/11.93, allocations: 0.8122 MB / 3.64 GB, free: 24.37 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00788/11.94, allocations: 2.076 MB / 3.642 GB, free: 23.91 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002705/11.94, allocations: 173.5 kB / 3.642 GB, free: 23.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000907/11.94, allocations: 194.9 kB / 3.642 GB, free: 23.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01167/11.95, allocations: 3.665 MB / 3.646 GB, free: 23.36 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.134e-05/11.95, allocations: 12.5 kB / 3.646 GB, free: 23.36 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000421/11.95, allocations: 87.48 kB / 3.646 GB, free: 23.36 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002987/11.95, allocations: 161 kB / 3.646 GB, free: 23.35 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01081/11.96, allocations: 3.381 MB / 3.65 GB, free: 23.34 MB / 458.7 MB 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/11.99, allocations: 14.74 MB / 3.664 GB, free: 14.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006356/12, allocations: 2.116 MB / 3.666 GB, free: 14.71 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002259/12, allocations: 1.043 MB / 3.667 GB, free: 14.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05882/12.06, allocations: 18.91 MB / 3.685 GB, free: 18.68 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005449/12.06, allocations: 1.657 MB / 3.687 GB, free: 18.55 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001757/12.06, allocations: 194.3 kB / 3.687 GB, free: 18.46 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 4.659e-06/12.06, allocations: 0 / 3.687 GB, free: 18.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.02788/12.09, allocations: 7.349 MB / 3.694 GB, free: 17.44 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000253/12.09, allocations: 408.9 kB / 3.695 GB, free: 16.96 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003178/12.1, allocations: 1.491 MB / 3.696 GB, free: 16.77 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006044/12.1, allocations: 64.05 kB / 3.696 GB, free: 16.74 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009246/12.1, allocations: 0.9288 MB / 3.697 GB, free: 16.29 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009045/12.1, allocations: 0.5703 MB / 3.698 GB, free: 15.93 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/12.1, allocations: 41.16 kB / 3.698 GB, free: 15.93 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002272/12.1, allocations: 388.8 kB / 3.698 GB, free: 15.61 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002652/12.1, allocations: 1.051 MB / 3.699 GB, free: 15.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003189/12.1, allocations: 1.507 MB / 3.701 GB, free: 14.69 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003343/12.11, allocations: 1.312 MB / 3.702 GB, free: 14.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.725e-05/12.11, allocations: 2.438 kB / 3.702 GB, free: 14.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.008776/12.12, allocations: 3.178 MB / 3.705 GB, free: 13.02 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001706/12.12, allocations: 4.427 MB / 3.709 GB, free: 8.281 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.998e-05/12.12, allocations: 16.62 kB / 3.709 GB, free: 8.281 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008445/12.13, allocations: 0.9603 MB / 3.71 GB, free: 8.102 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003994/12.13, allocations: 468.8 kB / 3.711 GB, free: 8.059 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00431/12.14, allocations: 3.159 MB / 3.714 GB, free: 5.574 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004306/12.14, allocations: 243 kB / 3.714 GB, free: 5.512 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007702/12.14, allocations: 106 kB / 3.714 GB, free: 5.492 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/12.14, allocations: 3.344 kB / 3.714 GB, free: 5.492 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00934/12.15, allocations: 2.967 MB / 3.717 GB, free: 4.418 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.11e-05/12.15, allocations: 15.61 kB / 3.717 GB, free: 4.414 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001978/12.15, allocations: 341 kB / 3.717 GB, free: 4.156 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004221/12.16, allocations: 490.4 kB / 3.718 GB, free: 3.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005693/12.16, allocations: 4.057 MB / 3.722 GB, free: 15.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003404/12.17, allocations: 231.1 kB / 3.722 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004883/12.17, allocations: 95.92 kB / 3.722 GB, free: 15.48 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe1.state_b.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.000887/12.17, allocations: 292.3 kB / 3.723 GB, free: 15.19 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007797/12.17, allocations: 216.4 kB / 3.723 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01758/12.19, allocations: 7.761 MB / 3.73 GB, free: 8.023 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001235/12.19, allocations: 80.11 kB / 3.73 GB, free: 7.977 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/12.19, allocations: 0 / 3.73 GB, free: 7.977 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01392/12.2, allocations: 6.792 MB / 3.737 GB, free: 1.637 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4044/12.6, allocations: 10.85 MB / 3.748 GB, free: 55.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.013e-05/12.6, allocations: 1.422 kB / 3.748 GB, free: 55.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003159/12.61, allocations: 344.5 kB / 3.748 GB, free: 55.42 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009766/12.62, allocations: 2.497 MB / 3.75 GB, free: 55.33 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006366/12.62, allocations: 64.61 kB / 3.75 GB, free: 55.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005137/12.62, allocations: 4.106 MB / 3.754 GB, free: 53.26 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/12.62, allocations: 0 / 3.754 GB, free: 53.26 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01652/12.64, allocations: 7.649 MB / 3.762 GB, free: 52.78 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002531/12.64, allocations: 0.7513 MB / 3.763 GB, free: 52.68 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008572/12.64, allocations: 54.42 kB / 3.763 GB, free: 52.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003369/12.65, allocations: 202.1 kB / 3.763 GB, free: 52.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005638/12.65, allocations: 138.3 kB / 3.763 GB, free: 52.68 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002485/12.65, allocations: 68.17 kB / 3.763 GB, free: 52.68 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002814/12.65, allocations: 1.236 MB / 3.764 GB, free: 52.52 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.92e-07/12.65, allocations: 0 / 3.764 GB, free: 52.52 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01355/12.66, allocations: 2.804 MB / 3.767 GB, free: 52.52 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03027/12.69, allocations: 10.21 MB / 3.777 GB, free: 51.27 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0127/12.71, allocations: 5.106 MB / 3.782 GB, free: 50.72 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.106e-06/12.71, allocations: 3.469 kB / 3.782 GB, free: 50.72 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005409/12.71, allocations: 2.293 MB / 3.784 GB, free: 50.57 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008253/12.72, allocations: 0.8781 MB / 3.785 GB, free: 50.55 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3432/13.06, allocations: 126.9 MB / 3.909 GB, free: 9.785 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002193/13.07, allocations: 2.252 MB / 3.911 GB, free: 8.027 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002712/13.07, allocations: 1.311 MB / 3.912 GB, free: 6.824 MB / 490.7 MB Notification: Performance of SimCode: time 1.693e-06/13.07, allocations: 0 / 3.912 GB, free: 6.824 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.617/18.69, allocations: 130.2 MB / 4.04 GB, free: 26.63 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat