Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.924/1.924, allocations: 209.3 MB / 221.5 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.57e-05/3.572e-05, allocations: 4 kB / 273.2 MB, free: 136 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 48.71 MB / 321.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.682/7.787, allocations: 2.516 GB / 2.83 GB, free: 45.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/7.788, allocations: 91.06 kB / 2.83 GB, free: 45.05 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.66/10.45, allocations: 490 MB / 3.309 GB, free: 38.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.424e-06/10.45, allocations: 0 / 3.309 GB, free: 38.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.287e-05/10.45, allocations: 20.98 kB / 3.309 GB, free: 38.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.007503/10.46, allocations: 1.675 MB / 3.311 GB, free: 37.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/10.46, allocations: 11.88 kB / 3.311 GB, free: 37.61 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001868/10.46, allocations: 111.8 kB / 3.311 GB, free: 37.53 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003124/10.46, allocations: 311.4 kB / 3.311 GB, free: 37.47 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/10.46, allocations: 0.6069 MB / 3.312 GB, free: 37.08 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/10.46, allocations: 109.9 kB / 3.312 GB, free: 37 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/10.46, allocations: 58.28 kB / 3.312 GB, free: 36.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003222/10.46, allocations: 1.191 MB / 3.313 GB, free: 36.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.371e-05/10.46, allocations: 9.297 kB / 3.313 GB, free: 36.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001251/10.46, allocations: 29.58 kB / 3.313 GB, free: 36.37 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.919e-05/10.46, allocations: 43.91 kB / 3.313 GB, free: 36.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002292/10.47, allocations: 0.8512 MB / 3.314 GB, free: 36.09 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.007879/10.47, allocations: 5.474 MB / 3.319 GB, free: 31.68 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/10.48, allocations: 0.5942 MB / 3.32 GB, free: 31.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004557/10.48, allocations: 222.4 kB / 3.32 GB, free: 31.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1519/10.63, allocations: 49.08 MB / 3.368 GB, free: 12.52 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.567e-05/10.63, allocations: 42.5 kB / 3.368 GB, free: 12.46 MB / 458.7 MB Notification: Performance of pre-optimization done (n=42): time 3.036e-06/10.63, allocations: 0 / 3.368 GB, free: 12.46 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.006661/10.64, allocations: 1.828 MB / 3.37 GB, free: 10.83 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.892e-05/10.64, allocations: 158.2 kB / 3.37 GB, free: 10.64 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009019/10.64, allocations: 0.5415 MB / 3.37 GB, free: 10.14 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.135e-05/10.64, allocations: 37.7 kB / 3.37 GB, free: 10.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003045/10.64, allocations: 399.7 kB / 3.371 GB, free: 9.734 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/10.64, allocations: 177.8 kB / 3.371 GB, free: 9.582 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.214e-05/10.64, allocations: 16 kB / 3.371 GB, free: 9.566 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002136/10.64, allocations: 377.3 kB / 3.371 GB, free: 9.207 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005328/10.64, allocations: 221 kB / 3.372 GB, free: 9.004 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000716/10.64, allocations: 0.5817 MB / 3.372 GB, free: 8.281 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007018/10.64, allocations: 334.6 kB / 3.372 GB, free: 7.992 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/10.64, allocations: 4 kB / 3.372 GB, free: 7.988 MB / 458.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002185/10.64, allocations: 0.8735 MB / 3.373 GB, free: 7.168 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.42e-05/10.64, allocations: 12 kB / 3.373 GB, free: 7.156 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.259e-05/10.64, allocations: 12 kB / 3.373 GB, free: 7.145 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000416/10.64, allocations: 65.61 kB / 3.373 GB, free: 7.078 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002387/10.64, allocations: 291.5 kB / 3.374 GB, free: 6.793 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002064/10.65, allocations: 1.968 MB / 3.376 GB, free: 4.672 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/10.65, allocations: 60.06 kB / 3.376 GB, free: 4.613 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/10.65, allocations: 47.98 kB / 3.376 GB, free: 4.566 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.0003108/10.65, allocations: 172.6 kB / 3.376 GB, free: 4.391 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001922/10.65, allocations: 67.16 kB / 3.376 GB, free: 4.324 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003957/10.65, allocations: 2.212 MB / 3.378 GB, free: 2.102 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.437e-05/10.65, allocations: 31.78 kB / 3.378 GB, free: 2.074 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/10.65, allocations: 4 kB / 3.378 GB, free: 2.07 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/10.65, allocations: 0 / 3.378 GB, free: 2.07 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3465/11, allocations: 3.265 MB / 3.381 GB, free: 62.63 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.958e-06/11, allocations: 1.469 kB / 3.381 GB, free: 62.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001916/11, allocations: 190.6 kB / 3.381 GB, free: 62.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005582/11, allocations: 82.48 kB / 3.382 GB, free: 62.62 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.157e-05/11, allocations: 13.84 kB / 3.382 GB, free: 62.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001712/11, allocations: 1.994 MB / 3.383 GB, free: 60.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/11, allocations: 0 / 3.383 GB, free: 60.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00374/11.01, allocations: 1.973 MB / 3.385 GB, free: 60.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007888/11.01, allocations: 280.7 kB / 3.386 GB, free: 60.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001595/11.01, allocations: 12.23 kB / 3.386 GB, free: 60.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/11.01, allocations: 62.03 kB / 3.386 GB, free: 60.43 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/11.01, allocations: 35.27 kB / 3.386 GB, free: 60.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.122e-05/11.01, allocations: 26.05 kB / 3.386 GB, free: 60.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001085/11.01, allocations: 0.4897 MB / 3.386 GB, free: 60.33 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.4e-07/11.01, allocations: 0 / 3.386 GB, free: 60.33 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006787/11.02, allocations: 1.125 MB / 3.387 GB, free: 60.33 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.01526/11.03, allocations: 4.03 MB / 3.391 GB, free: 59.39 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003416/11.04, allocations: 0.9273 MB / 3.392 GB, free: 59.38 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/11.04, allocations: 1.156 kB / 3.392 GB, free: 59.38 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002094/11.04, allocations: 0.662 MB / 3.393 GB, free: 59.38 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003405/11.04, allocations: 354.4 kB / 3.393 GB, free: 59.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009274/11.05, allocations: 2.255 MB / 3.395 GB, free: 58.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000986/11.05, allocations: 1.135 MB / 3.397 GB, free: 58.27 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002009/11.05, allocations: 452.3 kB / 3.397 GB, free: 58.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007392/11.06, allocations: 388.8 kB / 3.397 GB, free: 58.25 MB / 458.7 MB Notification: Performance of SimCode: time 9.51e-07/11.06, allocations: 2.031 kB / 3.397 GB, free: 58.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1358/11.19, allocations: 53.24 MB / 3.449 GB, free: 56.52 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00032/11.19, allocations: 255.7 kB / 3.45 GB, free: 56.18 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.675/15.87, allocations: 0 / 3.45 GB, free: 56.18 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat