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 2.059/2.059, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.141e-05/4.152e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.619/7.725, allocations: 2.545 GB / 2.86 GB, free: 10.83 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/7.726, allocations: 78.27 kB / 2.86 GB, free: 10.79 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.34/12.07, allocations: 0.7755 GB / 3.635 GB, free: 26.19 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.044e-06/12.07, allocations: 0 / 3.635 GB, free: 26.19 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003525/12.07, allocations: 71.56 kB / 3.635 GB, free: 26.17 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.02043/12.09, allocations: 3.833 MB / 3.639 GB, free: 24.27 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/12.09, allocations: 12.44 kB / 3.639 GB, free: 24.27 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00153/12.09, allocations: 286.6 kB / 3.639 GB, free: 24.22 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00892/12.1, allocations: 0.8158 MB / 3.64 GB, free: 24.08 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008755/12.11, allocations: 2.079 MB / 3.642 GB, free: 23.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003793/12.11, allocations: 175 kB / 3.642 GB, free: 23.61 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001233/12.11, allocations: 201 kB / 3.642 GB, free: 23.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01325/12.12, allocations: 3.683 MB / 3.646 GB, free: 23.06 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.153e-05/12.12, allocations: 8.594 kB / 3.646 GB, free: 23.06 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005565/12.12, allocations: 87.16 kB / 3.646 GB, free: 23.06 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003245/12.12, allocations: 169.3 kB / 3.646 GB, free: 23.06 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01209/12.13, allocations: 3.409 MB / 3.65 GB, free: 23.04 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.03116/12.17, allocations: 14.74 MB / 3.664 GB, free: 14.45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007144/12.17, allocations: 2.128 MB / 3.666 GB, free: 14.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002617/12.18, allocations: 1.044 MB / 3.667 GB, free: 14.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05929/12.23, allocations: 18.91 MB / 3.685 GB, free: 18.3 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006063/12.24, allocations: 1.675 MB / 3.687 GB, free: 18.17 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00199/12.24, allocations: 181.6 kB / 3.687 GB, free: 18.09 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 9.187e-06/12.24, allocations: 0 / 3.687 GB, free: 18.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.03083/12.27, allocations: 7.346 MB / 3.694 GB, free: 17.07 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002641/12.27, allocations: 417.4 kB / 3.695 GB, free: 16.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003394/12.28, allocations: 1.49 MB / 3.696 GB, free: 16.41 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006334/12.28, allocations: 58.14 kB / 3.696 GB, free: 16.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001047/12.28, allocations: 0.9223 MB / 3.697 GB, free: 15.93 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001027/12.28, allocations: 0.576 MB / 3.698 GB, free: 15.56 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002795/12.28, allocations: 44.25 kB / 3.698 GB, free: 15.56 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002385/12.28, allocations: 389.8 kB / 3.698 GB, free: 15.25 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002916/12.28, allocations: 1.045 MB / 3.699 GB, free: 15.24 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003401/12.29, allocations: 1.521 MB / 3.701 GB, free: 14.34 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003708/12.29, allocations: 1.31 MB / 3.702 GB, free: 13.82 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-05/12.29, allocations: 7.969 kB / 3.702 GB, free: 13.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.009327/12.3, allocations: 3.204 MB / 3.705 GB, free: 12.62 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001895/12.3, allocations: 4.43 MB / 3.71 GB, free: 7.879 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.703e-05/12.3, allocations: 17.31 kB / 3.71 GB, free: 7.879 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008505/12.31, allocations: 0.9537 MB / 3.71 GB, free: 7.707 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004098/12.31, allocations: 477.6 kB / 3.711 GB, free: 7.656 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004389/12.32, allocations: 3.165 MB / 3.714 GB, free: 5.172 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004234/12.32, allocations: 231.2 kB / 3.714 GB, free: 5.117 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007937/12.32, allocations: 107 kB / 3.714 GB, free: 5.098 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/12.32, allocations: 3.75 kB / 3.714 GB, free: 5.098 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009335/12.33, allocations: 3 MB / 3.717 GB, free: 2.988 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.07e-05/12.33, allocations: 19.95 kB / 3.717 GB, free: 2.969 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001971/12.34, allocations: 339 kB / 3.718 GB, free: 2.695 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004181/12.34, allocations: 496.5 kB / 3.718 GB, free: 2.285 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006126/12.35, allocations: 4.044 MB / 3.722 GB, free: 14.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0034/12.35, allocations: 233 kB / 3.722 GB, free: 14.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005838/12.35, allocations: 103.4 kB / 3.722 GB, free: 14.02 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.000964/12.35, allocations: 303.4 kB / 3.723 GB, free: 13.71 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007799/12.35, allocations: 213.4 kB / 3.723 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0185/12.37, allocations: 7.749 MB / 3.73 GB, free: 6.566 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001217/12.37, allocations: 84.77 kB / 3.73 GB, free: 6.516 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/12.37, allocations: 0 / 3.73 GB, free: 6.516 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0146/12.39, allocations: 6.794 MB / 3.737 GB, free: 176 kB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4203/12.81, allocations: 10.77 MB / 3.748 GB, free: 55.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.834e-05/12.81, allocations: 2.5 kB / 3.748 GB, free: 55.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003278/12.81, allocations: 344.4 kB / 3.748 GB, free: 55.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009379/12.82, allocations: 2.501 MB / 3.75 GB, free: 55.58 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006415/12.82, allocations: 64.22 kB / 3.75 GB, free: 55.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00519/12.82, allocations: 4.104 MB / 3.754 GB, free: 53.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/12.82, allocations: 1.312 kB / 3.754 GB, free: 53.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01683/12.84, allocations: 7.66 MB / 3.762 GB, free: 53.01 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002682/12.84, allocations: 0.7504 MB / 3.763 GB, free: 52.86 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/12.85, allocations: 54.97 kB / 3.763 GB, free: 52.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003504/12.85, allocations: 192.5 kB / 3.763 GB, free: 52.85 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007086/12.85, allocations: 143.5 kB / 3.763 GB, free: 52.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002614/12.85, allocations: 68.83 kB / 3.763 GB, free: 52.84 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003117/12.85, allocations: 1.237 MB / 3.764 GB, free: 52.68 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.122e-06/12.85, allocations: 2 kB / 3.764 GB, free: 52.68 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01377/12.87, allocations: 2.802 MB / 3.767 GB, free: 52.68 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.0308/12.9, allocations: 10.18 MB / 3.777 GB, free: 51.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01376/12.91, allocations: 5.169 MB / 3.782 GB, free: 50.82 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.679e-06/12.91, allocations: 3.875 kB / 3.782 GB, free: 50.82 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005592/12.92, allocations: 2.294 MB / 3.784 GB, free: 50.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008272/12.93, allocations: 0.8804 MB / 3.785 GB, free: 50.66 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3758/13.3, allocations: 126.9 MB / 3.909 GB, free: 7.828 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002457/13.3, allocations: 2.233 MB / 3.911 GB, free: 6.082 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002875/13.31, allocations: 1.323 MB / 3.913 GB, free: 4.871 MB / 490.7 MB Notification: Performance of SimCode: time 1.824e-06/13.31, allocations: 0 / 3.913 GB, free: 4.871 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.903/19.21, allocations: 130.2 MB / 4.04 GB, free: 25.86 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