Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.381/2.381, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.354e-05/4.359e-05, allocations: 4 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4094/0.4095, allocations: 54.85 MB / 359.9 MB, free: 2.707 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.722/8.131, allocations: 2.627 GB / 2.978 GB, free: 121.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003946/8.132, allocations: 96.8 kB / 2.978 GB, free: 121.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535/10.67, allocations: 0.4905 GB / 3.469 GB, free: 24.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.946e-06/10.67, allocations: 0 / 3.469 GB, free: 24.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.07e-05/10.67, allocations: 30.39 kB / 3.469 GB, free: 24.5 MB / 490.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.008463/10.68, allocations: 1.754 MB / 3.47 GB, free: 22.71 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/10.68, allocations: 8.031 kB / 3.47 GB, free: 22.71 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003002/10.68, allocations: 110.5 kB / 3.471 GB, free: 22.59 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003446/10.68, allocations: 324.1 kB / 3.471 GB, free: 22.27 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/10.68, allocations: 0.603 MB / 3.471 GB, free: 21.64 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/10.68, allocations: 120.7 kB / 3.472 GB, free: 21.51 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/10.68, allocations: 58.64 kB / 3.472 GB, free: 21.46 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003544/10.69, allocations: 1.189 MB / 3.473 GB, free: 20.17 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.938e-05/10.69, allocations: 7.938 kB / 3.473 GB, free: 20.16 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/10.69, allocations: 28 kB / 3.473 GB, free: 20.13 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.344e-05/10.69, allocations: 41.3 kB / 3.473 GB, free: 20.09 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003409/10.69, allocations: 0.9743 MB / 3.474 GB, free: 19.12 MB / 490.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.009589/10.7, allocations: 5.6 MB / 3.479 GB, free: 13.19 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002774/10.7, allocations: 0.7159 MB / 3.48 GB, free: 12.45 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006029/10.7, allocations: 255.3 kB / 3.48 GB, free: 12.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06196/10.76, allocations: 18.85 MB / 3.499 GB, free: 7.059 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.578e-05/10.76, allocations: 38.56 kB / 3.499 GB, free: 7.012 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=45): time 3.607e-06/10.76, allocations: 0 / 3.499 GB, free: 7.012 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.008927/10.77, allocations: 2.014 MB / 3.501 GB, free: 4.938 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/10.77, allocations: 162.7 kB / 3.501 GB, free: 4.742 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/10.77, allocations: 0.5265 MB / 3.501 GB, free: 4.211 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001253/10.77, allocations: 37.7 kB / 3.501 GB, free: 4.168 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003566/10.77, allocations: 421.2 kB / 3.502 GB, free: 3.754 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/10.78, allocations: 177.4 kB / 3.502 GB, free: 3.582 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.498e-05/10.78, allocations: 20.03 kB / 3.502 GB, free: 3.562 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001572/10.78, allocations: 346.8 kB / 3.502 GB, free: 3.215 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006704/10.78, allocations: 241.9 kB / 3.503 GB, free: 2.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009513/10.78, allocations: 0.5828 MB / 3.503 GB, free: 2.23 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008623/10.78, allocations: 345.3 kB / 3.503 GB, free: 1.891 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/10.78, allocations: 4 kB / 3.503 GB, free: 1.887 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002327/10.78, allocations: 0.84 MB / 3.504 GB, free: 1.035 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/10.78, allocations: 13.34 kB / 3.504 GB, free: 1.023 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/10.78, allocations: 16.86 kB / 3.504 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004242/10.78, allocations: 64.83 kB / 3.504 GB, free: 0.9414 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002759/10.78, allocations: 307.6 kB / 3.505 GB, free: 0.6406 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3606/11.14, allocations: 1.976 MB / 3.507 GB, free: 63.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/11.15, allocations: 84.86 kB / 3.507 GB, free: 63.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001822/11.15, allocations: 44.64 kB / 3.507 GB, free: 63.96 MB / 0.4948 GB 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.0002879/11.15, allocations: 171.7 kB / 3.507 GB, free: 63.86 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/11.15, allocations: 75.33 kB / 3.507 GB, free: 63.86 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004456/11.15, allocations: 2.566 MB / 3.509 GB, free: 63.66 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.388e-05/11.15, allocations: 35.84 kB / 3.509 GB, free: 63.66 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/11.15, allocations: 1.031 kB / 3.509 GB, free: 63.66 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/11.15, allocations: 3.141 kB / 3.509 GB, free: 63.66 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007583/11.16, allocations: 3.747 MB / 3.513 GB, free: 63.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/11.16, allocations: 0 / 3.513 GB, free: 63.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002422/11.16, allocations: 237.2 kB / 3.513 GB, free: 63.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005955/11.16, allocations: 85.41 kB / 3.513 GB, free: 63.21 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/11.16, allocations: 13.39 kB / 3.513 GB, free: 63.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001771/11.16, allocations: 1.993 MB / 3.515 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/11.16, allocations: 1.875 kB / 3.515 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00431/11.17, allocations: 2.228 MB / 3.518 GB, free: 61.02 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000963/11.17, allocations: 336.3 kB / 3.518 GB, free: 60.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001991/11.17, allocations: 14.19 kB / 3.518 GB, free: 60.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/11.17, allocations: 58.69 kB / 3.518 GB, free: 60.85 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/11.17, allocations: 50 kB / 3.518 GB, free: 60.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-05/11.17, allocations: 27.23 kB / 3.518 GB, free: 60.84 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001203/11.17, allocations: 0.5335 MB / 3.519 GB, free: 60.74 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.11e-07/11.17, allocations: 0 / 3.519 GB, free: 60.74 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007005/11.18, allocations: 1.136 MB / 3.52 GB, free: 60.74 MB / 0.4948 GB 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.01537/11.19, allocations: 4.319 MB / 3.524 GB, free: 59.75 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003551/11.2, allocations: 0.9921 MB / 3.525 GB, free: 59.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/11.2, allocations: 1.031 kB / 3.525 GB, free: 59.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002343/11.2, allocations: 0.7461 MB / 3.526 GB, free: 59.73 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00357/11.2, allocations: 359.9 kB / 3.526 GB, free: 59.73 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01193/11.22, allocations: 2.505 MB / 3.528 GB, free: 59.25 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00135/11.22, allocations: 1.182 MB / 3.53 GB, free: 58.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/11.22, allocations: 447.5 kB / 3.53 GB, free: 58.54 MB / 0.4948 GB Notification: Performance of SimCode: time 1.894e-06/11.22, allocations: 0 / 3.53 GB, free: 58.54 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.957/15.18, allocations: 46.79 MB / 3.576 GB, free: 56.25 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat