Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.344/2.344, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.816e-05/3.821e-05, allocations: 4 kB / 305 MB, free: 5.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4198/0.4198, allocations: 54.85 MB / 359.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.04/8.46, allocations: 2.627 GB / 2.978 GB, free: 121.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000354/8.461, allocations: 92.27 kB / 2.978 GB, free: 121.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.472/10.93, allocations: 0.4906 GB / 3.469 GB, free: 24.11 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.513e-06/10.93, allocations: 0 / 3.469 GB, free: 24.11 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.191e-05/10.93, allocations: 18.52 kB / 3.469 GB, free: 24.1 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.007476/10.94, allocations: 1.719 MB / 3.471 GB, free: 22.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/10.94, allocations: 12.03 kB / 3.471 GB, free: 22.33 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002149/10.94, allocations: 105.6 kB / 3.471 GB, free: 22.22 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003299/10.94, allocations: 328.1 kB / 3.471 GB, free: 21.9 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/10.95, allocations: 0.5975 MB / 3.472 GB, free: 21.28 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/10.95, allocations: 116.1 kB / 3.472 GB, free: 21.15 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/10.95, allocations: 63.84 kB / 3.472 GB, free: 21.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003414/10.95, allocations: 1.181 MB / 3.473 GB, free: 19.81 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.331e-05/10.95, allocations: 0 / 3.473 GB, free: 19.81 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/10.95, allocations: 34.5 kB / 3.473 GB, free: 19.78 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-05/10.95, allocations: 57.11 kB / 3.473 GB, free: 19.73 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002359/10.95, allocations: 0.8222 MB / 3.474 GB, free: 18.9 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.008311/10.96, allocations: 5.474 MB / 3.479 GB, free: 13.1 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/10.96, allocations: 0.5874 MB / 3.48 GB, free: 12.49 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004614/10.96, allocations: 213.7 kB / 3.48 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5456/11.51, allocations: 49.17 MB / 3.528 GB, free: 53.11 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.707e-05/11.51, allocations: 43.45 kB / 3.528 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=42): time 4.499e-06/11.51, allocations: 1 kB / 3.528 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.008925/11.52, allocations: 1.833 MB / 3.53 GB, free: 52.67 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/11.52, allocations: 159.4 kB / 3.53 GB, free: 52.48 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/11.52, allocations: 0.5342 MB / 3.53 GB, free: 52.35 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.848e-05/11.52, allocations: 38.83 kB / 3.53 GB, free: 52.32 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003118/11.52, allocations: 402.4 kB / 3.531 GB, free: 52.13 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001882/11.52, allocations: 173.2 kB / 3.531 GB, free: 52.05 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-05/11.52, allocations: 16.94 kB / 3.531 GB, free: 52.05 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001275/11.52, allocations: 379.9 kB / 3.531 GB, free: 51.74 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005725/11.52, allocations: 213.8 kB / 3.532 GB, free: 51.73 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000841/11.52, allocations: 0.5771 MB / 3.532 GB, free: 51.28 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009215/11.52, allocations: 334.4 kB / 3.532 GB, free: 51.27 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/11.52, allocations: 7.641 kB / 3.532 GB, free: 51.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002226/11.52, allocations: 0.8449 MB / 3.533 GB, free: 51.19 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/11.52, allocations: 14.09 kB / 3.533 GB, free: 51.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/11.52, allocations: 10.72 kB / 3.533 GB, free: 51.19 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004037/11.52, allocations: 62.42 kB / 3.533 GB, free: 51.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/11.53, allocations: 294 kB / 3.534 GB, free: 51.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/11.53, allocations: 1.967 MB / 3.536 GB, free: 49.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/11.53, allocations: 67.92 kB / 3.536 GB, free: 49.35 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/11.53, allocations: 41.59 kB / 3.536 GB, free: 49.35 MB / 0.4948 GB 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.0003176/11.53, allocations: 161.9 kB / 3.536 GB, free: 49.24 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002163/11.53, allocations: 74.72 kB / 3.536 GB, free: 49.21 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003359/11.53, allocations: 2.217 MB / 3.538 GB, free: 48.95 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.984e-05/11.53, allocations: 25.25 kB / 3.538 GB, free: 48.95 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/11.53, allocations: 0 / 3.538 GB, free: 48.95 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/11.53, allocations: 9.922 kB / 3.538 GB, free: 48.95 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005091/11.54, allocations: 3.265 MB / 3.541 GB, free: 48.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/11.54, allocations: 3.781 kB / 3.541 GB, free: 48.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001929/11.54, allocations: 193.9 kB / 3.542 GB, free: 48.5 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006345/11.54, allocations: 86.7 kB / 3.542 GB, free: 48.49 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-05/11.54, allocations: 10.62 kB / 3.542 GB, free: 48.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/11.54, allocations: 1.988 MB / 3.544 GB, free: 46.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/11.54, allocations: 0 / 3.544 GB, free: 46.65 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00418/11.55, allocations: 1.971 MB / 3.545 GB, free: 46.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000979/11.55, allocations: 282 kB / 3.546 GB, free: 46.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002996/11.55, allocations: 14.59 kB / 3.546 GB, free: 46.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/11.55, allocations: 55.48 kB / 3.546 GB, free: 46.15 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/11.55, allocations: 34.67 kB / 3.546 GB, free: 46.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/11.55, allocations: 31.8 kB / 3.546 GB, free: 46.14 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001241/11.55, allocations: 497.9 kB / 3.546 GB, free: 46.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.62e-07/11.55, allocations: 3.938 kB / 3.546 GB, free: 46.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007741/11.56, allocations: 1.133 MB / 3.547 GB, free: 46.04 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: 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.01707/11.58, allocations: 4.051 MB / 3.551 GB, free: 45.04 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004067/11.58, allocations: 0.9119 MB / 3.552 GB, free: 45.02 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.407e-06/11.58, allocations: 0 / 3.552 GB, free: 45.02 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002523/11.59, allocations: 0.6523 MB / 3.553 GB, free: 45.02 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004244/11.59, allocations: 349.5 kB / 3.553 GB, free: 45.02 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/11.6, allocations: 2.258 MB / 3.555 GB, free: 44.57 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009235/11.6, allocations: 1.138 MB / 3.557 GB, free: 43.86 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002147/11.6, allocations: 450.1 kB / 3.557 GB, free: 43.85 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000849/11.6, allocations: 395.6 kB / 3.557 GB, free: 43.84 MB / 0.4948 GB Notification: Performance of SimCode: time 1.412e-06/11.6, allocations: 0 / 3.557 GB, free: 43.84 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.158/11.76, allocations: 53.41 MB / 3.61 GB, free: 41.18 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000283/11.76, allocations: 252.8 kB / 3.61 GB, free: 40.84 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.686/16.45, allocations: 0 / 3.61 GB, free: 40.84 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat