Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.IncompressibleFluidNetwork_StandardWaterOnePhase,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestExamplesVariants_IncompressibleFluidNetwork_StandardWaterOnePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.941/1.941, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.722e-05/3.735e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.32/8.43, allocations: 2.673 GB / 2.987 GB, free: 43.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/8.431, allocations: 80.33 kB / 2.987 GB, free: 43.46 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 11.28/19.71, allocations: 2.054 GB / 5.041 GB, free: 25.26 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.575e-06/19.71, allocations: 0 / 5.041 GB, free: 25.26 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.00146/19.71, allocations: 221.6 kB / 5.041 GB, free: 25.2 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1894 * Number of variables: 1894 Notification: Performance of Generate backend data structure: time 0.07649/19.79, allocations: 9.509 MB / 5.05 GB, free: 20.95 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/19.79, allocations: 11.59 kB / 5.05 GB, free: 20.95 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005872/19.8, allocations: 0.9706 MB / 5.051 GB, free: 20.84 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02444/19.82, allocations: 1.927 MB / 5.053 GB, free: 20.37 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04299/19.86, allocations: 7.122 MB / 5.06 GB, free: 18.94 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001259/19.86, allocations: 0.5401 MB / 5.061 GB, free: 18.89 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005569/19.87, allocations: 0.7093 MB / 5.061 GB, free: 18.84 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05198/19.92, allocations: 12.98 MB / 5.074 GB, free: 9.203 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005483/19.92, allocations: 39.36 kB / 5.074 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004486/19.93, allocations: 315.9 kB / 5.074 GB, free: 8.859 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001321/19.93, allocations: 0.638 MB / 5.075 GB, free: 8.312 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04279/19.97, allocations: 12.6 MB / 5.087 GB, free: 12.71 MB / 0.5573 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: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: der(pipe1.mediums[1].p) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6647/20.64, allocations: 53.95 MB / 5.14 GB, free: 22.29 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02214/20.66, allocations: 7.511 MB / 5.147 GB, free: 22.2 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01188/20.67, allocations: 4.278 MB / 5.152 GB, free: 22.15 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3469/21.02, allocations: 98.21 MB / 5.248 GB, free: 12.62 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001591/21.02, allocations: 104.1 kB / 5.248 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009453/21.03, allocations: 0.824 MB / 5.248 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=583): time 3.064e-05/21.03, allocations: 0 / 5.248 GB, free: 12.41 MB / 0.6198 GB Notification: Performance of matching and sorting (n=705): time 0.2524/21.28, allocations: 45.3 MB / 5.293 GB, free: 9.43 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/21.28, allocations: 181.2 kB / 5.293 GB, free: 9.293 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01197/21.29, allocations: 4.216 MB / 5.297 GB, free: 8.922 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.002556/21.29, allocations: 155.5 kB / 5.297 GB, free: 8.891 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.003551/21.3, allocations: 2.984 MB / 5.3 GB, free: 7.801 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.004777/21.3, allocations: 2.437 MB / 5.302 GB, free: 6.242 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002225/21.3, allocations: 165.8 kB / 5.303 GB, free: 6.242 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0009595/21.31, allocations: 0.6295 MB / 5.303 GB, free: 5.91 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01309/21.32, allocations: 4.305 MB / 5.307 GB, free: 5.887 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01618/21.34, allocations: 6.201 MB / 5.313 GB, free: 1.625 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.11/22.44, allocations: 41.52 MB / 5.354 GB, free: 99.36 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.822e-05/22.45, allocations: 15.88 kB / 5.354 GB, free: 99.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=1025) (initialization): time 0.04589/22.49, allocations: 14.71 MB / 5.368 GB, free: 99.11 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.004659/22.5, allocations: 20.21 MB / 5.388 GB, free: 78.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002107/22.5, allocations: 52.69 kB / 5.388 GB, free: 78.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2234/22.72, allocations: 18.51 MB / 5.406 GB, free: 77.95 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007762/22.73, allocations: 1.058 MB / 5.407 GB, free: 77.95 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0427/22.77, allocations: 14.98 MB / 5.422 GB, free: 76.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01562/22.79, allocations: 0.8848 MB / 5.423 GB, free: 76.77 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00264/22.79, allocations: 390.3 kB / 5.423 GB, free: 76.77 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/22.79, allocations: 3.406 kB / 5.423 GB, free: 76.77 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04011/22.83, allocations: 13.97 MB / 5.437 GB, free: 76.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001704/22.83, allocations: 49.34 kB / 5.437 GB, free: 76.56 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2042/23.03, allocations: 16.79 MB / 5.453 GB, free: 76.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008094/23.04, allocations: 1.086 MB / 5.454 GB, free: 76.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03701/23.08, allocations: 13.97 MB / 5.468 GB, free: 75.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01277/23.09, allocations: 0.8686 MB / 5.469 GB, free: 75.16 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002987/23.09, allocations: 395.1 kB / 5.469 GB, free: 75.16 MB / 0.6198 GB Warning: The initial conditions are over specified. The following 12 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe1.mediums[2].p = 0.0 $DER.pipe3.mediums[1].p = 0.0 $DER.pipe7.mediums[2].p = 0.0 $DER.pipe9.mediums[1].p = 0.0 $DER.pipe10.mediums[1].p = 0.0 $DER.pipe4.mediums[2].p = 0.0 $DER.pipe5.mediums[1].p = 0.0 $DER.pipe8.mediums[2].p = 0.0 $DER.pipe10.mediums[2].p = 0.0 $DER.pipe11.mediums[1].p = 0.0 $DER.pipe5.mediums[2].p = 0.0 $DER.pipe9.mediums[2].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 52 (valve3.state_b.phase,valve3.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,pipe11.mediums[2].phase,pipe11.mediums[1].phase,pipe11.state_b.phase,pipe11.state_a.phase,pipe5.mediums[2].phase,pipe5.mediums[1].phase,pipe5.state_b.phase,pipe5.state_a.phase,pipe10.mediums[2].phase,pipe10.mediums[1].phase,pipe10.state_b.phase,pipe10.state_a.phase,pipe9.mediums[2].phase,pipe9.mediums[1].phase,pipe9.state_b.phase,pipe9.state_a.phase,pipe8.mediums[2].phase,pipe8.mediums[1].phase,pipe8.state_b.phase,pipe8.state_a.phase,sink.medium.phase,pipe7.mediums[2].phase,pipe7.mediums[1].phase,pipe7.state_b.phase,pipe7.state_a.phase,pipe6.mediums[2].phase,pipe6.mediums[1].phase,pipe6.state_b.phase,pipe6.state_a.phase,pipe4.mediums[2].phase,pipe4.mediums[1].phase,pipe4.state_b.phase,pipe4.state_a.phase,pipe3.mediums[2].phase,pipe3.mediums[1].phase,pipe3.state_b.phase,pipe3.state_a.phase,pipe2.mediums[2].phase,pipe2.mediums[1].phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.mediums[2].phase,pipe1.mediums[1].phase,pipe1.state_b.phase,pipe1.state_a.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (606): * Single equations (assignments): 604 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,30 380} Notification: Performance of prepare postOptimizeDAE: time 0.004813/23.1, allocations: 0.5962 MB / 5.47 GB, free: 75.04 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003343/23.1, allocations: 0.6656 MB / 5.47 GB, free: 75.04 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0686/23.17, allocations: 27.1 MB / 5.497 GB, free: 62.3 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002905/23.17, allocations: 235.5 kB / 5.497 GB, free: 62.15 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.444e-05/23.17, allocations: 0 / 5.497 GB, free: 62.15 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.05361/23.22, allocations: 23.55 MB / 5.52 GB, free: 41.15 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6826/23.91, allocations: 46.39 MB / 5.565 GB, free: 96.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001159/23.91, allocations: 15.56 kB / 5.565 GB, free: 96.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007657/23.92, allocations: 0.9111 MB / 5.566 GB, free: 96.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.09489/24.01, allocations: 10.42 MB / 5.576 GB, free: 96.57 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002329/24.01, allocations: 263.8 kB / 5.577 GB, free: 96.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02325/24.04, allocations: 14.56 MB / 5.591 GB, free: 91.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.712e-05/24.04, allocations: 27.77 kB / 5.591 GB, free: 91.34 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06792/24.1, allocations: 31.03 MB / 5.621 GB, free: 85.91 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008742/24.11, allocations: 2.014 MB / 5.623 GB, free: 85.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003617/24.12, allocations: 219.2 kB / 5.623 GB, free: 85.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01186/24.13, allocations: 0.5714 MB / 5.624 GB, free: 85.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002645/24.13, allocations: 0.4955 MB / 5.624 GB, free: 85.25 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001217/24.13, allocations: 269.5 kB / 5.625 GB, free: 85.25 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.008611/24.14, allocations: 3.123 MB / 5.628 GB, free: 85 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.313e-06/24.14, allocations: 0 / 5.628 GB, free: 85 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.03533/24.18, allocations: 6.465 MB / 5.634 GB, free: 84.81 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 31 (pipe1.mediums[1].T,pipe1.mediums[2].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].T,pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].T,pipe4.mediums[1].p,pipe4.mediums[1].T,pipe4.mediums[2].T,pipe6.mediums[1].p,pipe6.mediums[1].T,pipe6.mediums[2].p,pipe6.mediums[2].T,pipe7.mediums[1].p,pipe7.mediums[1].T,pipe7.mediums[2].T,pipe8.mediums[1].p,pipe8.mediums[1].T,pipe8.mediums[2].T,pipe9.mediums[1].T,pipe9.mediums[2].T,pipe10.mediums[1].T,pipe10.mediums[2].T,pipe5.mediums[1].T,pipe5.mediums[2].T,pipe11.mediums[1].T,pipe11.mediums[2].p,pipe11.mediums[2].T) * Number of discrete variables: 102 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse43.phase,$cse43.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse52.phase,$cse52.region,$cse53.phase,$cse53.region,$cse54.phase,$cse54.region,$cse55.phase,$cse55.region,$cse57.phase,$cse57.region,$cse64.phase,$cse64.region,$cse65.phase,$cse65.region,$cse67.phase,$cse67.region,$cse68.phase,$cse68.region,$cse70.phase,$cse70.region,$cse71.phase,$cse71.region,$cse73.phase,$cse73.region,$cse75.phase,$cse75.region,$cse76.phase,$cse76.region,$cse77.phase,$cse77.region,$cse79.phase,$cse79.region,$cse80.phase,$cse80.region,$cse82.phase,$cse82.region,$cse83.phase,$cse83.region,$cse85.phase,$cse85.region,$cse86.phase,$cse86.region,$cse87.phase,$cse87.region,$cse88.phase,$cse88.region,$cse90.phase,$cse90.region,$cse91.phase,$cse91.region,$cse92.phase,$cse92.region,$cse93.phase,$cse93.region,$cse95.phase,$cse95.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (558): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 10,6 36,2 1,2 1,2 1,2 1,6 64,6 64,4 38,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.08721/24.26, allocations: 40.32 MB / 5.673 GB, free: 71.49 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.05352/24.32, allocations: 19.53 MB / 5.693 GB, free: 64.99 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.004e-05/24.32, allocations: 4.125 kB / 5.693 GB, free: 64.99 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.02001/24.34, allocations: 8.648 MB / 5.701 GB, free: 57.66 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02679/24.36, allocations: 2.983 MB / 5.704 GB, free: 55.61 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7525/25.12, allocations: 69.23 MB / 5.771 GB, free: 88.5 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01199/25.13, allocations: 5.826 MB / 5.777 GB, free: 87.6 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0104/25.14, allocations: 4.261 MB / 5.781 GB, free: 87.6 MB / 0.6198 GB Notification: Performance of SimCode: time 1.703e-06/25.14, allocations: 1.125 kB / 5.781 GB, free: 87.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.069/34.21, allocations: 434.2 MB / 6.205 GB, free: 90.96 MB / 0.6511 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.IncompressibleFluidNetwork_StandardWaterOnePhase_res.mat does not exist to compare? outputFormat=mat