Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_1_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.096/1.096, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.299e-05/2.325e-05, allocations: 0 / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1729, allocations: 25.14 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.131/4.304, allocations: 1.423 GB / 1.596 GB, free: 47.35 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/4.304, allocations: 51.55 kB / 1.596 GB, free: 47.35 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6943/4.998, allocations: 108.8 MB / 1.702 GB, free: 32.57 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.835e-06/4.998, allocations: 0 / 1.702 GB, free: 32.57 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.546e-05/4.998, allocations: 5.719 kB / 1.702 GB, free: 32.57 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.008511/5.007, allocations: 1.147 MB / 1.703 GB, free: 31.94 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/5.007, allocations: 11.38 kB / 1.703 GB, free: 31.94 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.862e-05/5.007, allocations: 51.75 kB / 1.703 GB, free: 31.9 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.457e-05/5.007, allocations: 11.66 kB / 1.703 GB, free: 31.89 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/5.007, allocations: 213.7 kB / 1.704 GB, free: 31.69 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.119e-05/5.007, allocations: 18.81 kB / 1.704 GB, free: 31.69 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.984e-05/5.008, allocations: 18.44 kB / 1.704 GB, free: 31.69 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/5.009, allocations: 315.4 kB / 1.704 GB, free: 31.59 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.1e-05/5.009, allocations: 3.656 kB / 1.704 GB, free: 31.59 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.211e-05/5.009, allocations: 7.625 kB / 1.704 GB, free: 31.58 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/5.009, allocations: 3.812 kB / 1.704 GB, free: 31.58 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001143/5.01, allocations: 261.7 kB / 1.704 GB, free: 31.57 MB / 234.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.001823/5.012, allocations: 1.3 MB / 1.705 GB, free: 30.44 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005579/5.012, allocations: 199.1 kB / 1.706 GB, free: 30.36 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/5.013, allocations: 83.98 kB / 1.706 GB, free: 30.34 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1689/5.182, allocations: 46.56 MB / 1.751 GB, free: 7.109 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/5.182, allocations: 38.25 kB / 1.751 GB, free: 7.066 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/5.182, allocations: 0 / 1.751 GB, free: 7.066 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.008646/5.19, allocations: 1.38 MB / 1.753 GB, free: 6.102 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/5.19, allocations: 114.3 kB / 1.753 GB, free: 5.969 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/5.191, allocations: 117.4 kB / 1.753 GB, free: 5.855 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/5.191, allocations: 33.33 kB / 1.753 GB, free: 5.824 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.034e-05/5.191, allocations: 170.2 kB / 1.753 GB, free: 5.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/5.191, allocations: 114.2 kB / 1.753 GB, free: 5.574 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/5.191, allocations: 11.75 kB / 1.753 GB, free: 5.57 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/5.191, allocations: 322.4 kB / 1.753 GB, free: 5.254 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/5.191, allocations: 109.3 kB / 1.753 GB, free: 5.191 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003577/5.192, allocations: 168.1 kB / 1.754 GB, free: 5.055 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/5.192, allocations: 124.9 kB / 1.754 GB, free: 4.988 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/5.192, allocations: 0 / 1.754 GB, free: 4.988 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001137/5.193, allocations: 358.6 kB / 1.754 GB, free: 4.75 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/5.193, allocations: 12.16 kB / 1.754 GB, free: 4.738 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/5.193, allocations: 4 kB / 1.754 GB, free: 4.734 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003368/5.194, allocations: 38.83 kB / 1.754 GB, free: 4.707 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008614/5.195, allocations: 96.98 kB / 1.754 GB, free: 4.633 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005217/5.195, allocations: 0.5451 MB / 1.755 GB, free: 4.082 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005176/5.196, allocations: 32.41 kB / 1.755 GB, free: 4.062 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.609e-05/5.196, allocations: 11.62 kB / 1.755 GB, free: 4.055 MB / 250.7 MB Warning: Assuming fixed start value for the following 3 variables: V:VARIABLE(start = 0.1 unit = "m3" ) type: Real medium.h:VARIABLE(min = -100000000.0 max = 100000000.0 start = 100000.0 unit = "J/kg" nominal = 1000000.0 stateSelect=StateSelect.prefer ) "Specific enthalpy of medium" type: Real medium.p:VARIABLE(min = max(0.0, max(0.0, 2000.0)) max = min(100000000.0, min(100000000.0, 1000000000.0)) start = 100000.0 unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.0002907/5.196, allocations: 138.3 kB / 1.755 GB, free: 3.93 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/5.196, allocations: 19.77 kB / 1.755 GB, free: 3.91 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/5.199, allocations: 1.16 MB / 1.756 GB, free: 3.113 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.87e-05/5.199, allocations: 15.55 kB / 1.756 GB, free: 3.105 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/5.199, allocations: 4 kB / 1.756 GB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/5.199, allocations: 3.141 kB / 1.756 GB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003566/5.202, allocations: 1.6 MB / 1.758 GB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/5.202, allocations: 3.938 kB / 1.758 GB, free: 1.609 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007947/5.203, allocations: 82.17 kB / 1.758 GB, free: 1.547 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004645/5.204, allocations: 71.52 kB / 1.758 GB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.618e-05/5.204, allocations: 19.66 kB / 1.758 GB, free: 1.473 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000512/5.204, allocations: 0.5864 MB / 1.758 GB, free: 0.8711 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/5.204, allocations: 0 / 1.758 GB, free: 0.8711 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1865/5.391, allocations: 1.516 MB / 1.76 GB, free: 46.74 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/5.391, allocations: 115.8 kB / 1.76 GB, free: 46.64 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.45e-05/5.391, allocations: 15.31 kB / 1.76 GB, free: 46.64 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/5.392, allocations: 27 kB / 1.76 GB, free: 46.64 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/5.392, allocations: 34.19 kB / 1.76 GB, free: 46.64 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.298e-05/5.392, allocations: 20.38 kB / 1.76 GB, free: 46.64 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.983e-05/5.392, allocations: 88.67 kB / 1.76 GB, free: 46.57 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.11e-07/5.392, allocations: 0 / 1.76 GB, free: 46.57 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.005316/5.397, allocations: 1.021 MB / 1.761 GB, free: 46.57 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 9 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.01253/5.41, allocations: 3.702 MB / 1.765 GB, free: 45.16 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002106/5.412, allocations: 0.514 MB / 1.765 GB, free: 45.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/5.412, allocations: 0 / 1.765 GB, free: 45.16 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/5.414, allocations: 444.5 kB / 1.766 GB, free: 45.15 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/5.415, allocations: 65.64 kB / 1.766 GB, free: 45.15 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006148/5.421, allocations: 1.402 MB / 1.767 GB, free: 44.73 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/5.422, allocations: 0.8032 MB / 1.768 GB, free: 44.04 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003311/5.422, allocations: 113.4 kB / 1.768 GB, free: 44.03 MB / 250.7 MB Notification: Performance of SimCode: time 1.302e-06/5.422, allocations: 2.188 kB / 1.768 GB, free: 44.03 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.396/8.818, allocations: 24.73 MB / 1.792 GB, free: 41.92 MB / 250.7 MB