Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.9/1.9, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.604e-05/3.611e-05, allocations: 7.984 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 48.69 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.608/7.709, allocations: 2.546 GB / 2.86 GB, free: 11.69 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/7.709, allocations: 72.47 kB / 2.86 GB, free: 11.66 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.656/12.37, allocations: 0.8409 GB / 3.701 GB, free: 19.56 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.054e-06/12.37, allocations: 0 / 3.701 GB, free: 19.56 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002967/12.37, allocations: 64.14 kB / 3.701 GB, free: 19.54 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01733/12.38, allocations: 3.696 MB / 3.705 GB, free: 16.66 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/12.38, allocations: 8.031 kB / 3.705 GB, free: 16.65 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001044/12.38, allocations: 265.9 kB / 3.705 GB, free: 16.38 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00817/12.39, allocations: 0.7543 MB / 3.706 GB, free: 15.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007746/12.4, allocations: 1.94 MB / 3.708 GB, free: 13.64 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002946/12.4, allocations: 163.5 kB / 3.708 GB, free: 13.48 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008696/12.4, allocations: 180 kB / 3.708 GB, free: 13.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01034/12.41, allocations: 3.242 MB / 3.711 GB, free: 9.898 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.777e-05/12.41, allocations: 11.84 kB / 3.711 GB, free: 9.887 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003743/12.41, allocations: 79.97 kB / 3.711 GB, free: 9.809 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002847/12.41, allocations: 147.3 kB / 3.711 GB, free: 9.664 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009785/12.42, allocations: 2.86 MB / 3.714 GB, free: 6.801 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.02998/12.45, allocations: 14.04 MB / 3.728 GB, free: 7.559 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006964/12.46, allocations: 1.936 MB / 3.73 GB, free: 5.625 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002574/12.46, allocations: 0.94 MB / 3.731 GB, free: 4.688 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4851/12.95, allocations: 18.91 MB / 3.749 GB, free: 28.79 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00595/12.95, allocations: 1.538 MB / 3.751 GB, free: 28.68 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001835/12.96, allocations: 167.5 kB / 3.751 GB, free: 28.68 MB / 474.7 MB Notification: Performance of pre-optimization done (n=142): time 9.358e-06/12.96, allocations: 1.406 kB / 3.751 GB, free: 28.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=154): time 0.03068/12.99, allocations: 6.752 MB / 3.757 GB, free: 27.91 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/12.99, allocations: 261.2 kB / 3.758 GB, free: 27.62 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/12.99, allocations: 1.332 MB / 3.759 GB, free: 27.45 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005412/12.99, allocations: 54.92 kB / 3.759 GB, free: 27.42 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009937/12.99, allocations: 0.8416 MB / 3.76 GB, free: 27.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001016/12.99, allocations: 0.5159 MB / 3.76 GB, free: 26.82 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/12.99, allocations: 41.75 kB / 3.76 GB, free: 26.82 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/12.99, allocations: 385.4 kB / 3.761 GB, free: 26.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002378/13, allocations: 0.9113 MB / 3.762 GB, free: 26.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/13, allocations: 1.298 MB / 3.763 GB, free: 26.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/13, allocations: 1.143 MB / 3.764 GB, free: 25.99 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.85e-05/13, allocations: 3.031 kB / 3.764 GB, free: 25.99 MB / 474.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.008805/13.01, allocations: 2.805 MB / 3.767 GB, free: 25.79 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009885/13.01, allocations: 4.253 MB / 3.771 GB, free: 21.37 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.106e-05/13.01, allocations: 11.59 kB / 3.771 GB, free: 21.37 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004965/13.02, allocations: 0.5917 MB / 3.771 GB, free: 21.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003662/13.02, allocations: 436.9 kB / 3.772 GB, free: 21.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003/13.02, allocations: 2.823 MB / 3.775 GB, free: 19.26 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004015/13.03, allocations: 239.1 kB / 3.775 GB, free: 19.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005397/13.03, allocations: 93 kB / 3.775 GB, free: 19.25 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/13.03, allocations: 3.938 kB / 3.775 GB, free: 19.25 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007079/13.03, allocations: 2.52 MB / 3.777 GB, free: 19.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.764e-05/13.03, allocations: 10.31 kB / 3.777 GB, free: 19.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009173/13.04, allocations: 195.4 kB / 3.778 GB, free: 19.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003772/13.04, allocations: 452.7 kB / 3.778 GB, free: 19.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/13.04, allocations: 1.877 MB / 3.78 GB, free: 17.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003015/13.04, allocations: 232.9 kB / 3.78 GB, free: 17.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003463/13.04, allocations: 93.3 kB / 3.78 GB, free: 17.53 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.000739/13.04, allocations: 291.5 kB / 3.78 GB, free: 17.36 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006606/13.05, allocations: 190.2 kB / 3.781 GB, free: 17.26 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01441/13.06, allocations: 7.356 MB / 3.788 GB, free: 16.64 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/13.06, allocations: 80.97 kB / 3.788 GB, free: 16.64 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/13.06, allocations: 0 / 3.788 GB, free: 16.64 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01184/13.07, allocations: 6.435 MB / 3.794 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02145/13.09, allocations: 10.22 MB / 3.804 GB, free: 15.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-05/13.09, allocations: 1.875 kB / 3.804 GB, free: 15.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00285/13.1, allocations: 334.6 kB / 3.804 GB, free: 15.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005243/13.1, allocations: 1.576 MB / 3.806 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000531/13.1, allocations: 57.11 kB / 3.806 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003476/13.11, allocations: 3.458 MB / 3.809 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/13.11, allocations: 0 / 3.809 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/13.12, allocations: 6.949 MB / 3.816 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00239/13.12, allocations: 0.7018 MB / 3.817 GB, free: 12.03 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008631/13.12, allocations: 47.06 kB / 3.817 GB, free: 12.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003477/13.13, allocations: 188.3 kB / 3.817 GB, free: 12.02 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005707/13.13, allocations: 132.2 kB / 3.817 GB, free: 12.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/13.13, allocations: 63.28 kB / 3.817 GB, free: 12.02 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00264/13.13, allocations: 1.126 MB / 3.818 GB, free: 11.86 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.32e-07/13.13, allocations: 0 / 3.818 GB, free: 11.86 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01397/13.14, allocations: 2.671 MB / 3.821 GB, free: 11.74 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,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02962/13.17, allocations: 9.763 MB / 3.831 GB, free: 10.43 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01173/13.19, allocations: 4.41 MB / 3.835 GB, free: 10.13 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/13.19, allocations: 3.172 kB / 3.835 GB, free: 10.13 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005047/13.19, allocations: 2.154 MB / 3.837 GB, free: 9.988 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008391/13.2, allocations: 0.8838 MB / 3.838 GB, free: 9.965 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8113/14.01, allocations: 127 MB / 3.962 GB, free: 64.96 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001997/14.01, allocations: 2.13 MB / 3.964 GB, free: 64.22 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002626/14.02, allocations: 1.222 MB / 3.965 GB, free: 64.22 MB / 0.4948 GB Notification: Performance of SimCode: time 1.934e-06/14.02, allocations: 0 / 3.965 GB, free: 64.22 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.155/19.17, allocations: 123.3 MB / 4.086 GB, free: 16.23 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat