Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.904/1.904, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.526e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1028, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.718/7.821, allocations: 2.516 GB / 2.83 GB, free: 44.16 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/7.822, allocations: 94.38 kB / 2.83 GB, free: 44.11 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.658/10.48, allocations: 490 MB / 3.309 GB, free: 38.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.024e-06/10.48, allocations: 192 / 3.309 GB, free: 38.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.858e-05/10.48, allocations: 23.25 kB / 3.309 GB, free: 38.34 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.007839/10.49, allocations: 1.677 MB / 3.311 GB, free: 37.42 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/10.49, allocations: 7.875 kB / 3.311 GB, free: 37.42 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002267/10.49, allocations: 112.7 kB / 3.311 GB, free: 37.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003328/10.49, allocations: 306.5 kB / 3.311 GB, free: 37.28 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/10.49, allocations: 0.6111 MB / 3.312 GB, free: 36.89 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/10.49, allocations: 110.2 kB / 3.312 GB, free: 36.81 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/10.49, allocations: 58.45 kB / 3.312 GB, free: 36.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003512/10.5, allocations: 1.182 MB / 3.313 GB, free: 36.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.943e-05/10.5, allocations: 3.938 kB / 3.313 GB, free: 36.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/10.5, allocations: 30.59 kB / 3.313 GB, free: 36.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.655e-05/10.5, allocations: 47.97 kB / 3.313 GB, free: 36.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002416/10.5, allocations: 0.8308 MB / 3.314 GB, free: 35.91 MB / 442.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.008297/10.51, allocations: 5.486 MB / 3.319 GB, free: 31.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/10.51, allocations: 0.5839 MB / 3.32 GB, free: 31.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004554/10.51, allocations: 220.1 kB / 3.32 GB, free: 31.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1579/10.67, allocations: 49.08 MB / 3.368 GB, free: 12.82 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.699e-05/10.67, allocations: 47.97 kB / 3.368 GB, free: 12.77 MB / 458.7 MB Notification: Performance of pre-optimization done (n=42): time 3.046e-06/10.67, allocations: 0 / 3.368 GB, free: 12.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.006884/10.68, allocations: 1.827 MB / 3.37 GB, free: 11.14 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.773e-05/10.68, allocations: 162.2 kB / 3.37 GB, free: 10.94 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008885/10.68, allocations: 0.5355 MB / 3.37 GB, free: 10.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.153e-05/10.68, allocations: 33.7 kB / 3.37 GB, free: 10.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002808/10.68, allocations: 433.5 kB / 3.371 GB, free: 9.965 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/10.68, allocations: 170.3 kB / 3.371 GB, free: 9.801 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.288e-05/10.68, allocations: 17.53 kB / 3.371 GB, free: 9.785 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/10.68, allocations: 346.8 kB / 3.371 GB, free: 9.438 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005168/10.68, allocations: 217.9 kB / 3.371 GB, free: 9.223 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007554/10.68, allocations: 0.5816 MB / 3.372 GB, free: 8.473 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007735/10.68, allocations: 341.3 kB / 3.372 GB, free: 8.137 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/10.68, allocations: 4 kB / 3.372 GB, free: 8.133 MB / 458.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002179/10.68, allocations: 0.8014 MB / 3.373 GB, free: 7.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.134e-05/10.68, allocations: 8 kB / 3.373 GB, free: 7.312 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/10.68, allocations: 15.98 kB / 3.373 GB, free: 7.297 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004182/10.68, allocations: 64.83 kB / 3.373 GB, free: 7.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00251/10.68, allocations: 292.1 kB / 3.374 GB, free: 6.945 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/10.69, allocations: 1.975 MB / 3.375 GB, free: 4.816 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/10.69, allocations: 60.09 kB / 3.376 GB, free: 4.758 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/10.69, allocations: 47.98 kB / 3.376 GB, free: 4.711 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 10 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002974/10.69, allocations: 159.2 kB / 3.376 GB, free: 4.551 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001945/10.69, allocations: 71.16 kB / 3.376 GB, free: 4.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003936/10.69, allocations: 2.212 MB / 3.378 GB, free: 2.258 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-05/10.69, allocations: 35.98 kB / 3.378 GB, free: 2.223 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/10.69, allocations: 0 / 3.378 GB, free: 2.223 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/10.69, allocations: 3.984 kB / 3.378 GB, free: 2.219 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3399/11.03, allocations: 3.265 MB / 3.381 GB, free: 62.51 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/11.03, allocations: 0 / 3.381 GB, free: 62.51 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/11.03, allocations: 194.5 kB / 3.381 GB, free: 62.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005919/11.04, allocations: 83.77 kB / 3.381 GB, free: 62.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.588e-05/11.04, allocations: 13.3 kB / 3.381 GB, free: 62.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001805/11.04, allocations: 1.992 MB / 3.383 GB, free: 60.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/11.04, allocations: 0.9062 kB / 3.383 GB, free: 60.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00404/11.04, allocations: 1.971 MB / 3.385 GB, free: 60.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007287/11.04, allocations: 285.6 kB / 3.386 GB, free: 60.32 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001955/11.04, allocations: 12.42 kB / 3.386 GB, free: 60.32 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/11.04, allocations: 60.27 kB / 3.386 GB, free: 60.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/11.04, allocations: 38.34 kB / 3.386 GB, free: 60.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.712e-05/11.04, allocations: 22.05 kB / 3.386 GB, free: 60.32 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001028/11.04, allocations: 0.492 MB / 3.386 GB, free: 60.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.11e-07/11.04, allocations: 0 / 3.386 GB, free: 60.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006575/11.05, allocations: 1.117 MB / 3.387 GB, free: 60.21 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01465/11.07, allocations: 4.045 MB / 3.391 GB, free: 59.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003307/11.07, allocations: 0.9016 MB / 3.392 GB, free: 59.25 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.954e-06/11.07, allocations: 0 / 3.392 GB, free: 59.25 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00209/11.07, allocations: 0.6439 MB / 3.393 GB, free: 59.25 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003438/11.07, allocations: 353.4 kB / 3.393 GB, free: 59.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009424/11.08, allocations: 2.293 MB / 3.395 GB, free: 58.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009843/11.09, allocations: 1.134 MB / 3.396 GB, free: 58.12 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008105/11.09, allocations: 397.2 kB / 3.397 GB, free: 58.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.092e-06/11.09, allocations: 0 / 3.397 GB, free: 58.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.906/14.99, allocations: 44.71 MB / 3.44 GB, free: 55.88 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat