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.9/1.9, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.883e-05/4.896e-05, allocations: 4 kB / 273.1 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1119, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.244/8.356, allocations: 2.673 GB / 2.987 GB, free: 42.68 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/8.356, allocations: 74.41 kB / 2.987 GB, free: 42.65 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 11.12/19.47, allocations: 2.054 GB / 5.041 GB, free: 23.86 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.174e-06/19.47, allocations: 0 / 5.041 GB, free: 23.86 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.001054/19.47, allocations: 216.2 kB / 5.041 GB, free: 23.8 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.06011/19.53, allocations: 9.521 MB / 5.05 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/19.53, allocations: 11.25 kB / 5.05 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005443/19.54, allocations: 0.9772 MB / 5.051 GB, free: 19.43 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02054/19.56, allocations: 1.924 MB / 5.053 GB, free: 18.96 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03317/19.59, allocations: 7.122 MB / 5.06 GB, free: 17.53 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001019/19.59, allocations: 0.5403 MB / 5.061 GB, free: 17.48 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004563/19.6, allocations: 0.7118 MB / 5.062 GB, free: 17.44 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04556/19.64, allocations: 12.9 MB / 5.074 GB, free: 8 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004321/19.64, allocations: 39.66 kB / 5.074 GB, free: 7.961 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00392/19.65, allocations: 311.8 kB / 5.074 GB, free: 7.66 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001264/19.65, allocations: 0.6397 MB / 5.075 GB, free: 7.109 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04213/19.69, allocations: 12.45 MB / 5.087 GB, free: 11.54 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.6655/20.36, allocations: 53.94 MB / 5.14 GB, free: 20.69 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02241/20.38, allocations: 7.467 MB / 5.147 GB, free: 20.62 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01191/20.39, allocations: 4.283 MB / 5.151 GB, free: 20.57 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3511/20.74, allocations: 98.2 MB / 5.247 GB, free: 27.07 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/20.74, allocations: 105.1 kB / 5.247 GB, free: 27.02 MB / 0.6355 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.009465/20.75, allocations: 0.8291 MB / 5.248 GB, free: 26.86 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=583): time 3.304e-05/20.75, allocations: 0 / 5.248 GB, free: 26.86 MB / 0.6355 GB Notification: Performance of matching and sorting (n=705): time 0.2531/21.01, allocations: 45.29 MB / 5.292 GB, free: 23.88 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/21.01, allocations: 176.1 kB / 5.293 GB, free: 23.74 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01107/21.02, allocations: 4.217 MB / 5.297 GB, free: 23.37 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.002357/21.02, allocations: 159.5 kB / 5.297 GB, free: 23.34 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.003307/21.02, allocations: 2.983 MB / 5.3 GB, free: 22.25 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.004483/21.03, allocations: 2.436 MB / 5.302 GB, free: 20.7 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001485/21.03, allocations: 165 kB / 5.302 GB, free: 20.7 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0007436/21.03, allocations: 0.6275 MB / 5.303 GB, free: 20.37 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01249/21.04, allocations: 4.304 MB / 5.307 GB, free: 20.34 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01471/21.06, allocations: 6.16 MB / 5.313 GB, free: 16.59 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.122/22.18, allocations: 43.37 MB / 5.355 GB, free: 111.4 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.722e-05/22.18, allocations: 14.19 kB / 5.356 GB, free: 111.4 MB / 0.6355 GB Notification: Performance of matching and sorting (n=1025) (initialization): time 0.05151/22.23, allocations: 14.57 MB / 5.37 GB, free: 111.1 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.004596/22.24, allocations: 20.21 MB / 5.389 GB, free: 90.08 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002061/22.24, allocations: 49.72 kB / 5.39 GB, free: 90.08 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2231/22.46, allocations: 18.44 MB / 5.408 GB, free: 89.96 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007688/22.47, allocations: 1.059 MB / 5.409 GB, free: 89.96 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04139/22.51, allocations: 14.98 MB / 5.423 GB, free: 88.78 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01605/22.52, allocations: 0.8818 MB / 5.424 GB, free: 88.78 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002476/22.53, allocations: 385.8 kB / 5.424 GB, free: 88.78 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/22.53, allocations: 3.406 kB / 5.424 GB, free: 88.78 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03942/22.57, allocations: 13.83 MB / 5.438 GB, free: 88.57 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/22.57, allocations: 52.94 kB / 5.438 GB, free: 88.57 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2039/22.77, allocations: 16.73 MB / 5.454 GB, free: 88.46 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00791/22.78, allocations: 1.094 MB / 5.455 GB, free: 88.45 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03473/22.81, allocations: 13.96 MB / 5.469 GB, free: 87.28 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01258/22.83, allocations: 0.8697 MB / 5.47 GB, free: 87.28 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002058/22.83, allocations: 381.2 kB / 5.47 GB, free: 87.28 MB / 0.6355 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.003052/22.83, allocations: 0.6016 MB / 5.471 GB, free: 87.16 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002374/22.83, allocations: 0.6658 MB / 5.471 GB, free: 87.16 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05973/22.89, allocations: 26.62 MB / 5.497 GB, free: 85.79 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003089/22.89, allocations: 230.4 kB / 5.498 GB, free: 85.79 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.898e-05/22.89, allocations: 0.9375 kB / 5.498 GB, free: 85.79 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04791/22.94, allocations: 23.07 MB / 5.52 GB, free: 77.66 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1052/23.05, allocations: 46.06 MB / 5.565 GB, free: 38.38 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001196/23.05, allocations: 22.58 kB / 5.565 GB, free: 38.36 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007607/23.05, allocations: 0.9047 MB / 5.566 GB, free: 37.63 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.6641/23.72, allocations: 10.45 MB / 5.576 GB, free: 112.3 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002451/23.72, allocations: 259.6 kB / 5.577 GB, free: 112.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02443/23.75, allocations: 14.56 MB / 5.591 GB, free: 107.1 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.76e-05/23.75, allocations: 28.34 kB / 5.591 GB, free: 107.1 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06872/23.81, allocations: 31.03 MB / 5.621 GB, free: 101.6 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008742/23.82, allocations: 2.017 MB / 5.623 GB, free: 101.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003921/23.83, allocations: 214.1 kB / 5.623 GB, free: 101.1 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01195/23.84, allocations: 0.5742 MB / 5.624 GB, free: 101.1 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002523/23.84, allocations: 0.4996 MB / 5.624 GB, free: 101.1 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001613/23.84, allocations: 272.1 kB / 5.625 GB, free: 101.1 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.008924/23.85, allocations: 3.123 MB / 5.628 GB, free: 100.8 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.002e-06/23.85, allocations: 0 / 5.628 GB, free: 100.8 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0357/23.89, allocations: 6.47 MB / 5.634 GB, free: 100.6 MB / 0.6355 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.09113/23.98, allocations: 40.37 MB / 5.673 GB, free: 90.46 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.05561/24.03, allocations: 19.28 MB / 5.692 GB, free: 90.15 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.179e-05/24.03, allocations: 4.812 kB / 5.692 GB, free: 90.15 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.02087/24.06, allocations: 8.584 MB / 5.701 GB, free: 88.47 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02767/24.08, allocations: 2.989 MB / 5.703 GB, free: 87.86 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2189/24.3, allocations: 68.76 MB / 5.771 GB, free: 50.66 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01066/24.31, allocations: 5.826 MB / 5.776 GB, free: 46.44 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01004/24.32, allocations: 4.269 MB / 5.781 GB, free: 42.47 MB / 0.6355 GB Notification: Performance of SimCode: time 1.513e-06/24.32, allocations: 2.625 kB / 5.781 GB, free: 42.47 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.524/32.85, allocations: 434 MB / 6.204 GB, free: 30.43 MB / 0.6355 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