Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.375/2.375, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.053e-05/4.058e-05, allocations: 7.984 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4063/0.4064, allocations: 54.86 MB / 359.9 MB, free: 2.695 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.68/8.087, allocations: 2.656 GB / 3.008 GB, free: 104.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/8.087, allocations: 76.25 kB / 3.008 GB, free: 104 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.403/12.49, allocations: 0.8625 GB / 3.87 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.783e-06/12.49, allocations: 0 / 3.87 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002865/12.49, allocations: 63.45 kB / 3.87 GB, free: 13.52 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01849/12.51, allocations: 3.82 MB / 3.874 GB, free: 9.664 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.995e-05/12.51, allocations: 12.03 kB / 3.874 GB, free: 9.652 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001155/12.51, allocations: 273.5 kB / 3.874 GB, free: 9.383 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008505/12.52, allocations: 0.7926 MB / 3.875 GB, free: 8.59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008285/12.53, allocations: 1.934 MB / 3.877 GB, free: 6.633 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003058/12.53, allocations: 168.8 kB / 3.877 GB, free: 6.477 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008334/12.53, allocations: 181.4 kB / 3.877 GB, free: 6.309 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/12.54, allocations: 3.25 MB / 3.881 GB, free: 2.93 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-05/12.54, allocations: 7.938 kB / 3.881 GB, free: 2.922 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003912/12.54, allocations: 81.22 kB / 3.881 GB, free: 2.852 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003631/12.54, allocations: 147.3 kB / 3.881 GB, free: 2.707 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4171/12.96, allocations: 2.872 MB / 3.884 GB, free: 31.39 MB / 0.5105 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.03018/12.99, allocations: 14.05 MB / 3.897 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006955/12.99, allocations: 1.94 MB / 3.899 GB, free: 23.02 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002541/13, allocations: 0.9576 MB / 3.9 GB, free: 23.01 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06101/13.06, allocations: 18.95 MB / 3.919 GB, free: 27.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005372/13.06, allocations: 1.552 MB / 3.92 GB, free: 27.08 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001799/13.07, allocations: 162.6 kB / 3.92 GB, free: 27.04 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=146): time 5.62e-06/13.07, allocations: 0 / 3.92 GB, free: 27.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=158): time 0.02663/13.09, allocations: 6.75 MB / 3.927 GB, free: 26.14 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002231/13.09, allocations: 251.7 kB / 3.927 GB, free: 25.85 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/13.1, allocations: 1.338 MB / 3.928 GB, free: 25.68 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006517/13.1, allocations: 52.58 kB / 3.929 GB, free: 25.65 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001114/13.1, allocations: 0.8476 MB / 3.929 GB, free: 25.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001079/13.1, allocations: 0.5273 MB / 3.93 GB, free: 25.04 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000239/13.1, allocations: 37.12 kB / 3.93 GB, free: 25.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000259/13.1, allocations: 385.8 kB / 3.93 GB, free: 24.72 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002415/13.1, allocations: 0.9178 MB / 3.931 GB, free: 24.72 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002816/13.1, allocations: 1.315 MB / 3.932 GB, free: 24.29 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002687/13.11, allocations: 1.159 MB / 3.934 GB, free: 24.21 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/13.11, allocations: 7.219 kB / 3.934 GB, free: 24.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.007785/13.12, allocations: 2.78 MB / 3.936 GB, free: 24 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.00176/13.12, allocations: 4.25 MB / 3.94 GB, free: 19.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.515e-05/13.12, allocations: 11.72 kB / 3.94 GB, free: 19.58 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004851/13.12, allocations: 0.5926 MB / 3.941 GB, free: 19.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003573/13.13, allocations: 438.2 kB / 3.941 GB, free: 19.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003299/13.13, allocations: 2.82 MB / 3.944 GB, free: 17.47 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003778/13.13, allocations: 233.9 kB / 3.944 GB, free: 17.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002995/13.13, allocations: 94.64 kB / 3.945 GB, free: 17.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/13.13, allocations: 8.5 kB / 3.945 GB, free: 17.46 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006307/13.14, allocations: 2.499 MB / 3.947 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-05/13.14, allocations: 12.3 kB / 3.947 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009185/13.14, allocations: 194.3 kB / 3.947 GB, free: 17.31 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003356/13.14, allocations: 459.2 kB / 3.948 GB, free: 17.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/13.15, allocations: 1.871 MB / 3.949 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002808/13.15, allocations: 237.7 kB / 3.95 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002524/13.15, allocations: 94.78 kB / 3.95 GB, free: 15.75 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.0007424/13.15, allocations: 294.7 kB / 3.95 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005769/13.15, allocations: 193.7 kB / 3.95 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01463/13.16, allocations: 7.335 MB / 3.957 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001443/13.16, allocations: 83.7 kB / 3.957 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/13.16, allocations: 4.531 kB / 3.957 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01635/13.18, allocations: 6.42 MB / 3.964 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02767/13.21, allocations: 10.2 MB / 3.974 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.448e-05/13.21, allocations: 6.219 kB / 3.974 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004051/13.21, allocations: 329.3 kB / 3.974 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006667/13.22, allocations: 1.594 MB / 3.976 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004913/13.22, allocations: 61.02 kB / 3.976 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003688/13.22, allocations: 3.46 MB / 3.979 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/13.22, allocations: 0 / 3.979 GB, free: 11.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/13.24, allocations: 6.938 MB / 3.986 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002056/13.24, allocations: 0.7147 MB / 3.986 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005144/13.24, allocations: 48.12 kB / 3.987 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002456/13.24, allocations: 187.2 kB / 3.987 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003501/13.24, allocations: 130.6 kB / 3.987 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/13.24, allocations: 71.33 kB / 3.987 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002315/13.24, allocations: 1.127 MB / 3.988 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.61e-07/13.24, allocations: 0 / 3.988 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01435/13.26, allocations: 2.7 MB / 3.991 GB, free: 9.906 MB / 0.5261 GB 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: 55 ($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,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 (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.03503/13.29, allocations: 9.785 MB / 4 GB, free: 24.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0147/13.31, allocations: 4.533 MB / 4.005 GB, free: 24.29 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/13.31, allocations: 5.812 kB / 4.005 GB, free: 24.29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005903/13.31, allocations: 2.214 MB / 4.007 GB, free: 24.15 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009923/13.32, allocations: 0.8972 MB / 4.008 GB, free: 24.13 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7993/14.12, allocations: 128.6 MB / 4.133 GB, free: 75.74 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002088/14.13, allocations: 2.139 MB / 4.135 GB, free: 75 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002628/14.13, allocations: 1.23 MB / 4.137 GB, free: 75 MB / 0.5573 GB Notification: Performance of SimCode: time 2.124e-06/14.13, allocations: 0 / 4.137 GB, free: 75 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.013/19.14, allocations: 124 MB / 4.258 GB, free: 45 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat