Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.651/1.651, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.221e-05/3.225e-05, allocations: 3.438 kB / 225.1 MB, free: 2.621 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2597, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.159/7.418, allocations: 2.518 GB / 2.776 GB, free: 48.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/7.419, allocations: 71.66 kB / 2.776 GB, free: 48.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.897/10.32, allocations: 0.5339 GB / 3.31 GB, free: 29.51 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/10.32, allocations: 0 / 3.31 GB, free: 29.51 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001438/10.32, allocations: 50.03 kB / 3.31 GB, free: 29.5 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.01143/10.33, allocations: 2.74 MB / 3.313 GB, free: 28.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/10.33, allocations: 7.844 kB / 3.313 GB, free: 28.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005341/10.33, allocations: 229.8 kB / 3.313 GB, free: 28.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006028/10.33, allocations: 0.5981 MB / 3.313 GB, free: 28.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005112/10.34, allocations: 1.451 MB / 3.315 GB, free: 27.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/10.34, allocations: 140.8 kB / 3.315 GB, free: 27.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000361/10.34, allocations: 146.9 kB / 3.315 GB, free: 27.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007704/10.35, allocations: 2.757 MB / 3.318 GB, free: 27.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.46e-05/10.35, allocations: 8.125 kB / 3.318 GB, free: 27.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002778/10.35, allocations: 65.59 kB / 3.318 GB, free: 27.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002203/10.35, allocations: 126.7 kB / 3.318 GB, free: 27.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00776/10.36, allocations: 2.464 MB / 3.32 GB, free: 27.21 MB / 378.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.02057/10.38, allocations: 11.95 MB / 3.332 GB, free: 19.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005131/10.38, allocations: 1.592 MB / 3.334 GB, free: 19.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/10.38, allocations: 0.7226 MB / 3.334 GB, free: 19.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01367/10.4, allocations: 5.692 MB / 3.34 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/10.4, allocations: 42.78 kB / 3.34 GB, free: 15.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 3.367e-06/10.4, allocations: 1.125 kB / 3.34 GB, free: 15.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.02403/10.42, allocations: 5.882 MB / 3.346 GB, free: 15.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.394e-05/10.42, allocations: 146.4 kB / 3.346 GB, free: 14.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001963/10.42, allocations: 1.008 MB / 3.347 GB, free: 14.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000211/10.42, allocations: 51.45 kB / 3.347 GB, free: 14.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004915/10.42, allocations: 0.7495 MB / 3.347 GB, free: 14.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004259/10.42, allocations: 431.3 kB / 3.348 GB, free: 14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/10.42, allocations: 35.12 kB / 3.348 GB, free: 14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/10.42, allocations: 378.8 kB / 3.348 GB, free: 13.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/10.43, allocations: 0.7604 MB / 3.349 GB, free: 13.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001971/10.43, allocations: 1.198 MB / 3.35 GB, free: 13.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.582/15.01, allocations: 377.6 MB / 3.719 GB, free: 74.97 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.264e-05/15.01, allocations: 3.688 kB / 3.719 GB, free: 74.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.00691/15.02, allocations: 2.378 MB / 3.721 GB, free: 74.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001091/15.02, allocations: 5.137 MB / 3.726 GB, free: 69.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.673e-05/15.02, allocations: 15.14 kB / 3.726 GB, free: 69.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0027/15.02, allocations: 0.4917 MB / 3.727 GB, free: 69.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003073/15.02, allocations: 393.8 kB / 3.727 GB, free: 69.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002807/15.03, allocations: 2.868 MB / 3.73 GB, free: 67.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002998/15.03, allocations: 210.2 kB / 3.73 GB, free: 67.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002289/15.03, allocations: 75.45 kB / 3.73 GB, free: 67.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/15.03, allocations: 6.562 kB / 3.73 GB, free: 67.45 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006239/15.04, allocations: 2.25 MB / 3.732 GB, free: 67.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/15.04, allocations: 14.5 kB / 3.732 GB, free: 67.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002152/15.04, allocations: 472.9 kB / 3.733 GB, free: 67.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002855/15.04, allocations: 394.9 kB / 3.733 GB, free: 67.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002628/15.04, allocations: 2.862 MB / 3.736 GB, free: 65.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002443/15.05, allocations: 203.8 kB / 3.736 GB, free: 65.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/15.05, allocations: 83.02 kB / 3.736 GB, free: 65.28 MB / 426.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: circular_pipe.mediums[1].p = 1000000.0 annulus_pipe.mediums[1].p = 1000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 11 (boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 182 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005903/15.05, allocations: 220.4 kB / 3.737 GB, free: 65.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004497/15.05, allocations: 136.8 kB / 3.737 GB, free: 65.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009375/15.06, allocations: 5.358 MB / 3.742 GB, free: 64.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.055e-05/15.06, allocations: 61.02 kB / 3.742 GB, free: 64.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/15.06, allocations: 7.562 kB / 3.742 GB, free: 64.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00761/15.07, allocations: 4.898 MB / 3.747 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01404/15.08, allocations: 7.895 MB / 3.755 GB, free: 63.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/15.08, allocations: 3.953 kB / 3.755 GB, free: 63.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002224/15.08, allocations: 294 kB / 3.755 GB, free: 63.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002874/15.09, allocations: 0.5506 MB / 3.755 GB, free: 63.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001837/15.09, allocations: 37.08 kB / 3.755 GB, free: 63.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002651/15.09, allocations: 2.935 MB / 3.758 GB, free: 61.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/15.09, allocations: 6.094 kB / 3.758 GB, free: 61.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009428/15.1, allocations: 4.98 MB / 3.763 GB, free: 60.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/15.1, allocations: 0.5092 MB / 3.764 GB, free: 60.69 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003621/15.1, allocations: 35.09 kB / 3.764 GB, free: 60.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001983/15.1, allocations: 168.7 kB / 3.764 GB, free: 60.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003478/15.1, allocations: 119.1 kB / 3.764 GB, free: 60.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/15.1, allocations: 42.3 kB / 3.764 GB, free: 60.67 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001584/15.1, allocations: 0.8054 MB / 3.765 GB, free: 60.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.41e-07/15.1, allocations: 0 / 3.765 GB, free: 60.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009423/15.11, allocations: 2.168 MB / 3.767 GB, free: 60.55 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02178/15.13, allocations: 7.689 MB / 3.774 GB, free: 59.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008478/15.14, allocations: 3.458 MB / 3.778 GB, free: 59.51 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.716e-06/15.14, allocations: 3.875 kB / 3.778 GB, free: 59.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003437/15.15, allocations: 1.597 MB / 3.779 GB, free: 59.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005924/15.15, allocations: 0.6119 MB / 3.78 GB, free: 59.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2349/15.39, allocations: 79.26 MB / 3.857 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001399/15.39, allocations: 1.781 MB / 3.859 GB, free: 10.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001684/15.39, allocations: 0.8742 MB / 3.86 GB, free: 9.703 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/15.39, allocations: 0 / 3.86 GB, free: 9.703 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.737/20.13, allocations: 96.38 MB / 3.954 GB, free: 55.68 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.NonCircularPipes_res.mat does not exist to compare? outputFormat=mat