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 2.01/2.01, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.28e-05/3.298e-05, allocations: 0 / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.765/7.872, allocations: 2.546 GB / 2.86 GB, free: 11.81 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/7.872, allocations: 79.2 kB / 2.86 GB, free: 11.77 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.666/12.54, allocations: 0.8409 GB / 3.701 GB, free: 19.57 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.465e-06/12.54, allocations: 4 kB / 3.701 GB, free: 19.56 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002708/12.54, allocations: 67.89 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.01699/12.56, allocations: 3.689 MB / 3.705 GB, free: 16.81 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/12.56, allocations: 8.031 kB / 3.705 GB, free: 16.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001079/12.56, allocations: 269.9 kB / 3.705 GB, free: 16.53 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008162/12.56, allocations: 0.7504 MB / 3.706 GB, free: 15.78 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007533/12.57, allocations: 1.943 MB / 3.708 GB, free: 13.79 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002552/12.57, allocations: 159.5 kB / 3.708 GB, free: 13.63 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006405/12.57, allocations: 180 kB / 3.708 GB, free: 13.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009879/12.58, allocations: 3.268 MB / 3.711 GB, free: 10.03 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.337e-05/12.58, allocations: 7.844 kB / 3.711 GB, free: 10.02 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00037/12.58, allocations: 87.95 kB / 3.711 GB, free: 9.934 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002808/12.58, allocations: 143.3 kB / 3.711 GB, free: 9.793 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009705/12.59, allocations: 2.898 MB / 3.714 GB, free: 6.891 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.03003/12.62, allocations: 14.05 MB / 3.728 GB, free: 7.641 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007327/12.63, allocations: 1.94 MB / 3.73 GB, free: 5.699 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00261/12.63, allocations: 0.9379 MB / 3.731 GB, free: 4.762 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4588/13.09, allocations: 18.91 MB / 3.749 GB, free: 28.76 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00609/13.1, allocations: 1.547 MB / 3.751 GB, free: 28.64 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001826/13.1, allocations: 164.2 kB / 3.751 GB, free: 28.64 MB / 474.7 MB Notification: Performance of pre-optimization done (n=142): time 6.362e-06/13.1, allocations: 2.594 kB / 3.751 GB, free: 28.64 MB / 474.7 MB Notification: Performance of matching and sorting (n=154): time 0.02834/13.13, allocations: 6.758 MB / 3.757 GB, free: 27.88 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/13.13, allocations: 257.7 kB / 3.758 GB, free: 27.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003247/13.13, allocations: 1.331 MB / 3.759 GB, free: 27.42 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005424/13.13, allocations: 52.27 kB / 3.759 GB, free: 27.39 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009231/13.13, allocations: 0.8495 MB / 3.76 GB, free: 27.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009358/13.13, allocations: 0.5128 MB / 3.76 GB, free: 26.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002165/13.14, allocations: 36.03 kB / 3.76 GB, free: 26.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/13.14, allocations: 391.4 kB / 3.761 GB, free: 26.47 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002634/13.14, allocations: 0.9032 MB / 3.762 GB, free: 26.47 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003155/13.14, allocations: 1.313 MB / 3.763 GB, free: 26.04 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002834/13.14, allocations: 1.146 MB / 3.764 GB, free: 25.95 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/13.14, allocations: 3.375 kB / 3.764 GB, free: 25.95 MB / 474.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.008475/13.15, allocations: 2.834 MB / 3.767 GB, free: 25.74 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001137/13.15, allocations: 4.256 MB / 3.771 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-05/13.15, allocations: 11.38 kB / 3.771 GB, free: 21.33 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004891/13.16, allocations: 0.5897 MB / 3.772 GB, free: 21.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003678/13.16, allocations: 437.4 kB / 3.772 GB, free: 21.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002929/13.17, allocations: 2.829 MB / 3.775 GB, free: 19.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003866/13.17, allocations: 232.1 kB / 3.775 GB, free: 19.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004104/13.17, allocations: 96.31 kB / 3.775 GB, free: 19.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/13.17, allocations: 6.031 kB / 3.775 GB, free: 19.21 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006685/13.18, allocations: 2.543 MB / 3.778 GB, free: 19.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.533e-05/13.18, allocations: 14.12 kB / 3.778 GB, free: 19.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009155/13.18, allocations: 192.3 kB / 3.778 GB, free: 19.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003776/13.18, allocations: 462.1 kB / 3.778 GB, free: 19.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/13.18, allocations: 1.871 MB / 3.78 GB, free: 17.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003078/13.19, allocations: 238.6 kB / 3.78 GB, free: 17.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000289/13.19, allocations: 93.89 kB / 3.78 GB, free: 17.49 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.000766/13.19, allocations: 290.5 kB / 3.781 GB, free: 17.32 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006899/13.19, allocations: 188.2 kB / 3.781 GB, free: 17.22 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01416/13.2, allocations: 7.354 MB / 3.788 GB, free: 16.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001152/13.2, allocations: 77.62 kB / 3.788 GB, free: 16.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/13.2, allocations: 3.875 kB / 3.788 GB, free: 16.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01076/13.21, allocations: 6.449 MB / 3.794 GB, free: 15.73 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01952/13.23, allocations: 10.21 MB / 3.804 GB, free: 15.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.485e-05/13.23, allocations: 2.531 kB / 3.804 GB, free: 15.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002779/13.24, allocations: 332.8 kB / 3.805 GB, free: 15.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00498/13.24, allocations: 1.578 MB / 3.806 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005066/13.24, allocations: 57.48 kB / 3.806 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003325/13.24, allocations: 3.464 MB / 3.81 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/13.24, allocations: 8.406 kB / 3.81 GB, free: 12.91 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01386/13.26, allocations: 6.944 MB / 3.816 GB, free: 12.33 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002371/13.26, allocations: 0.699 MB / 3.817 GB, free: 12.01 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006604/13.26, allocations: 45.52 kB / 3.817 GB, free: 12.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002837/13.26, allocations: 192.7 kB / 3.817 GB, free: 12 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004259/13.26, allocations: 131.9 kB / 3.817 GB, free: 11.99 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002174/13.26, allocations: 65.22 kB / 3.817 GB, free: 11.99 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002532/13.27, allocations: 1.124 MB / 3.819 GB, free: 11.83 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.91e-07/13.27, allocations: 0 / 3.819 GB, free: 11.83 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01275/13.28, allocations: 2.676 MB / 3.821 GB, free: 11.71 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.03006/13.31, allocations: 9.733 MB / 3.831 GB, free: 10.43 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01159/13.32, allocations: 4.465 MB / 3.835 GB, free: 10.12 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/13.32, allocations: 0 / 3.835 GB, free: 10.12 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004783/13.33, allocations: 2.164 MB / 3.837 GB, free: 9.977 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008021/13.33, allocations: 0.8845 MB / 3.838 GB, free: 9.957 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8322/14.17, allocations: 127 MB / 3.962 GB, free: 64.76 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002236/14.17, allocations: 2.127 MB / 3.964 GB, free: 64.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002717/14.17, allocations: 1.222 MB / 3.965 GB, free: 64.02 MB / 0.4948 GB Notification: Performance of SimCode: time 1.283e-06/14.17, allocations: 0 / 3.965 GB, free: 64.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.039/19.21, 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