Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.266/2.266, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.287e-05/3.291e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3936, allocations: 54.85 MB / 359.9 MB, free: 2.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.639/8.033, allocations: 2.656 GB / 3.007 GB, free: 103.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/8.033, allocations: 75.38 kB / 3.007 GB, free: 103.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328/12.36, allocations: 0.7947 GB / 3.802 GB, free: 26.25 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.595e-06/12.36, allocations: 0 / 3.802 GB, free: 26.25 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003539/12.36, allocations: 65.52 kB / 3.802 GB, free: 26.24 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02037/12.38, allocations: 3.959 MB / 3.806 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/12.38, allocations: 9.5 kB / 3.806 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001133/12.38, allocations: 287.5 kB / 3.806 GB, free: 24.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008563/12.39, allocations: 0.845 MB / 3.807 GB, free: 24.05 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008448/12.4, allocations: 2.081 MB / 3.809 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003013/12.4, allocations: 174.5 kB / 3.809 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009479/12.4, allocations: 202.2 kB / 3.809 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0117/12.41, allocations: 3.68 MB / 3.813 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.87e-05/12.41, allocations: 3.969 kB / 3.813 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004412/12.41, allocations: 89.73 kB / 3.813 GB, free: 22.96 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003182/12.41, allocations: 172.7 kB / 3.813 GB, free: 22.95 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01185/12.43, allocations: 3.393 MB / 3.817 GB, free: 22.92 MB / 0.4948 GB 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.03143/12.46, allocations: 14.75 MB / 3.831 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006975/12.46, allocations: 2.11 MB / 3.833 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002699/12.47, allocations: 1.062 MB / 3.834 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05964/12.53, allocations: 18.95 MB / 3.853 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005979/12.53, allocations: 1.67 MB / 3.854 GB, free: 14.28 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001982/12.53, allocations: 194.3 kB / 3.854 GB, free: 14.17 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 1.142e-05/12.53, allocations: 4 kB / 3.854 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.03115/12.57, allocations: 7.323 MB / 3.862 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002535/12.57, allocations: 414.6 kB / 3.862 GB, free: 8.438 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003775/12.57, allocations: 1.494 MB / 3.863 GB, free: 7.102 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006781/12.57, allocations: 57.7 kB / 3.864 GB, free: 7.039 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001434/12.57, allocations: 0.9249 MB / 3.864 GB, free: 6.168 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001288/12.57, allocations: 0.5893 MB / 3.865 GB, free: 5.637 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003205/12.57, allocations: 40 kB / 3.865 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002799/12.57, allocations: 392.1 kB / 3.865 GB, free: 5.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003364/12.58, allocations: 1.059 MB / 3.866 GB, free: 4.289 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004131/12.58, allocations: 1.517 MB / 3.868 GB, free: 2.723 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004049/12.59, allocations: 1.324 MB / 3.869 GB, free: 1.586 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.37e-05/12.59, allocations: 11.89 kB / 3.869 GB, free: 1.574 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01643/12.6, allocations: 3.467 MB / 3.873 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002034/12.6, allocations: 4.433 MB / 3.877 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.851e-05/12.6, allocations: 15.66 kB / 3.877 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008867/12.61, allocations: 0.9602 MB / 3.878 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004203/12.62, allocations: 472.1 kB / 3.878 GB, free: 9.715 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004692/12.62, allocations: 3.154 MB / 3.881 GB, free: 6.672 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00433/12.63, allocations: 240.5 kB / 3.882 GB, free: 6.484 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00078/12.63, allocations: 105.6 kB / 3.882 GB, free: 6.391 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/12.63, allocations: 7.938 kB / 3.882 GB, free: 6.383 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01055/12.64, allocations: 2.938 MB / 3.885 GB, free: 3.816 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.803e-05/12.64, allocations: 15.94 kB / 3.885 GB, free: 3.805 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00208/12.64, allocations: 337.4 kB / 3.885 GB, free: 3.531 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004429/12.65, allocations: 0.4945 MB / 3.885 GB, free: 3.113 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4342/13.08, allocations: 4.024 MB / 3.889 GB, free: 55.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003501/13.08, allocations: 234.7 kB / 3.89 GB, free: 55.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007645/13.08, allocations: 103.2 kB / 3.89 GB, free: 55.12 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.0009708/13.08, allocations: 303.6 kB / 3.89 GB, free: 54.95 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008122/13.09, allocations: 211.7 kB / 3.89 GB, free: 54.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01989/13.11, allocations: 7.737 MB / 3.898 GB, free: 54.4 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001549/13.11, allocations: 83.52 kB / 3.898 GB, free: 54.4 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/13.11, allocations: 2.406 kB / 3.898 GB, free: 54.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01516/13.12, allocations: 6.781 MB / 3.904 GB, free: 53.47 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02522/13.15, allocations: 10.78 MB / 3.915 GB, free: 52.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.197e-05/13.15, allocations: 1.875 kB / 3.915 GB, free: 52.81 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00305/13.15, allocations: 339.2 kB / 3.915 GB, free: 52.81 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008247/13.16, allocations: 2.503 MB / 3.918 GB, free: 52.73 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006136/13.16, allocations: 66.41 kB / 3.918 GB, free: 52.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00458/13.16, allocations: 4.097 MB / 3.922 GB, free: 50.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/13.16, allocations: 3.953 kB / 3.922 GB, free: 50.65 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01569/13.18, allocations: 7.681 MB / 3.929 GB, free: 49.99 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00265/13.18, allocations: 0.7565 MB / 3.93 GB, free: 49.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009587/13.18, allocations: 56.17 kB / 3.93 GB, free: 49.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003567/13.19, allocations: 193 kB / 3.93 GB, free: 49.71 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006606/13.19, allocations: 140.1 kB / 3.93 GB, free: 49.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002786/13.19, allocations: 76.56 kB / 3.931 GB, free: 49.71 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002903/13.19, allocations: 1.236 MB / 3.932 GB, free: 49.55 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.42e-07/13.19, allocations: 0 / 3.932 GB, free: 49.55 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01447/13.2, allocations: 2.826 MB / 3.934 GB, free: 49.54 MB / 0.5261 GB 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: 55 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,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.03034/13.23, allocations: 10.24 MB / 3.944 GB, free: 48.15 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01416/13.25, allocations: 5.241 MB / 3.95 GB, free: 47.61 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/13.25, allocations: 0 / 3.95 GB, free: 47.61 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005979/13.26, allocations: 2.343 MB / 3.952 GB, free: 47.46 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008191/13.26, allocations: 0.8912 MB / 3.953 GB, free: 47.44 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3683/13.63, allocations: 129.1 MB / 4.079 GB, free: 1.844 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002747/13.63, allocations: 2.248 MB / 4.081 GB, free: 88 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003598/13.64, allocations: 1.315 MB / 4.082 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of SimCode: time 2.284e-06/13.64, allocations: 0 / 4.082 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.711/19.35, allocations: 130.8 MB / 4.21 GB, free: 48.85 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat