Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.922/1.922, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.006e-05/2.004e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 48.71 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.549/7.652, allocations: 2.545 GB / 2.854 GB, free: 41.39 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/7.653, allocations: 77.83 kB / 2.854 GB, free: 41.35 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.259/11.91, allocations: 0.7755 GB / 3.629 GB, free: 25.28 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.184e-06/11.91, allocations: 0 / 3.629 GB, free: 25.28 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003821/11.91, allocations: 72.3 kB / 3.629 GB, free: 25.27 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.0206/11.93, allocations: 3.828 MB / 3.633 GB, free: 23.37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/11.93, allocations: 9.906 kB / 3.633 GB, free: 23.37 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009037/11.94, allocations: 0.8087 MB / 3.634 GB, free: 23.23 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009343/11.95, allocations: 2.149 MB / 3.636 GB, free: 22.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/11.95, allocations: 96 kB / 3.636 GB, free: 22.77 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/11.95, allocations: 124.8 kB / 3.636 GB, free: 22.76 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008705/11.96, allocations: 2.859 MB / 3.639 GB, free: 22.75 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009507/11.97, allocations: 2.863 MB / 3.642 GB, free: 22.21 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.094e-05/11.97, allocations: 6.062 kB / 3.642 GB, free: 22.21 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004168/11.97, allocations: 12.17 kB / 3.642 GB, free: 22.21 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003174/11.97, allocations: 158.3 kB / 3.642 GB, free: 22.2 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.4059/12.38, allocations: 108.9 MB / 3.748 GB, free: 9.887 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003842/12.38, allocations: 1.58 MB / 3.75 GB, free: 9.059 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002144/12.38, allocations: 0.9768 MB / 3.751 GB, free: 8.543 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4267/12.81, allocations: 17.54 MB / 3.768 GB, free: 66.95 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00363/12.81, allocations: 1.209 MB / 3.769 GB, free: 66.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001881/12.82, allocations: 158.2 kB / 3.769 GB, free: 66.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 8.386e-06/12.82, allocations: 0.75 kB / 3.769 GB, free: 66.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=160): time 0.03561/12.85, allocations: 7.925 MB / 3.777 GB, free: 65.29 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001755/12.85, allocations: 0.5063 MB / 3.777 GB, free: 64.69 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003283/12.86, allocations: 1.185 MB / 3.779 GB, free: 64.52 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005975/12.86, allocations: 29.48 kB / 3.779 GB, free: 64.49 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001244/12.86, allocations: 0.997 MB / 3.78 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001111/12.86, allocations: 0.522 MB / 3.78 GB, free: 63.81 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/12.86, allocations: 1.375 kB / 3.78 GB, free: 63.81 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001841/12.86, allocations: 391.4 kB / 3.78 GB, free: 63.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002802/12.86, allocations: 1.033 MB / 3.781 GB, free: 63.49 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00339/12.87, allocations: 1.486 MB / 3.783 GB, free: 62.99 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02063/12.89, allocations: 2.847 MB / 3.786 GB, free: 62.96 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.806e-05/12.89, allocations: 3.281 kB / 3.786 GB, free: 62.96 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.02597/12.91, allocations: 4.637 MB / 3.79 GB, free: 62.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001068/12.91, allocations: 4.434 MB / 3.795 GB, free: 58.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.301e-05/12.91, allocations: 14.03 kB / 3.795 GB, free: 58.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006579/12.92, allocations: 0.8057 MB / 3.795 GB, free: 58.19 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00393/12.92, allocations: 475 kB / 3.796 GB, free: 58.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004652/12.93, allocations: 3.327 MB / 3.799 GB, free: 56.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004438/12.93, allocations: 228.7 kB / 3.799 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007058/12.93, allocations: 105.7 kB / 3.799 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/12.93, allocations: 5.25 kB / 3.799 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02474/12.96, allocations: 4.228 MB / 3.804 GB, free: 56 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.831e-05/12.96, allocations: 14.62 kB / 3.804 GB, free: 56 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001647/12.96, allocations: 335.1 kB / 3.804 GB, free: 55.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00408/12.96, allocations: 496 kB / 3.804 GB, free: 55.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005226/12.97, allocations: 3.979 MB / 3.808 GB, free: 53.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003441/12.97, allocations: 206 kB / 3.808 GB, free: 53.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005323/12.97, allocations: 104.2 kB / 3.809 GB, free: 53.2 MB / 0.4948 GB 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,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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_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.0009361/12.97, allocations: 235.4 kB / 3.809 GB, free: 53.03 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009943/12.98, allocations: 2.658 MB / 3.811 GB, free: 52.84 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009631/12.99, allocations: 196.1 kB / 3.812 GB, free: 52.74 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01531/13, allocations: 6.714 MB / 3.818 GB, free: 52.26 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.673e-05/13, allocations: 68.5 kB / 3.818 GB, free: 52.26 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/13, allocations: 3.469 kB / 3.818 GB, free: 52.26 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01168/13.01, allocations: 5.682 MB / 3.824 GB, free: 51.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02081/13.03, allocations: 9.038 MB / 3.833 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.521e-05/13.03, allocations: 0 / 3.833 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002657/13.04, allocations: 295.8 kB / 3.833 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006222/13.04, allocations: 2.375 MB / 3.835 GB, free: 50.83 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005065/13.04, allocations: 39.38 kB / 3.835 GB, free: 50.83 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0053/13.05, allocations: 4.416 MB / 3.839 GB, free: 48.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.816e-06/13.05, allocations: 0 / 3.839 GB, free: 48.71 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01591/13.06, allocations: 7.115 MB / 3.846 GB, free: 48.06 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002754/13.07, allocations: 0.6878 MB / 3.847 GB, free: 47.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001124/13.07, allocations: 21.47 kB / 3.847 GB, free: 47.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003228/13.07, allocations: 157 kB / 3.847 GB, free: 47.75 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000651/13.07, allocations: 123.8 kB / 3.847 GB, free: 47.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002538/13.07, allocations: 65.66 kB / 3.847 GB, free: 47.75 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002323/13.07, allocations: 1.077 MB / 3.848 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.81e-07/13.07, allocations: 0 / 3.848 GB, free: 47.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01293/13.09, allocations: 2.672 MB / 3.851 GB, free: 47.48 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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.02958/13.12, allocations: 10.04 MB / 3.861 GB, free: 45.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01201/13.13, allocations: 4.877 MB / 3.866 GB, free: 45.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/13.13, allocations: 0 / 3.866 GB, free: 45.38 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004805/13.13, allocations: 2.049 MB / 3.868 GB, free: 45.24 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007596/13.14, allocations: 0.7801 MB / 3.868 GB, free: 45.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01985/13.16, allocations: 6.708 MB / 3.875 GB, free: 43.78 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002329/13.16, allocations: 2.172 MB / 3.877 GB, free: 43.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002827/13.17, allocations: 1.242 MB / 3.878 GB, free: 43.02 MB / 0.4948 GB Notification: Performance of SimCode: time 1.853e-06/13.17, allocations: 0 / 3.878 GB, free: 43.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.669/18.84, allocations: 125.4 MB / 4.001 GB, free: 68.04 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat