Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.937/1.937, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.483e-05/2.508e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.625/7.728, allocations: 2.562 GB / 2.871 GB, free: 22.65 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/7.728, allocations: 76.78 kB / 2.871 GB, free: 22.61 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.456/12.18, allocations: 0.8392 GB / 3.71 GB, free: 19.62 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.974e-06/12.18, allocations: 0 / 3.71 GB, free: 19.62 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002625/12.18, allocations: 63.78 kB / 3.71 GB, free: 19.57 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01635/12.2, allocations: 3.624 MB / 3.714 GB, free: 15.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/12.2, allocations: 16.02 kB / 3.714 GB, free: 15.88 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008042/12.21, allocations: 0.7588 MB / 3.715 GB, free: 15.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007439/12.22, allocations: 1.96 MB / 3.717 GB, free: 13.14 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/12.22, allocations: 80.33 kB / 3.717 GB, free: 13.07 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006721/12.22, allocations: 112 kB / 3.717 GB, free: 12.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005854/12.22, allocations: 2.283 MB / 3.719 GB, free: 10.67 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005941/12.23, allocations: 2.522 MB / 3.722 GB, free: 7.984 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.68e-05/12.23, allocations: 3.938 kB / 3.722 GB, free: 7.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003043/12.23, allocations: 8 kB / 3.722 GB, free: 7.973 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002836/12.23, allocations: 151.2 kB / 3.722 GB, free: 7.824 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.7663/13, allocations: 108 MB / 3.827 GB, free: 10.68 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003356/13, allocations: 1.429 MB / 3.829 GB, free: 10.64 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/13, allocations: 0.9364 MB / 3.829 GB, free: 10.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05455/13.06, allocations: 17.47 MB / 3.847 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002866/13.06, allocations: 1.126 MB / 3.848 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001807/13.06, allocations: 138.9 kB / 3.848 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=141): time 6.672e-06/13.06, allocations: 0 / 3.848 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=153): time 0.05554/13.12, allocations: 8.764 MB / 3.856 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002273/13.12, allocations: 364.8 kB / 3.857 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002091/13.12, allocations: 1.016 MB / 3.858 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005189/13.12, allocations: 33.17 kB / 3.858 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000904/13.12, allocations: 0.896 MB / 3.859 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007812/13.12, allocations: 0.505 MB / 3.859 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/13.12, allocations: 0 / 3.859 GB, free: 12.15 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002071/13.12, allocations: 384.7 kB / 3.859 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00203/13.12, allocations: 0.8887 MB / 3.86 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002313/13.13, allocations: 1.311 MB / 3.862 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01389/13.14, allocations: 1.813 MB / 3.863 GB, free: 11.35 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-05/13.14, allocations: 3.594 kB / 3.863 GB, free: 11.35 MB / 0.4948 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.01984/13.16, allocations: 3.392 MB / 3.867 GB, free: 11.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001749/13.16, allocations: 4.255 MB / 3.871 GB, free: 6.723 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.22e-05/13.16, allocations: 12.28 kB / 3.871 GB, free: 6.723 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003706/13.17, allocations: 496.2 kB / 3.871 GB, free: 6.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003796/13.17, allocations: 454.9 kB / 3.872 GB, free: 6.676 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003786/13.17, allocations: 2.813 MB / 3.874 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004463/13.18, allocations: 269 kB / 3.875 GB, free: 20.56 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004158/13.18, allocations: 94.47 kB / 3.875 GB, free: 20.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/13.18, allocations: 7.188 kB / 3.875 GB, free: 20.56 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01661/13.19, allocations: 2.971 MB / 3.878 GB, free: 20.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.289e-05/13.19, allocations: 8.438 kB / 3.878 GB, free: 20.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006957/13.2, allocations: 188.8 kB / 3.878 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003577/13.2, allocations: 464.8 kB / 3.878 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/13.2, allocations: 1.893 MB / 3.88 GB, free: 18.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003437/13.2, allocations: 243.3 kB / 3.88 GB, free: 18.85 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002903/13.2, allocations: 93.89 kB / 3.881 GB, free: 18.84 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007908/13.21, allocations: 237.4 kB / 3.881 GB, free: 18.67 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01699/13.22, allocations: 2.893 MB / 3.884 GB, free: 18.47 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006239/13.22, allocations: 181.3 kB / 3.884 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02208/13.24, allocations: 6.691 MB / 3.89 GB, free: 17.86 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.373e-05/13.25, allocations: 70.78 kB / 3.89 GB, free: 17.86 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/13.25, allocations: 3.312 kB / 3.89 GB, free: 17.86 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01824/13.26, allocations: 5.83 MB / 3.896 GB, free: 17.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03753/13.3, allocations: 9.904 MB / 3.906 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-05/13.3, allocations: 5.875 kB / 3.906 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003516/13.3, allocations: 313.9 kB / 3.906 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004785/13.31, allocations: 1.27 MB / 3.907 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005139/13.31, allocations: 40.41 kB / 3.907 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005462/13.32, allocations: 3.398 MB / 3.911 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.768e-05/13.32, allocations: 5.594 kB / 3.911 GB, free: 10.39 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0274/13.34, allocations: 7.078 MB / 3.918 GB, free: 6.027 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/13.34, allocations: 0.6459 MB / 3.918 GB, free: 5.566 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005385/13.35, allocations: 29.73 kB / 3.918 GB, free: 5.547 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002361/13.35, allocations: 143.8 kB / 3.918 GB, free: 5.441 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003936/13.35, allocations: 140.7 kB / 3.918 GB, free: 5.371 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000214/13.35, allocations: 66.94 kB / 3.919 GB, free: 5.324 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001976/13.35, allocations: 0.952 MB / 3.919 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.31e-07/13.35, allocations: 0 / 3.919 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01176/13.36, allocations: 2.444 MB / 3.922 GB, free: 2.695 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.region3boundary,$cse32.region3boundary,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (161): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.4415/13.8, allocations: 11.9 MB / 3.934 GB, free: 85.42 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01036/13.81, allocations: 4.146 MB / 3.938 GB, free: 85.12 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/13.81, allocations: 2.938 kB / 3.938 GB, free: 85.12 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004943/13.82, allocations: 2.093 MB / 3.94 GB, free: 84.98 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007218/13.83, allocations: 0.7836 MB / 3.94 GB, free: 84.96 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01969/13.85, allocations: 6.294 MB / 3.947 GB, free: 83.79 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002027/13.85, allocations: 2.05 MB / 3.949 GB, free: 83.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002465/13.85, allocations: 1.132 MB / 3.95 GB, free: 83.04 MB / 0.5105 GB Notification: Performance of SimCode: time 1.112e-06/13.85, allocations: 0 / 3.95 GB, free: 83.04 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.931/18.78, allocations: 118 MB / 4.065 GB, free: 55.86 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat