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.006/2.006, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.625e-05/2.654e-05, allocations: 0 / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.695/7.802, allocations: 2.545 GB / 2.854 GB, free: 41.99 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/7.803, allocations: 74.53 kB / 2.854 GB, free: 41.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.25/12.05, allocations: 0.769 GB / 3.623 GB, free: 25.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.964e-06/12.05, allocations: 0 / 3.623 GB, free: 25.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003387/12.05, allocations: 67.41 kB / 3.623 GB, free: 25.12 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.0196/12.07, allocations: 3.832 MB / 3.627 GB, free: 23.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/12.07, allocations: 11.16 kB / 3.627 GB, free: 23.23 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00849/12.08, allocations: 0.8109 MB / 3.627 GB, free: 23.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008403/12.09, allocations: 2.075 MB / 3.629 GB, free: 22.63 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002176/12.09, allocations: 90.19 kB / 3.63 GB, free: 22.63 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008335/12.09, allocations: 117.8 kB / 3.63 GB, free: 22.63 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008083/12.1, allocations: 2.87 MB / 3.632 GB, free: 22.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/12.11, allocations: 2.863 MB / 3.635 GB, free: 22.07 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001522/12.11, allocations: 7.281 kB / 3.635 GB, free: 22.07 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008017/12.11, allocations: 6.531 kB / 3.635 GB, free: 22.07 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004313/12.11, allocations: 165.1 kB / 3.635 GB, free: 22.07 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.5103/12.62, allocations: 108.8 MB / 3.742 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005746/12.63, allocations: 1.587 MB / 3.743 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003328/12.63, allocations: 0.9644 MB / 3.744 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.458/13.09, allocations: 17.76 MB / 3.762 GB, free: 67.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003549/13.09, allocations: 1.21 MB / 3.763 GB, free: 67.59 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001693/13.1, allocations: 162 kB / 3.763 GB, free: 67.59 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 6.061e-06/13.1, allocations: 2.312 kB / 3.763 GB, free: 67.59 MB / 0.4948 GB Notification: Performance of matching and sorting (n=160): time 0.03362/13.13, allocations: 7.922 MB / 3.771 GB, free: 66.08 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/13.13, allocations: 0.5063 MB / 3.771 GB, free: 65.48 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002682/13.13, allocations: 1.194 MB / 3.772 GB, free: 65.31 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005302/13.13, allocations: 29.73 kB / 3.772 GB, free: 65.28 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001003/13.13, allocations: 0.9905 MB / 3.773 GB, free: 64.87 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008476/13.13, allocations: 0.5272 MB / 3.774 GB, free: 64.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002093/13.13, allocations: 1.281 kB / 3.774 GB, free: 64.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001646/13.13, allocations: 390.7 kB / 3.774 GB, free: 64.29 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002566/13.14, allocations: 1.033 MB / 3.775 GB, free: 64.28 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003228/13.14, allocations: 1.486 MB / 3.777 GB, free: 63.78 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02008/13.16, allocations: 2.845 MB / 3.779 GB, free: 63.76 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.478e-05/13.16, allocations: 3.406 kB / 3.779 GB, free: 63.76 MB / 0.4948 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.02541/13.19, allocations: 4.642 MB / 3.784 GB, free: 63.61 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000978/13.19, allocations: 4.431 MB / 3.788 GB, free: 59.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-05/13.19, allocations: 13.91 kB / 3.788 GB, free: 59.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00637/13.19, allocations: 0.8066 MB / 3.789 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003904/13.2, allocations: 477.3 kB / 3.789 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004572/13.2, allocations: 3.322 MB / 3.793 GB, free: 56.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004237/13.21, allocations: 230.2 kB / 3.793 GB, free: 56.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004798/13.21, allocations: 101.5 kB / 3.793 GB, free: 56.88 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/13.21, allocations: 3.969 kB / 3.793 GB, free: 56.88 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02344/13.23, allocations: 4.231 MB / 3.797 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.44e-05/13.23, allocations: 16.7 kB / 3.797 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/13.23, allocations: 332 kB / 3.798 GB, free: 56.76 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004055/13.24, allocations: 494.9 kB / 3.798 GB, free: 56.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005146/13.24, allocations: 3.99 MB / 3.802 GB, free: 54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003453/13.25, allocations: 207 kB / 3.802 GB, free: 53.99 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005266/13.25, allocations: 102.1 kB / 3.802 GB, free: 53.99 MB / 0.4948 GB 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,pipe1.statesFM[2].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,source.medium.phase,sink.medium.phase,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.0008814/13.25, allocations: 235.3 kB / 3.802 GB, free: 53.82 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009894/13.26, allocations: 2.657 MB / 3.805 GB, free: 53.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009321/13.26, allocations: 196.3 kB / 3.805 GB, free: 53.53 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01524/13.27, allocations: 6.71 MB / 3.812 GB, free: 53.05 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.135e-05/13.27, allocations: 70.77 kB / 3.812 GB, free: 53.05 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/13.27, allocations: 0 / 3.812 GB, free: 53.05 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01134/13.28, allocations: 5.689 MB / 3.817 GB, free: 52.31 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02034/13.3, allocations: 9.04 MB / 3.826 GB, free: 51.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.563e-05/13.3, allocations: 5.469 kB / 3.826 GB, free: 51.72 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002655/13.31, allocations: 296.3 kB / 3.826 GB, free: 51.72 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006516/13.31, allocations: 2.374 MB / 3.829 GB, free: 51.63 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005541/13.31, allocations: 46.7 kB / 3.829 GB, free: 51.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005402/13.32, allocations: 4.402 MB / 3.833 GB, free: 49.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.618e-06/13.32, allocations: 4.875 kB / 3.833 GB, free: 49.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01499/13.34, allocations: 7.11 MB / 3.84 GB, free: 48.86 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002294/13.34, allocations: 0.6949 MB / 3.841 GB, free: 48.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007149/13.34, allocations: 21.91 kB / 3.841 GB, free: 48.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002925/13.34, allocations: 149.9 kB / 3.841 GB, free: 48.55 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005271/13.34, allocations: 122.2 kB / 3.841 GB, free: 48.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002494/13.34, allocations: 71.45 kB / 3.841 GB, free: 48.55 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002355/13.34, allocations: 1.078 MB / 3.842 GB, free: 48.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.31e-07/13.34, allocations: 0 / 3.842 GB, free: 48.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01395/13.36, allocations: 2.676 MB / 3.845 GB, free: 48.28 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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.03056/13.39, allocations: 10.04 MB / 3.855 GB, free: 46.69 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01255/13.4, allocations: 4.872 MB / 3.859 GB, free: 46.16 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/13.4, allocations: 3.531 kB / 3.859 GB, free: 46.16 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004882/13.41, allocations: 2.049 MB / 3.861 GB, free: 46.02 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007717/13.41, allocations: 0.7748 MB / 3.862 GB, free: 46 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02114/13.44, allocations: 6.706 MB / 3.869 GB, free: 44.55 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002431/13.44, allocations: 2.175 MB / 3.871 GB, free: 43.79 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002657/13.44, allocations: 1.237 MB / 3.872 GB, free: 43.79 MB / 0.4948 GB Notification: Performance of SimCode: time 1.403e-06/13.44, allocations: 0 / 3.872 GB, free: 43.79 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.655/19.1, allocations: 125.3 MB / 3.994 GB, free: 66.16 MB / 0.4948 GB 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