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 2.018/2.018, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.163e-05/4.183e-05, allocations: 4 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2573, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.244/7.501, allocations: 2.504 GB / 2.762 GB, free: 68.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/7.501, allocations: 63.59 kB / 2.762 GB, free: 68.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7132/8.215, allocations: 105.6 MB / 2.865 GB, free: 73.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.555e-06/8.215, allocations: 0.5625 kB / 2.865 GB, free: 73.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/8.215, allocations: 7.188 kB / 2.865 GB, free: 73.76 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.008346/8.223, allocations: 1.141 MB / 2.866 GB, free: 73.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/8.223, allocations: 7.531 kB / 2.866 GB, free: 73.15 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.281e-05/8.223, allocations: 51.56 kB / 2.866 GB, free: 73.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006673/8.224, allocations: 53.05 kB / 2.866 GB, free: 73.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/8.224, allocations: 224 kB / 2.867 GB, free: 72.9 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/8.224, allocations: 11 kB / 2.867 GB, free: 72.9 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.666e-05/8.224, allocations: 16.47 kB / 2.867 GB, free: 72.9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/8.226, allocations: 369.3 kB / 2.867 GB, free: 72.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/8.226, allocations: 3.75 kB / 2.867 GB, free: 72.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.271e-05/8.226, allocations: 12.64 kB / 2.867 GB, free: 72.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/8.226, allocations: 3.562 kB / 2.867 GB, free: 72.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/8.227, allocations: 304.1 kB / 2.867 GB, free: 72.8 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.001806/8.229, allocations: 1.189 MB / 2.868 GB, free: 71.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009153/8.23, allocations: 269.1 kB / 2.869 GB, free: 71.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/8.23, allocations: 89.14 kB / 2.869 GB, free: 71.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1476/8.378, allocations: 47.27 MB / 2.915 GB, free: 41.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.78e-05/8.378, allocations: 44.38 kB / 2.915 GB, free: 41.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.605e-06/8.378, allocations: 0 / 2.915 GB, free: 41.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.008796/8.387, allocations: 1.425 MB / 2.916 GB, free: 41.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/8.387, allocations: 118 kB / 2.917 GB, free: 41.4 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/8.387, allocations: 111.8 kB / 2.917 GB, free: 41.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.393e-05/8.387, allocations: 34.77 kB / 2.917 GB, free: 41.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.791e-05/8.387, allocations: 172.9 kB / 2.917 GB, free: 41.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/8.387, allocations: 116.7 kB / 2.917 GB, free: 41.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-05/8.387, allocations: 10.97 kB / 2.917 GB, free: 41.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.472e-05/8.387, allocations: 327.9 kB / 2.917 GB, free: 40.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000284/8.388, allocations: 104.8 kB / 2.917 GB, free: 40.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003246/8.388, allocations: 173.4 kB / 2.918 GB, free: 40.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003191/8.388, allocations: 125.5 kB / 2.918 GB, free: 40.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/8.388, allocations: 0 / 2.918 GB, free: 40.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001043/8.389, allocations: 362.1 kB / 2.918 GB, free: 40.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/8.39, allocations: 7.531 kB / 2.918 GB, free: 40.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/8.39, allocations: 224 / 2.918 GB, free: 40.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003286/8.39, allocations: 41.84 kB / 2.918 GB, free: 40.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008277/8.391, allocations: 100.4 kB / 2.918 GB, free: 40.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003707/8.391, allocations: 0.5401 MB / 2.919 GB, free: 40.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/8.392, allocations: 23 kB / 2.919 GB, free: 40.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/8.392, allocations: 18.16 kB / 2.919 GB, free: 40.03 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.0001431/8.392, allocations: 123.6 kB / 2.919 GB, free: 39.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/8.392, allocations: 19.33 kB / 2.919 GB, free: 39.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002355/8.394, allocations: 1.426 MB / 2.92 GB, free: 39.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.182e-05/8.394, allocations: 21.53 kB / 2.92 GB, free: 39.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/8.394, allocations: 0 / 2.92 GB, free: 39.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/8.394, allocations: 4 kB / 2.92 GB, free: 39.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003421/8.398, allocations: 1.964 MB / 2.922 GB, free: 37.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/8.398, allocations: 4 kB / 2.922 GB, free: 37.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008051/8.399, allocations: 86.73 kB / 2.922 GB, free: 37.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004437/8.399, allocations: 72.16 kB / 2.922 GB, free: 37.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.412e-05/8.399, allocations: 16 kB / 2.922 GB, free: 37.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003564/8.4, allocations: 0.5868 MB / 2.923 GB, free: 36.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/8.4, allocations: 4.031 kB / 2.923 GB, free: 36.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/8.402, allocations: 1.681 MB / 2.925 GB, free: 35.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/8.402, allocations: 143.5 kB / 2.925 GB, free: 34.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.857e-05/8.402, allocations: 8 kB / 2.925 GB, free: 34.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006247/8.403, allocations: 27.59 kB / 2.925 GB, free: 34.94 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.478e-05/8.403, allocations: 31.16 kB / 2.925 GB, free: 34.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-05/8.403, allocations: 19.73 kB / 2.925 GB, free: 34.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.448e-05/8.403, allocations: 91.28 kB / 2.925 GB, free: 34.81 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/8.403, allocations: 3.938 kB / 2.925 GB, free: 34.81 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004859/8.408, allocations: 0.9592 MB / 2.926 GB, free: 33.88 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.01208/8.42, allocations: 3.768 MB / 2.929 GB, free: 30.37 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001539/8.422, allocations: 0.5436 MB / 2.93 GB, free: 29.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.174e-06/8.422, allocations: 8.125 kB / 2.93 GB, free: 29.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008471/8.423, allocations: 483.7 kB / 2.93 GB, free: 29.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/8.424, allocations: 76.28 kB / 2.931 GB, free: 29.35 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006399/8.43, allocations: 1.498 MB / 2.932 GB, free: 27.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/8.43, allocations: 0.8214 MB / 2.933 GB, free: 27.16 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003515/8.431, allocations: 134.2 kB / 2.933 GB, free: 27.04 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/8.431, allocations: 0 / 2.933 GB, free: 27.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.641/12.07, allocations: 24.84 MB / 2.957 GB, free: 12.29 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