Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.915/1.915, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.077e-05/4.093e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.108, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.861/7.969, allocations: 2.516 GB / 2.83 GB, free: 46.27 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003173/7.97, allocations: 94 kB / 2.83 GB, free: 46.21 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.553/10.52, allocations: 489.9 MB / 3.309 GB, free: 39.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.054e-06/10.52, allocations: 0 / 3.309 GB, free: 39.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.839e-05/10.52, allocations: 23.28 kB / 3.309 GB, free: 39.54 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.007912/10.53, allocations: 1.718 MB / 3.31 GB, free: 38.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/10.53, allocations: 13.94 kB / 3.31 GB, free: 38.62 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002985/10.53, allocations: 112.9 kB / 3.311 GB, free: 38.54 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003378/10.53, allocations: 306.7 kB / 3.311 GB, free: 38.48 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/10.54, allocations: 0.6007 MB / 3.311 GB, free: 38.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001707/10.54, allocations: 118.4 kB / 3.312 GB, free: 38.01 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002015/10.54, allocations: 61.77 kB / 3.312 GB, free: 37.99 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003703/10.54, allocations: 1.191 MB / 3.313 GB, free: 37.4 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.081e-05/10.54, allocations: 9.359 kB / 3.313 GB, free: 37.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001344/10.54, allocations: 33.19 kB / 3.313 GB, free: 37.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.619e-05/10.54, allocations: 38.58 kB / 3.313 GB, free: 37.37 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003475/10.54, allocations: 0.9898 MB / 3.314 GB, free: 37.07 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.00929/10.55, allocations: 5.612 MB / 3.319 GB, free: 32.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00277/10.56, allocations: 0.7309 MB / 3.32 GB, free: 32.35 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005847/10.56, allocations: 244 kB / 3.32 GB, free: 32.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05706/10.61, allocations: 18.75 MB / 3.339 GB, free: 20.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/10.61, allocations: 43.58 kB / 3.339 GB, free: 20.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 3.086e-06/10.61, allocations: 0 / 3.339 GB, free: 20.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.00798/10.62, allocations: 2.021 MB / 3.341 GB, free: 19.14 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.799e-05/10.62, allocations: 162.6 kB / 3.341 GB, free: 18.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009414/10.62, allocations: 0.5307 MB / 3.341 GB, free: 18.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001198/10.62, allocations: 37.73 kB / 3.341 GB, free: 18.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000264/10.62, allocations: 427.7 kB / 3.342 GB, free: 18.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/10.62, allocations: 175.9 kB / 3.342 GB, free: 18.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.632e-05/10.62, allocations: 15.62 kB / 3.342 GB, free: 18.14 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.301e-05/10.62, allocations: 339.9 kB / 3.342 GB, free: 17.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005966/10.63, allocations: 243.8 kB / 3.342 GB, free: 17.73 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000783/10.63, allocations: 0.5881 MB / 3.343 GB, free: 17.17 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007443/10.63, allocations: 345.6 kB / 3.343 GB, free: 17.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/10.63, allocations: 3.938 kB / 3.343 GB, free: 17.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002061/10.63, allocations: 0.8669 MB / 3.344 GB, free: 16.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/10.63, allocations: 14.38 kB / 3.344 GB, free: 16.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/10.63, allocations: 13.06 kB / 3.344 GB, free: 16.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004024/10.63, allocations: 64.22 kB / 3.344 GB, free: 16.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002575/10.63, allocations: 312.5 kB / 3.345 GB, free: 16.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/10.63, allocations: 1.985 MB / 3.347 GB, free: 14.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/10.64, allocations: 92.34 kB / 3.347 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/10.64, allocations: 41.56 kB / 3.347 GB, free: 14.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 10 (volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.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.0002868/10.64, allocations: 163.6 kB / 3.347 GB, free: 14.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/10.64, allocations: 72.03 kB / 3.347 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003766/10.64, allocations: 2.56 MB / 3.349 GB, free: 13.23 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-05/10.64, allocations: 40.72 kB / 3.349 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/10.64, allocations: 0 / 3.349 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/10.64, allocations: 7.453 kB / 3.349 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005779/10.65, allocations: 3.744 MB / 3.353 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/10.65, allocations: 3.844 kB / 3.353 GB, free: 11.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002187/10.65, allocations: 240.5 kB / 3.353 GB, free: 11.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005157/10.65, allocations: 89.11 kB / 3.353 GB, free: 11.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.867e-05/10.65, allocations: 15.41 kB / 3.353 GB, free: 11.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/10.65, allocations: 1.991 MB / 3.355 GB, free: 9.379 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/10.65, allocations: 0 / 3.355 GB, free: 9.379 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003515/10.65, allocations: 2.241 MB / 3.358 GB, free: 8.258 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007444/10.65, allocations: 323.9 kB / 3.358 GB, free: 8.016 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/10.65, allocations: 11.44 kB / 3.358 GB, free: 8.008 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/10.66, allocations: 65.78 kB / 3.358 GB, free: 7.992 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/10.66, allocations: 52.3 kB / 3.358 GB, free: 7.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-05/10.66, allocations: 22.47 kB / 3.358 GB, free: 7.973 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001023/10.66, allocations: 0.5375 MB / 3.359 GB, free: 7.73 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.51e-07/10.66, allocations: 6.406 kB / 3.359 GB, free: 7.727 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005937/10.66, allocations: 1.131 MB / 3.36 GB, free: 7.219 MB / 442.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: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.01373/10.68, allocations: 4.3 MB / 3.364 GB, free: 3.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00312/10.68, allocations: 1.013 MB / 3.365 GB, free: 2.488 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/10.68, allocations: 4.125 kB / 3.365 GB, free: 2.484 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001956/10.68, allocations: 0.7473 MB / 3.366 GB, free: 1.797 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003329/10.69, allocations: 366 kB / 3.366 GB, free: 1.535 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00878/10.69, allocations: 2.499 MB / 3.368 GB, free: 15.27 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009723/10.7, allocations: 1.179 MB / 3.369 GB, free: 14.24 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009104/10.7, allocations: 449.8 kB / 3.37 GB, free: 13.84 MB / 458.7 MB Notification: Performance of SimCode: time 1.512e-06/10.7, allocations: 0 / 3.37 GB, free: 13.84 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.503/15.2, allocations: 46.63 MB / 3.415 GB, free: 49.04 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.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat