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.956/1.956, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.75e-05/3.757e-05, allocations: 4 kB / 273.2 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 48.69 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.51/7.62, allocations: 2.545 GB / 2.86 GB, free: 11.01 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/7.62, allocations: 69.09 kB / 2.86 GB, free: 10.98 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.487/12.11, allocations: 0.782 GB / 3.642 GB, free: 27.25 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.114e-06/12.11, allocations: 0 / 3.642 GB, free: 27.25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003705/12.11, allocations: 69.58 kB / 3.642 GB, free: 27.23 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.02418/12.13, allocations: 3.842 MB / 3.645 GB, free: 25.33 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/12.13, allocations: 10.47 kB / 3.645 GB, free: 25.33 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001308/12.13, allocations: 283.7 kB / 3.646 GB, free: 25.28 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/12.14, allocations: 0.8163 MB / 3.647 GB, free: 25.14 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/12.16, allocations: 2.156 MB / 3.649 GB, free: 24.68 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003171/12.16, allocations: 177.1 kB / 3.649 GB, free: 24.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009639/12.16, allocations: 196.9 kB / 3.649 GB, free: 24.67 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01084/12.17, allocations: 3.669 MB / 3.653 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.009e-05/12.17, allocations: 7.094 kB / 3.653 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004268/12.17, allocations: 88.31 kB / 3.653 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003083/12.17, allocations: 166 kB / 3.653 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0113/12.18, allocations: 3.373 MB / 3.656 GB, free: 24.11 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.02842/12.21, allocations: 14.74 MB / 3.671 GB, free: 15.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006243/12.21, allocations: 2.111 MB / 3.673 GB, free: 15.45 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002242/12.22, allocations: 1.045 MB / 3.674 GB, free: 15.44 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05668/12.27, allocations: 18.93 MB / 3.692 GB, free: 19.21 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005948/12.28, allocations: 1.662 MB / 3.694 GB, free: 19.08 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001798/12.28, allocations: 199 kB / 3.694 GB, free: 18.99 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 5.54e-06/12.28, allocations: 0 / 3.694 GB, free: 18.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.0285/12.31, allocations: 7.337 MB / 3.701 GB, free: 17.86 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003039/12.31, allocations: 419.4 kB / 3.701 GB, free: 17.38 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003272/12.31, allocations: 1.482 MB / 3.703 GB, free: 16.82 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006103/12.31, allocations: 61.78 kB / 3.703 GB, free: 16.77 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009445/12.32, allocations: 0.9263 MB / 3.704 GB, free: 15.99 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008714/12.32, allocations: 0.5726 MB / 3.704 GB, free: 15.55 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002271/12.32, allocations: 43.03 kB / 3.704 GB, free: 15.52 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002185/12.32, allocations: 388.7 kB / 3.705 GB, free: 15.17 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002582/12.32, allocations: 1.045 MB / 3.706 GB, free: 14.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002915/12.32, allocations: 1.508 MB / 3.707 GB, free: 13.86 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003057/12.33, allocations: 1.323 MB / 3.709 GB, free: 13.34 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/12.33, allocations: 3.125 kB / 3.709 GB, free: 13.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.008404/12.33, allocations: 3.168 MB / 3.712 GB, free: 11.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001879/12.34, allocations: 4.428 MB / 3.716 GB, free: 6.723 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.952e-05/12.34, allocations: 21.75 kB / 3.716 GB, free: 6.707 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008362/12.34, allocations: 0.954 MB / 3.717 GB, free: 6.004 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003922/12.35, allocations: 476.3 kB / 3.717 GB, free: 5.609 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00438/12.35, allocations: 3.153 MB / 3.721 GB, free: 2.566 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004157/12.36, allocations: 231.3 kB / 3.721 GB, free: 2.387 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005707/12.36, allocations: 110.3 kB / 3.721 GB, free: 2.293 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/12.36, allocations: 4 kB / 3.721 GB, free: 2.289 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009379/12.37, allocations: 2.962 MB / 3.724 GB, free: 15.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.785e-05/12.37, allocations: 19.66 kB / 3.724 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00201/12.37, allocations: 347.2 kB / 3.724 GB, free: 15.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004232/12.37, allocations: 0.4956 MB / 3.725 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005921/12.38, allocations: 4.031 MB / 3.729 GB, free: 11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003274/12.38, allocations: 239 kB / 3.729 GB, free: 10.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003441/12.38, allocations: 101.2 kB / 3.729 GB, free: 10.73 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,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,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.0008513/12.38, allocations: 299.9 kB / 3.729 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007184/12.38, allocations: 213.4 kB / 3.729 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01659/12.4, allocations: 7.76 MB / 3.737 GB, free: 3.258 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001105/12.4, allocations: 78.28 kB / 3.737 GB, free: 3.211 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/12.4, allocations: 0 / 3.737 GB, free: 3.211 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4029/12.8, allocations: 7.296 MB / 3.744 GB, free: 55.66 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02427/12.83, allocations: 10.77 MB / 3.755 GB, free: 55.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.998e-05/12.83, allocations: 1.156 kB / 3.755 GB, free: 55.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002995/12.83, allocations: 344.5 kB / 3.755 GB, free: 55.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008845/12.84, allocations: 2.497 MB / 3.757 GB, free: 54.95 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006131/12.84, allocations: 64.31 kB / 3.757 GB, free: 54.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004997/12.85, allocations: 4.111 MB / 3.761 GB, free: 52.88 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/12.85, allocations: 0.5469 kB / 3.761 GB, free: 52.88 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0146/12.86, allocations: 7.66 MB / 3.769 GB, free: 52.39 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00256/12.86, allocations: 0.7426 MB / 3.77 GB, free: 52.23 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006717/12.86, allocations: 59.08 kB / 3.77 GB, free: 52.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00273/12.87, allocations: 190.9 kB / 3.77 GB, free: 52.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004178/12.87, allocations: 135.3 kB / 3.77 GB, free: 52.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002301/12.87, allocations: 73.98 kB / 3.77 GB, free: 52.23 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002715/12.87, allocations: 1.23 MB / 3.771 GB, free: 52.07 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.62e-07/12.87, allocations: 1.781 kB / 3.771 GB, free: 52.07 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01293/12.88, allocations: 2.801 MB / 3.774 GB, free: 52.07 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,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: 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.0286/12.91, allocations: 10.21 MB / 3.784 GB, free: 50.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01196/12.92, allocations: 5.108 MB / 3.789 GB, free: 50.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/12.92, allocations: 3.75 kB / 3.789 GB, free: 50.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005082/12.93, allocations: 2.285 MB / 3.791 GB, free: 50.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007569/12.94, allocations: 0.8891 MB / 3.792 GB, free: 50.02 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3406/13.28, allocations: 126.9 MB / 3.916 GB, free: 5.898 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00227/13.28, allocations: 2.247 MB / 3.918 GB, free: 4.141 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002715/13.28, allocations: 1.317 MB / 3.919 GB, free: 2.934 MB / 490.7 MB Notification: Performance of SimCode: time 2.455e-06/13.28, allocations: 0 / 3.919 GB, free: 2.934 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.76/19.04, allocations: 130.3 MB / 4.047 GB, free: 24.6 MB / 490.7 MB 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