Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.868/1.868, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.642e-05/3.638e-05, allocations: 7.984 kB / 273.2 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 48.69 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.646/7.755, allocations: 2.514 GB / 2.829 GB, free: 47.56 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/7.756, allocations: 95.92 kB / 2.829 GB, free: 47.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.557/10.31, allocations: 487.7 MB / 3.305 GB, free: 40.76 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.876e-06/10.31, allocations: 0 / 3.305 GB, free: 40.76 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.177e-05/10.31, allocations: 22.59 kB / 3.305 GB, free: 40.76 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.007501/10.32, allocations: 1.658 MB / 3.307 GB, free: 39.87 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/10.32, allocations: 9.281 kB / 3.307 GB, free: 39.87 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002613/10.32, allocations: 110.8 kB / 3.307 GB, free: 39.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002183/10.32, allocations: 222 kB / 3.307 GB, free: 39.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001644/10.32, allocations: 0.5931 MB / 3.308 GB, free: 39.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/10.33, allocations: 108.8 kB / 3.308 GB, free: 39.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/10.33, allocations: 60.89 kB / 3.308 GB, free: 39.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002535/10.33, allocations: 1.067 MB / 3.309 GB, free: 38.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.549e-05/10.33, allocations: 8.5 kB / 3.309 GB, free: 38.66 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/10.33, allocations: 25.62 kB / 3.309 GB, free: 38.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.384e-05/10.33, allocations: 56.34 kB / 3.309 GB, free: 38.63 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002239/10.33, allocations: 0.8022 MB / 3.31 GB, free: 38.37 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.00762/10.34, allocations: 5.518 MB / 3.315 GB, free: 33.84 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/10.34, allocations: 0.5412 MB / 3.316 GB, free: 33.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004225/10.34, allocations: 200.9 kB / 3.316 GB, free: 33.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1639/10.5, allocations: 53.42 MB / 3.368 GB, free: 12.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.179e-05/10.5, allocations: 38.56 kB / 3.368 GB, free: 12.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=39): time 3.146e-06/10.5, allocations: 0 / 3.368 GB, free: 12.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=44): time 0.007987/10.51, allocations: 1.999 MB / 3.37 GB, free: 10.46 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/10.51, allocations: 187.9 kB / 3.37 GB, free: 10.23 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009017/10.51, allocations: 0.5409 MB / 3.371 GB, free: 9.734 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.519e-05/10.51, allocations: 33.7 kB / 3.371 GB, free: 9.695 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003059/10.51, allocations: 444.8 kB / 3.371 GB, free: 9.285 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/10.51, allocations: 158.9 kB / 3.371 GB, free: 9.148 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/10.51, allocations: 16 kB / 3.371 GB, free: 9.133 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/10.51, allocations: 342.5 kB / 3.372 GB, free: 8.797 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005198/10.51, allocations: 227.5 kB / 3.372 GB, free: 8.594 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007257/10.52, allocations: 0.5983 MB / 3.372 GB, free: 7.84 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007003/10.52, allocations: 341.7 kB / 3.373 GB, free: 7.551 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.325e-06/10.52, allocations: 4 kB / 3.373 GB, free: 7.547 MB / 458.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001895/10.52, allocations: 0.8293 MB / 3.373 GB, free: 6.789 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/10.52, allocations: 12 kB / 3.373 GB, free: 6.777 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/10.52, allocations: 12 kB / 3.374 GB, free: 6.766 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006521/10.52, allocations: 273.2 kB / 3.374 GB, free: 6.578 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/10.53, allocations: 287.8 kB / 3.374 GB, free: 6.344 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/10.53, allocations: 2.019 MB / 3.376 GB, free: 4.234 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/10.53, allocations: 66.56 kB / 3.376 GB, free: 4.176 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.347e-05/10.53, allocations: 43.94 kB / 3.376 GB, free: 4.137 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 10 (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,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 96 * 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 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002684/10.53, allocations: 168.7 kB / 3.376 GB, free: 3.965 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/10.53, allocations: 75.11 kB / 3.376 GB, free: 3.891 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003491/10.53, allocations: 2.007 MB / 3.378 GB, free: 2.066 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-05/10.53, allocations: 26.64 kB / 3.378 GB, free: 2.051 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/10.53, allocations: 0 / 3.378 GB, free: 2.051 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/10.53, allocations: 3.281 kB / 3.378 GB, free: 2.051 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3356/10.87, allocations: 3.072 MB / 3.381 GB, free: 62.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/10.87, allocations: 0 / 3.381 GB, free: 62.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001929/10.87, allocations: 184.7 kB / 3.382 GB, free: 62.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003238/10.88, allocations: 293.2 kB / 3.382 GB, free: 62.89 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/10.88, allocations: 12.55 kB / 3.382 GB, free: 62.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001999/10.88, allocations: 2.075 MB / 3.384 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/10.88, allocations: 5.734 kB / 3.384 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003486/10.88, allocations: 1.934 MB / 3.386 GB, free: 60.74 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007444/10.88, allocations: 285 kB / 3.386 GB, free: 60.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001698/10.88, allocations: 12.41 kB / 3.386 GB, free: 60.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008815/10.88, allocations: 36.06 kB / 3.386 GB, free: 60.64 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/10.88, allocations: 31.25 kB / 3.386 GB, free: 60.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.134e-05/10.88, allocations: 17.59 kB / 3.386 GB, free: 60.64 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001134/10.88, allocations: 0.5455 MB / 3.387 GB, free: 60.55 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.81e-07/10.88, allocations: 0 / 3.387 GB, free: 60.55 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006538/10.89, allocations: 1.13 MB / 3.388 GB, free: 60.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01383/10.9, allocations: 4.083 MB / 3.392 GB, free: 59.47 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003047/10.91, allocations: 0.8698 MB / 3.393 GB, free: 59.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/10.91, allocations: 0.7812 kB / 3.393 GB, free: 59.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001932/10.91, allocations: 0.6023 MB / 3.393 GB, free: 59.46 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003357/10.91, allocations: 356.6 kB / 3.393 GB, free: 59.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008673/10.92, allocations: 2.199 MB / 3.396 GB, free: 59.03 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009168/10.92, allocations: 1.115 MB / 3.397 GB, free: 58.33 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000739/10.92, allocations: 381.5 kB / 3.397 GB, free: 58.32 MB / 458.7 MB Notification: Performance of SimCode: time 1.253e-06/10.92, allocations: 0 / 3.397 GB, free: 58.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.995/14.92, allocations: 44.07 MB / 3.44 GB, free: 56.02 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_pT_res.mat does not exist to compare? outputFormat=mat