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 2.071/2.071, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.837e-05/3.853e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1079, allocations: 48.69 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.723/7.831, allocations: 2.545 GB / 2.859 GB, free: 12.54 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/7.832, allocations: 81 kB / 2.86 GB, free: 12.49 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378/12.21, allocations: 0.782 GB / 3.642 GB, free: 27.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.275e-06/12.21, allocations: 2 kB / 3.642 GB, free: 27.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003347/12.21, allocations: 62.56 kB / 3.642 GB, free: 27.19 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.01988/12.23, allocations: 3.838 MB / 3.645 GB, free: 25.29 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/12.23, allocations: 11.19 kB / 3.645 GB, free: 25.29 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001225/12.23, allocations: 292.1 kB / 3.646 GB, free: 25.24 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008832/12.24, allocations: 0.8077 MB / 3.646 GB, free: 25.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009085/12.25, allocations: 2.152 MB / 3.649 GB, free: 24.64 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003519/12.25, allocations: 176.8 kB / 3.649 GB, free: 24.63 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001204/12.25, allocations: 198 kB / 3.649 GB, free: 24.63 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.013/12.26, allocations: 3.689 MB / 3.653 GB, free: 24.08 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.151e-05/12.26, allocations: 7.281 kB / 3.653 GB, free: 24.08 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004971/12.26, allocations: 80.53 kB / 3.653 GB, free: 24.08 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003157/12.26, allocations: 167.5 kB / 3.653 GB, free: 24.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01289/12.28, allocations: 3.417 MB / 3.656 GB, free: 24.05 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.06868/12.35, allocations: 14.75 MB / 3.671 GB, free: 15.45 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01409/12.36, allocations: 2.116 MB / 3.673 GB, free: 15.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002896/12.36, allocations: 1.039 MB / 3.674 GB, free: 15.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0659/12.43, allocations: 18.93 MB / 3.692 GB, free: 19.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005954/12.44, allocations: 1.67 MB / 3.694 GB, free: 19.07 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001786/12.44, allocations: 194.3 kB / 3.694 GB, free: 18.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 6.342e-06/12.44, allocations: 0 / 3.694 GB, free: 18.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.02943/12.47, allocations: 7.347 MB / 3.701 GB, free: 17.95 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003693/12.47, allocations: 416.2 kB / 3.701 GB, free: 17.48 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003422/12.47, allocations: 1.485 MB / 3.703 GB, free: 17.23 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006394/12.47, allocations: 60.17 kB / 3.703 GB, free: 17.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/12.47, allocations: 0.924 MB / 3.704 GB, free: 16.4 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009861/12.47, allocations: 0.5746 MB / 3.704 GB, free: 15.96 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002416/12.47, allocations: 38.72 kB / 3.704 GB, free: 15.93 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002442/12.47, allocations: 393.5 kB / 3.705 GB, free: 15.59 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002799/12.48, allocations: 1.056 MB / 3.706 GB, free: 15.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003419/12.48, allocations: 1.519 MB / 3.707 GB, free: 14.27 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003418/12.48, allocations: 1.312 MB / 3.709 GB, free: 13.74 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/12.48, allocations: 0 / 3.709 GB, free: 13.74 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.009136/12.49, allocations: 3.2 MB / 3.712 GB, free: 12.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002/12.49, allocations: 4.429 MB / 3.716 GB, free: 7.574 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.971e-05/12.49, allocations: 19.94 kB / 3.716 GB, free: 7.555 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008477/12.5, allocations: 0.9562 MB / 3.717 GB, free: 6.852 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004007/12.51, allocations: 473.9 kB / 3.718 GB, free: 6.461 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004314/12.51, allocations: 3.159 MB / 3.721 GB, free: 3.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004205/12.52, allocations: 242.9 kB / 3.721 GB, free: 3.223 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005923/12.52, allocations: 101.5 kB / 3.721 GB, free: 3.133 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/12.52, allocations: 4.625 kB / 3.721 GB, free: 3.129 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009916/12.53, allocations: 2.992 MB / 3.724 GB, free: 0.5078 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.672e-05/12.53, allocations: 19.75 kB / 3.724 GB, free: 0.4922 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002038/12.53, allocations: 345.2 kB / 3.724 GB, free: 220 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004928/12.53, allocations: 0.5194 MB / 3.725 GB, free: 15.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00632/12.54, allocations: 4.049 MB / 3.729 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003376/12.54, allocations: 238.6 kB / 3.729 GB, free: 11.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004907/12.54, allocations: 98.31 kB / 3.729 GB, free: 11.61 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.0009042/12.55, allocations: 293.2 kB / 3.729 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007437/12.55, allocations: 213.4 kB / 3.729 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01792/12.56, allocations: 7.769 MB / 3.737 GB, free: 4.137 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001185/12.56, allocations: 81 kB / 3.737 GB, free: 4.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/12.56, allocations: 7 kB / 3.737 GB, free: 4.086 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.4017/12.97, allocations: 6.963 MB / 3.744 GB, free: 55.56 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02575/12.99, allocations: 10.77 MB / 3.754 GB, free: 54.94 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.929e-05/12.99, allocations: 1.625 kB / 3.754 GB, free: 54.94 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003134/12.99, allocations: 343.7 kB / 3.755 GB, free: 54.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009394/13, allocations: 2.501 MB / 3.757 GB, free: 54.86 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007237/13, allocations: 65.14 kB / 3.757 GB, free: 54.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00535/13.01, allocations: 4.111 MB / 3.761 GB, free: 52.78 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/13.01, allocations: 0 / 3.761 GB, free: 52.78 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01624/13.03, allocations: 7.654 MB / 3.769 GB, free: 52.29 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002571/13.03, allocations: 0.7525 MB / 3.77 GB, free: 52.13 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000879/13.03, allocations: 47.48 kB / 3.77 GB, free: 52.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003264/13.03, allocations: 194 kB / 3.77 GB, free: 52.12 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004957/13.03, allocations: 141.3 kB / 3.77 GB, free: 52.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/13.03, allocations: 67.08 kB / 3.77 GB, free: 52.12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002788/13.04, allocations: 1.237 MB / 3.771 GB, free: 51.96 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.363e-06/13.04, allocations: 0 / 3.771 GB, free: 51.96 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01371/13.05, allocations: 2.801 MB / 3.774 GB, free: 51.96 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.02922/13.08, allocations: 10.19 MB / 3.784 GB, free: 50.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01219/13.09, allocations: 5.169 MB / 3.789 GB, free: 50.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/13.09, allocations: 0 / 3.789 GB, free: 50.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005145/13.1, allocations: 2.297 MB / 3.791 GB, free: 49.93 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008046/13.11, allocations: 0.8909 MB / 3.792 GB, free: 49.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3542/13.46, allocations: 126.9 MB / 3.916 GB, free: 6.039 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002091/13.46, allocations: 2.246 MB / 3.918 GB, free: 4.285 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002729/13.46, allocations: 1.309 MB / 3.919 GB, free: 3.082 MB / 490.7 MB Notification: Performance of SimCode: time 1.402e-06/13.46, allocations: 0 / 3.919 GB, free: 3.082 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.751/19.22, allocations: 130.3 MB / 4.047 GB, free: 24.46 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