Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.362/2.362, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.371e-05/4.375e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4458/0.4459, allocations: 54.86 MB / 359.9 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.763/8.209, allocations: 2.627 GB / 2.978 GB, free: 121.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000314/8.209, allocations: 93.75 kB / 2.978 GB, free: 121.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.453/10.66, allocations: 0.4906 GB / 3.469 GB, free: 24.38 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.164e-06/10.66, allocations: 3.938 kB / 3.469 GB, free: 24.38 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.698e-05/10.66, allocations: 16 kB / 3.469 GB, free: 24.36 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.00782/10.67, allocations: 1.716 MB / 3.471 GB, free: 22.61 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/10.67, allocations: 12.03 kB / 3.471 GB, free: 22.59 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002634/10.67, allocations: 110.4 kB / 3.471 GB, free: 22.48 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003472/10.67, allocations: 324.1 kB / 3.471 GB, free: 22.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001895/10.68, allocations: 0.6062 MB / 3.472 GB, free: 21.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/10.68, allocations: 108.7 kB / 3.472 GB, free: 21.41 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/10.68, allocations: 63.34 kB / 3.472 GB, free: 21.35 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003651/10.68, allocations: 1.181 MB / 3.473 GB, free: 20.07 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.002e-05/10.68, allocations: 7.938 kB / 3.473 GB, free: 20.06 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001545/10.68, allocations: 34.75 kB / 3.473 GB, free: 20.03 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.921e-05/10.68, allocations: 41.3 kB / 3.473 GB, free: 19.99 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002507/10.68, allocations: 0.8299 MB / 3.474 GB, free: 19.16 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.009014/10.69, allocations: 5.481 MB / 3.479 GB, free: 13.35 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001712/10.69, allocations: 0.5797 MB / 3.48 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/10.69, allocations: 225.6 kB / 3.48 GB, free: 12.52 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5562/11.25, allocations: 49.16 MB / 3.528 GB, free: 52.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.612e-05/11.25, allocations: 41.78 kB / 3.528 GB, free: 52.86 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=42): time 4.539e-06/11.25, allocations: 0 / 3.528 GB, free: 52.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.01059/11.26, allocations: 1.834 MB / 3.53 GB, free: 52.45 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/11.26, allocations: 163 kB / 3.53 GB, free: 52.27 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/11.26, allocations: 0.5305 MB / 3.53 GB, free: 52.13 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001582/11.26, allocations: 36.36 kB / 3.53 GB, free: 52.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004034/11.26, allocations: 434.4 kB / 3.531 GB, free: 51.85 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002853/11.26, allocations: 170.9 kB / 3.531 GB, free: 51.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.666e-05/11.26, allocations: 14.06 kB / 3.531 GB, free: 51.77 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001249/11.26, allocations: 343.8 kB / 3.531 GB, free: 51.46 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009217/11.26, allocations: 220.4 kB / 3.532 GB, free: 51.45 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/11.27, allocations: 0.5797 MB / 3.532 GB, free: 51 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/11.27, allocations: 336.9 kB / 3.532 GB, free: 50.99 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-05/11.27, allocations: 5.969 kB / 3.532 GB, free: 50.99 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00295/11.27, allocations: 0.8078 MB / 3.533 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.441e-05/11.27, allocations: 11.44 kB / 3.533 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-05/11.27, allocations: 11 kB / 3.533 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005577/11.27, allocations: 60.52 kB / 3.533 GB, free: 50.92 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003275/11.27, allocations: 295.3 kB / 3.534 GB, free: 50.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002201/11.28, allocations: 1.97 MB / 3.536 GB, free: 49.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001753/11.28, allocations: 65.19 kB / 3.536 GB, free: 49.09 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001394/11.28, allocations: 48.84 kB / 3.536 GB, free: 49.09 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.0003739/11.28, allocations: 164.5 kB / 3.536 GB, free: 48.98 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002908/11.28, allocations: 72.53 kB / 3.536 GB, free: 48.95 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004678/11.28, allocations: 2.211 MB / 3.538 GB, free: 48.69 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.599e-05/11.28, allocations: 33.44 kB / 3.538 GB, free: 48.69 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/11.28, allocations: 0 / 3.538 GB, free: 48.69 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/11.28, allocations: 7.688 kB / 3.538 GB, free: 48.69 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006993/11.29, allocations: 3.271 MB / 3.541 GB, free: 48.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/11.29, allocations: 0 / 3.541 GB, free: 48.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002162/11.29, allocations: 189.4 kB / 3.541 GB, free: 48.24 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005242/11.29, allocations: 92.98 kB / 3.542 GB, free: 48.23 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.967e-05/11.29, allocations: 11.06 kB / 3.542 GB, free: 48.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/11.3, allocations: 1.986 MB / 3.543 GB, free: 46.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/11.3, allocations: 0 / 3.543 GB, free: 46.39 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003004/11.3, allocations: 1.974 MB / 3.545 GB, free: 46.04 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005887/11.3, allocations: 279.7 kB / 3.546 GB, free: 45.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/11.3, allocations: 11.78 kB / 3.546 GB, free: 45.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/11.3, allocations: 57.86 kB / 3.546 GB, free: 45.89 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/11.3, allocations: 40.97 kB / 3.546 GB, free: 45.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.91e-05/11.3, allocations: 27.89 kB / 3.546 GB, free: 45.88 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0008686/11.3, allocations: 495.6 kB / 3.546 GB, free: 45.78 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.61e-07/11.3, allocations: 6.219 kB / 3.546 GB, free: 45.78 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006299/11.31, allocations: 1.123 MB / 3.547 GB, free: 45.78 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.01356/11.32, allocations: 4.048 MB / 3.551 GB, free: 44.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00316/11.32, allocations: 0.906 MB / 3.552 GB, free: 44.76 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/11.32, allocations: 2.188 kB / 3.552 GB, free: 44.76 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001929/11.33, allocations: 0.6444 MB / 3.553 GB, free: 44.76 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00349/11.33, allocations: 354.9 kB / 3.553 GB, free: 44.75 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008572/11.34, allocations: 2.298 MB / 3.555 GB, free: 44.27 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007366/11.34, allocations: 1.129 MB / 3.557 GB, free: 43.57 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007317/11.34, allocations: 393.8 kB / 3.557 GB, free: 43.56 MB / 0.4948 GB Notification: Performance of SimCode: time 1.503e-06/11.34, allocations: 0 / 3.557 GB, free: 43.56 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.001/15.34, allocations: 44.87 MB / 3.601 GB, free: 40.48 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.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat