Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.965/1.965, allocations: 209.3 MB / 221.9 MB, free: 1.918 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.681e-05/3.685e-05, allocations: 0 / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1035, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.982/8.086, allocations: 2.545 GB / 2.859 GB, free: 12.24 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/8.086, allocations: 75.16 kB / 2.859 GB, free: 12.21 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.394/11.48, allocations: 0.5598 GB / 3.419 GB, free: 42.39 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.804e-06/11.48, allocations: 3.188 kB / 3.419 GB, free: 42.39 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002021/11.48, allocations: 38.47 kB / 3.419 GB, free: 42.38 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: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.01303/11.49, allocations: 2.782 MB / 3.422 GB, free: 40.96 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/11.49, allocations: 11.5 kB / 3.422 GB, free: 40.96 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007546/11.49, allocations: 193.6 kB / 3.422 GB, free: 40.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005834/11.5, allocations: 0.5289 MB / 3.423 GB, free: 40.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005619/11.51, allocations: 1.429 MB / 3.424 GB, free: 40.46 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/11.51, allocations: 115.6 kB / 3.424 GB, free: 40.46 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006849/11.51, allocations: 126.9 kB / 3.424 GB, free: 40.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007423/11.51, allocations: 2.24 MB / 3.426 GB, free: 40.08 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.962e-05/11.51, allocations: 6.969 kB / 3.426 GB, free: 40.08 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002745/11.51, allocations: 55.88 kB / 3.426 GB, free: 40.08 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002096/11.51, allocations: 100.8 kB / 3.426 GB, free: 40.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007081/11.52, allocations: 1.937 MB / 3.428 GB, free: 40.07 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.02037/11.54, allocations: 9.639 MB / 3.438 GB, free: 34.14 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004516/11.55, allocations: 1.307 MB / 3.439 GB, free: 34.11 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001527/11.55, allocations: 0.6014 MB / 3.44 GB, free: 34.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05831/11.61, allocations: 18.84 MB / 3.458 GB, free: 22.35 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003843/11.61, allocations: 1.024 MB / 3.459 GB, free: 22.26 MB / 458.7 MB Notification: Performance of pre-optimization done (n=94): time 5.13e-06/11.61, allocations: 1.938 kB / 3.459 GB, free: 22.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=102): time 0.01753/11.63, allocations: 4.377 MB / 3.463 GB, free: 21.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/11.63, allocations: 277.7 kB / 3.464 GB, free: 21.25 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002033/11.63, allocations: 0.9762 MB / 3.465 GB, free: 21.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000345/11.63, allocations: 47.64 kB / 3.465 GB, free: 21.05 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006034/11.63, allocations: 0.6389 MB / 3.465 GB, free: 20.71 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005002/11.63, allocations: 350.1 kB / 3.466 GB, free: 20.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00013/11.63, allocations: 27.88 kB / 3.466 GB, free: 20.49 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/11.63, allocations: 358.3 kB / 3.466 GB, free: 20.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/11.63, allocations: 0.6087 MB / 3.467 GB, free: 20.17 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001746/11.64, allocations: 0.9255 MB / 3.467 GB, free: 19.81 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/11.64, allocations: 0.7612 MB / 3.468 GB, free: 19.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/11.64, allocations: 3.312 kB / 3.468 GB, free: 19.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004736/11.64, allocations: 1.766 MB / 3.47 GB, free: 19.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008797/11.64, allocations: 3.261 MB / 3.473 GB, free: 16.26 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.812e-05/11.64, allocations: 14.52 kB / 3.473 GB, free: 16.26 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007765/11.64, allocations: 129.9 kB / 3.473 GB, free: 16.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002725/11.65, allocations: 323 kB / 3.474 GB, free: 16.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/11.65, allocations: 1.257 MB / 3.475 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003392/11.65, allocations: 160 kB / 3.475 GB, free: 15.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004692/11.65, allocations: 63.05 kB / 3.475 GB, free: 15.19 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/11.65, allocations: 5.531 kB / 3.475 GB, free: 15.19 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004895/11.66, allocations: 1.672 MB / 3.477 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.612e-05/11.66, allocations: 7.719 kB / 3.477 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006247/11.66, allocations: 136.2 kB / 3.477 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/11.66, allocations: 318.3 kB / 3.477 GB, free: 15.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009559/11.66, allocations: 1.255 MB / 3.478 GB, free: 14.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002168/11.66, allocations: 160.5 kB / 3.478 GB, free: 14.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002536/11.66, allocations: 59.27 kB / 3.478 GB, free: 14.06 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005857/11.66, allocations: 220.7 kB / 3.479 GB, free: 13.91 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004718/11.66, allocations: 145 kB / 3.479 GB, free: 13.84 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008801/11.67, allocations: 4.675 MB / 3.483 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.874e-05/11.67, allocations: 55.05 kB / 3.483 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/11.67, allocations: 0 / 3.483 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007049/11.68, allocations: 3.917 MB / 3.487 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/11.69, allocations: 6.655 MB / 3.494 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/11.69, allocations: 2.281 kB / 3.494 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002082/11.7, allocations: 238 kB / 3.494 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001007/11.7, allocations: 182.9 kB / 3.494 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002831/11.7, allocations: 36.59 kB / 3.494 GB, free: 12.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009223/11.7, allocations: 1.284 MB / 3.495 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/11.7, allocations: 2.875 kB / 3.495 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007903/11.71, allocations: 4.147 MB / 3.5 GB, free: 10.81 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002155/11.71, allocations: 0.5211 MB / 3.5 GB, free: 26.55 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005343/11.71, allocations: 40.28 kB / 3.5 GB, free: 26.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00203/11.71, allocations: 118.2 kB / 3.5 GB, free: 26.54 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003255/11.71, allocations: 88.14 kB / 3.5 GB, free: 26.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/11.71, allocations: 40.39 kB / 3.5 GB, free: 26.54 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00183/11.71, allocations: 0.8611 MB / 3.501 GB, free: 26.42 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.02e-07/11.71, allocations: 0 / 3.501 GB, free: 26.42 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0107/11.72, allocations: 2.168 MB / 3.503 GB, free: 26.08 MB / 474.7 MB 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 35 ($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,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02267/11.75, allocations: 6.977 MB / 3.51 GB, free: 24.27 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007622/11.75, allocations: 2.952 MB / 3.513 GB, free: 23.14 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/11.75, allocations: 0 / 3.513 GB, free: 23.14 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003174/11.76, allocations: 1.406 MB / 3.514 GB, free: 22.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005319/11.76, allocations: 0.5737 MB / 3.515 GB, free: 22.39 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7754/12.54, allocations: 124.4 MB / 3.636 GB, free: 48.14 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00146/12.54, allocations: 1.704 MB / 3.638 GB, free: 47.38 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001723/12.54, allocations: 0.8461 MB / 3.639 GB, free: 47.38 MB / 474.7 MB Notification: Performance of SimCode: time 2.003e-06/12.54, allocations: 2.156 kB / 3.639 GB, free: 47.38 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.852/17.39, allocations: 77.44 MB / 3.715 GB, free: 15.42 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat