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.992/1.992, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.365e-05/3.374e-05, allocations: 0 / 273.1 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.959/8.065, allocations: 2.516 GB / 2.83 GB, free: 46.23 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004458/8.065, allocations: 89.7 kB / 2.83 GB, free: 46.18 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.673/10.74, allocations: 490 MB / 3.309 GB, free: 39.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.793e-06/10.74, allocations: 0 / 3.309 GB, free: 39.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.92e-05/10.74, allocations: 20.23 kB / 3.309 GB, free: 39.32 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.007058/10.75, allocations: 1.682 MB / 3.311 GB, free: 38.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/10.75, allocations: 10.59 kB / 3.311 GB, free: 38.39 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002032/10.75, allocations: 111.5 kB / 3.311 GB, free: 38.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003203/10.75, allocations: 310.8 kB / 3.311 GB, free: 38.25 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/10.75, allocations: 0.6073 MB / 3.312 GB, free: 37.86 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/10.75, allocations: 109.8 kB / 3.312 GB, free: 37.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/10.75, allocations: 67.66 kB / 3.312 GB, free: 37.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003807/10.76, allocations: 1.188 MB / 3.313 GB, free: 37.17 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.377e-05/10.76, allocations: 0.6875 kB / 3.313 GB, free: 37.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001645/10.76, allocations: 38.91 kB / 3.313 GB, free: 37.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.232e-05/10.76, allocations: 43.56 kB / 3.313 GB, free: 37.14 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002639/10.76, allocations: 0.8471 MB / 3.314 GB, free: 36.86 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.008897/10.77, allocations: 5.466 MB / 3.319 GB, free: 32.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001779/10.77, allocations: 0.6038 MB / 3.32 GB, free: 32.23 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005342/10.77, allocations: 214 kB / 3.32 GB, free: 32.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1608/10.93, allocations: 49.08 MB / 3.368 GB, free: 14.28 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.045e-05/10.93, allocations: 42.5 kB / 3.368 GB, free: 14.23 MB / 458.7 MB Notification: Performance of pre-optimization done (n=42): time 3.396e-06/10.93, allocations: 4 kB / 3.368 GB, free: 14.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.006754/10.94, allocations: 1.827 MB / 3.37 GB, free: 12.59 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/10.94, allocations: 166.2 kB / 3.37 GB, free: 12.39 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008904/10.94, allocations: 0.5321 MB / 3.37 GB, free: 11.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.655e-05/10.94, allocations: 33.7 kB / 3.37 GB, free: 11.86 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/10.94, allocations: 435.8 kB / 3.371 GB, free: 11.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/10.94, allocations: 171.1 kB / 3.371 GB, free: 11.31 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.163e-05/10.94, allocations: 16 kB / 3.371 GB, free: 11.29 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/10.94, allocations: 345.6 kB / 3.371 GB, free: 10.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005232/10.94, allocations: 220.8 kB / 3.371 GB, free: 10.75 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007151/10.94, allocations: 0.5811 MB / 3.372 GB, free: 10.03 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007075/10.94, allocations: 339.3 kB / 3.372 GB, free: 9.738 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/10.94, allocations: 7.062 kB / 3.372 GB, free: 9.734 MB / 458.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00195/10.94, allocations: 0.8377 MB / 3.373 GB, free: 8.965 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/10.94, allocations: 9 kB / 3.373 GB, free: 8.957 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/10.94, allocations: 16 kB / 3.373 GB, free: 8.941 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004038/10.94, allocations: 68.44 kB / 3.373 GB, free: 8.883 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002411/10.95, allocations: 288.9 kB / 3.374 GB, free: 8.648 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/10.95, allocations: 1.974 MB / 3.376 GB, free: 6.578 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/10.95, allocations: 63.64 kB / 3.376 GB, free: 6.523 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.78e-05/10.95, allocations: 47.94 kB / 3.376 GB, free: 6.477 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.0003051/10.95, allocations: 175.6 kB / 3.376 GB, free: 6.305 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/10.95, allocations: 71.16 kB / 3.376 GB, free: 6.234 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003833/10.95, allocations: 2.209 MB / 3.378 GB, free: 4.227 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.823e-05/10.95, allocations: 31.91 kB / 3.378 GB, free: 4.195 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/10.95, allocations: 0 / 3.378 GB, free: 4.195 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/10.95, allocations: 7.984 kB / 3.378 GB, free: 4.188 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005994/10.96, allocations: 3.261 MB / 3.381 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/10.96, allocations: 3.953 kB / 3.381 GB, free: 0.8555 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001939/10.96, allocations: 191.8 kB / 3.381 GB, free: 0.668 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005742/10.96, allocations: 80.7 kB / 3.381 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.03e-05/10.96, allocations: 23.98 kB / 3.382 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3402/11.3, allocations: 1.977 MB / 3.383 GB, free: 61.06 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/11.3, allocations: 1.438 kB / 3.383 GB, free: 61.06 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003826/11.31, allocations: 1.973 MB / 3.385 GB, free: 60.79 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007562/11.31, allocations: 285.5 kB / 3.386 GB, free: 60.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/11.31, allocations: 13.91 kB / 3.386 GB, free: 60.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/11.31, allocations: 57.41 kB / 3.386 GB, free: 60.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/11.31, allocations: 34.03 kB / 3.386 GB, free: 60.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-05/11.31, allocations: 30.59 kB / 3.386 GB, free: 60.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001081/11.31, allocations: 498.4 kB / 3.386 GB, free: 60.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.31e-07/11.31, allocations: 1.875 kB / 3.386 GB, free: 60.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006739/11.32, allocations: 1.122 MB / 3.387 GB, free: 60.6 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.01503/11.33, allocations: 4.031 MB / 3.391 GB, free: 59.67 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003297/11.34, allocations: 0.9191 MB / 3.392 GB, free: 59.65 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/11.34, allocations: 1.219 kB / 3.392 GB, free: 59.65 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001965/11.34, allocations: 0.6498 MB / 3.393 GB, free: 59.65 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/11.34, allocations: 349.9 kB / 3.393 GB, free: 59.65 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009275/11.35, allocations: 2.296 MB / 3.395 GB, free: 59.22 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/11.35, allocations: 1.133 MB / 3.396 GB, free: 58.52 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007995/11.35, allocations: 395.2 kB / 3.397 GB, free: 58.51 MB / 458.7 MB Notification: Performance of SimCode: time 1.353e-06/11.35, allocations: 2.406 kB / 3.397 GB, free: 58.51 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.883/15.23, allocations: 44.73 MB / 3.441 GB, free: 56.34 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