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.66/1.66, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.175e-05/3.178e-05, allocations: 4 kB / 225 MB, free: 2.715 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2579, allocations: 38.77 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.219/7.477, allocations: 2.518 GB / 2.776 GB, free: 49.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/7.477, allocations: 73.03 kB / 2.776 GB, free: 49.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875/10.35, allocations: 0.5339 GB / 3.31 GB, free: 29.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/10.35, allocations: 0 / 3.31 GB, free: 29.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001663/10.35, allocations: 48.31 kB / 3.31 GB, free: 29.43 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.01201/10.36, allocations: 2.745 MB / 3.312 GB, free: 28.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/10.36, allocations: 14.95 kB / 3.312 GB, free: 28.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007491/10.36, allocations: 223.8 kB / 3.313 GB, free: 28.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006384/10.37, allocations: 0.5972 MB / 3.313 GB, free: 27.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005293/10.38, allocations: 1.453 MB / 3.315 GB, free: 27.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002184/10.38, allocations: 140.7 kB / 3.315 GB, free: 27.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000424/10.38, allocations: 146.5 kB / 3.315 GB, free: 27.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008324/10.39, allocations: 2.775 MB / 3.318 GB, free: 27.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-05/10.39, allocations: 9.844 kB / 3.318 GB, free: 27.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003017/10.39, allocations: 63.73 kB / 3.318 GB, free: 27.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002277/10.39, allocations: 128.7 kB / 3.318 GB, free: 27.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008239/10.39, allocations: 2.492 MB / 3.32 GB, free: 27.12 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.02194/10.42, allocations: 11.96 MB / 3.332 GB, free: 19.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005391/10.42, allocations: 1.604 MB / 3.334 GB, free: 19.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/10.42, allocations: 0.7203 MB / 3.334 GB, free: 19.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01398/10.44, allocations: 5.686 MB / 3.34 GB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/10.44, allocations: 43.5 kB / 3.34 GB, free: 15.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 3.306e-06/10.44, allocations: 5.031 kB / 3.34 GB, free: 15.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.02448/10.46, allocations: 5.885 MB / 3.346 GB, free: 14.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/10.46, allocations: 144.2 kB / 3.346 GB, free: 14.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/10.46, allocations: 1.014 MB / 3.347 GB, free: 14.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003075/10.46, allocations: 48.23 kB / 3.347 GB, free: 14.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004839/10.47, allocations: 0.7487 MB / 3.348 GB, free: 14.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004603/10.47, allocations: 430.5 kB / 3.348 GB, free: 13.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/10.47, allocations: 36.5 kB / 3.348 GB, free: 13.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/10.47, allocations: 373.6 kB / 3.348 GB, free: 13.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001781/10.47, allocations: 0.763 MB / 3.349 GB, free: 13.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002007/10.47, allocations: 1.209 MB / 3.35 GB, free: 13.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.64/15.11, allocations: 377.6 MB / 3.719 GB, free: 74.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/15.11, allocations: 3.781 kB / 3.719 GB, free: 74.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.007387/15.12, allocations: 2.414 MB / 3.721 GB, free: 74.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001117/15.12, allocations: 5.138 MB / 3.726 GB, free: 69.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.944e-05/15.12, allocations: 12.91 kB / 3.726 GB, free: 69.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002847/15.12, allocations: 0.4968 MB / 3.727 GB, free: 69.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003178/15.12, allocations: 393.4 kB / 3.727 GB, free: 69.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00289/15.13, allocations: 2.866 MB / 3.73 GB, free: 67.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003246/15.13, allocations: 214.5 kB / 3.73 GB, free: 67.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003984/15.13, allocations: 79.84 kB / 3.73 GB, free: 67.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/15.13, allocations: 10.41 kB / 3.73 GB, free: 67.36 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006788/15.14, allocations: 2.283 MB / 3.733 GB, free: 67.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.315e-05/15.14, allocations: 13.84 kB / 3.733 GB, free: 67.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002268/15.14, allocations: 475.8 kB / 3.733 GB, free: 67.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/15.14, allocations: 389.7 kB / 3.733 GB, free: 67.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002803/15.15, allocations: 2.868 MB / 3.736 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002631/15.15, allocations: 206.5 kB / 3.736 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002837/15.15, allocations: 77.12 kB / 3.737 GB, free: 65.19 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.0006307/15.15, allocations: 224.7 kB / 3.737 GB, free: 65.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004563/15.15, allocations: 135.7 kB / 3.737 GB, free: 65.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009902/15.16, allocations: 5.35 MB / 3.742 GB, free: 64.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.979e-05/15.16, allocations: 61.41 kB / 3.742 GB, free: 64.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/15.16, allocations: 6.953 kB / 3.742 GB, free: 64.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007952/15.17, allocations: 4.908 MB / 3.747 GB, free: 63.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.015/15.18, allocations: 7.9 MB / 3.755 GB, free: 63.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/15.18, allocations: 0 / 3.755 GB, free: 63.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/15.19, allocations: 288.1 kB / 3.755 GB, free: 63.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003052/15.19, allocations: 0.5578 MB / 3.755 GB, free: 63.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003167/15.19, allocations: 38.8 kB / 3.756 GB, free: 63.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002703/15.19, allocations: 2.933 MB / 3.758 GB, free: 61.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/15.19, allocations: 3.375 kB / 3.758 GB, free: 61.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009887/15.2, allocations: 4.987 MB / 3.763 GB, free: 60.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/15.2, allocations: 0.5111 MB / 3.764 GB, free: 60.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004707/15.2, allocations: 30.62 kB / 3.764 GB, free: 60.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00225/15.21, allocations: 165.4 kB / 3.764 GB, free: 60.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003936/15.21, allocations: 121.3 kB / 3.764 GB, free: 60.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/15.21, allocations: 46.19 kB / 3.764 GB, free: 60.58 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001671/15.21, allocations: 0.8066 MB / 3.765 GB, free: 60.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.91e-07/15.21, allocations: 0 / 3.765 GB, free: 60.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009696/15.22, allocations: 2.161 MB / 3.767 GB, free: 60.46 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.02342/15.24, allocations: 7.672 MB / 3.774 GB, free: 59.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008562/15.25, allocations: 3.514 MB / 3.778 GB, free: 59.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/15.25, allocations: 0 / 3.778 GB, free: 59.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00357/15.25, allocations: 1.602 MB / 3.779 GB, free: 59.41 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005576/15.26, allocations: 0.6228 MB / 3.78 GB, free: 59.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2512/15.51, allocations: 79.26 MB / 3.857 GB, free: 12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001526/15.51, allocations: 1.784 MB / 3.859 GB, free: 10.18 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001861/15.52, allocations: 0.8664 MB / 3.86 GB, free: 9.316 MB / 426.7 MB Notification: Performance of SimCode: time 1.793e-06/15.52, allocations: 4 kB / 3.86 GB, free: 9.312 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.799/20.31, allocations: 96.44 MB / 3.954 GB, free: 55.92 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