Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.645/1.645, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.673e-05/2.671e-05, allocations: 4 kB / 219.5 MB, free: 7.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2608, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.095/7.356, allocations: 2.504 GB / 2.756 GB, free: 68.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/7.356, allocations: 67.12 kB / 2.756 GB, free: 68.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4748/7.831, allocations: 103.9 MB / 2.857 GB, free: 36.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/7.831, allocations: 0 / 2.857 GB, free: 36.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.437e-05/7.831, allocations: 8 kB / 2.857 GB, free: 36.66 MB / 362.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.007981/7.839, allocations: 1.143 MB / 2.858 GB, free: 35.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/7.839, allocations: 16.03 kB / 2.859 GB, free: 35.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006556/7.84, allocations: 51.77 kB / 2.859 GB, free: 35.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002935/7.84, allocations: 215.2 kB / 2.859 GB, free: 35.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/7.84, allocations: 7.938 kB / 2.859 GB, free: 35.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.393e-05/7.84, allocations: 8 kB / 2.859 GB, free: 35.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005499/7.841, allocations: 208.5 kB / 2.859 GB, free: 34.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003556/7.841, allocations: 204.9 kB / 2.859 GB, free: 34.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/7.841, allocations: 0 / 2.859 GB, free: 34.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/7.841, allocations: 0 / 2.859 GB, free: 34.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/7.841, allocations: 4 kB / 2.859 GB, free: 34.7 MB / 362.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.00159/7.843, allocations: 1.157 MB / 2.86 GB, free: 33.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/7.843, allocations: 168.1 kB / 2.86 GB, free: 33.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/7.843, allocations: 98.89 kB / 2.861 GB, free: 33.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3803/8.224, allocations: 47.27 MB / 2.907 GB, free: 57.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/8.224, allocations: 36.62 kB / 2.907 GB, free: 57.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.955e-06/8.224, allocations: 0 / 2.907 GB, free: 57.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.007041/8.231, allocations: 1.217 MB / 2.908 GB, free: 57.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/8.231, allocations: 114.6 kB / 2.908 GB, free: 57.44 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/8.231, allocations: 110.3 kB / 2.908 GB, free: 57.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.089e-05/8.231, allocations: 25.7 kB / 2.908 GB, free: 57.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.237e-05/8.231, allocations: 171.8 kB / 2.908 GB, free: 57.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/8.231, allocations: 117.3 kB / 2.908 GB, free: 57.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/8.231, allocations: 0 / 2.908 GB, free: 57.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.274e-05/8.231, allocations: 325.2 kB / 2.909 GB, free: 56.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002368/8.232, allocations: 100.8 kB / 2.909 GB, free: 56.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002732/8.232, allocations: 159.8 kB / 2.909 GB, free: 56.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/8.233, allocations: 170.4 kB / 2.909 GB, free: 56.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/8.233, allocations: 7.062 kB / 2.909 GB, free: 56.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001738/8.235, allocations: 395.8 kB / 2.91 GB, free: 56.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/8.235, allocations: 7.844 kB / 2.91 GB, free: 56.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/8.235, allocations: 3.594 kB / 2.91 GB, free: 56.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002442/8.235, allocations: 32.8 kB / 2.91 GB, free: 56.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008236/8.236, allocations: 95.58 kB / 2.91 GB, free: 56.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004737/8.236, allocations: 0.5489 MB / 2.91 GB, free: 56.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000509/8.237, allocations: 18.09 kB / 2.91 GB, free: 56.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.113e-05/8.237, allocations: 16.66 kB / 2.91 GB, free: 56.14 MB / 362.7 MB 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.0001511/8.237, allocations: 119.8 kB / 2.91 GB, free: 56.03 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001731/8.239, allocations: 361.6 kB / 2.911 GB, free: 55.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/8.239, allocations: 15 kB / 2.911 GB, free: 55.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002551/8.242, allocations: 1.417 MB / 2.912 GB, free: 55.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.632e-05/8.242, allocations: 25 kB / 2.912 GB, free: 55.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/8.242, allocations: 7.562 kB / 2.912 GB, free: 55.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/8.242, allocations: 4 kB / 2.912 GB, free: 55.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003578/8.245, allocations: 1.873 MB / 2.914 GB, free: 55.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/8.245, allocations: 0 / 2.914 GB, free: 55.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008189/8.246, allocations: 87.5 kB / 2.914 GB, free: 55.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003427/8.247, allocations: 66.8 kB / 2.914 GB, free: 55.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/8.247, allocations: 10.53 kB / 2.914 GB, free: 55.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000443/8.247, allocations: 0.6143 MB / 2.915 GB, free: 54.92 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/8.247, allocations: 3.938 kB / 2.915 GB, free: 54.92 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/8.25, allocations: 1.664 MB / 2.916 GB, free: 54.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/8.25, allocations: 126.8 kB / 2.916 GB, free: 54.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.763e-05/8.25, allocations: 5.656 kB / 2.916 GB, free: 54.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006166/8.251, allocations: 21.25 kB / 2.917 GB, free: 54.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/8.251, allocations: 38.28 kB / 2.917 GB, free: 54.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.343e-05/8.251, allocations: 18.22 kB / 2.917 GB, free: 54.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.137e-05/8.251, allocations: 90.25 kB / 2.917 GB, free: 54.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.392e-06/8.251, allocations: 0 / 2.917 GB, free: 54.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005091/8.256, allocations: 0.9395 MB / 2.918 GB, free: 54.23 MB / 362.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: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,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): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01279/8.269, allocations: 3.766 MB / 2.921 GB, free: 52.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001791/8.271, allocations: 0.5325 MB / 2.922 GB, free: 52.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/8.271, allocations: 0 / 2.922 GB, free: 52.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/8.272, allocations: 483.2 kB / 2.922 GB, free: 52.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/8.273, allocations: 72.42 kB / 2.922 GB, free: 52.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008412/8.282, allocations: 1.472 MB / 2.924 GB, free: 52.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/8.282, allocations: 0.8275 MB / 2.925 GB, free: 51.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004779/8.283, allocations: 133.4 kB / 2.925 GB, free: 51.7 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/8.283, allocations: 0 / 2.925 GB, free: 51.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.432/11.71, allocations: 25.59 MB / 2.95 GB, free: 49.3 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat