Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.PumpingSystem,fileNamePrefix="Modelica_trunk_cpp_Modelica_Fluid_Examples_PumpingSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.229/2.229, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.257e-05/4.283e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1268, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.253/8.38, allocations: 2.798 GB / 3.133 GB, free: 43.34 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/8.38, allocations: 77.58 kB / 3.133 GB, free: 43.31 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.746/12.13, allocations: 0.713 GB / 3.846 GB, free: 34.14 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.914e-06/12.13, allocations: 0 / 3.846 GB, free: 34.14 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001286/12.13, allocations: 33.06 kB / 3.846 GB, free: 34.13 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.01291/12.14, allocations: 2.725 MB / 3.849 GB, free: 32.58 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/12.14, allocations: 11.88 kB / 3.849 GB, free: 32.58 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000703/12.14, allocations: 182.2 kB / 3.849 GB, free: 32.46 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006249/12.15, allocations: 0.5794 MB / 3.849 GB, free: 32.34 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003809/12.15, allocations: 0.9745 MB / 3.85 GB, free: 31.8 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002855/12.15, allocations: 190.9 kB / 3.85 GB, free: 31.66 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006168/12.15, allocations: 123.8 kB / 3.851 GB, free: 31.62 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006681/12.16, allocations: 2.012 MB / 3.853 GB, free: 30.69 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.925e-05/12.16, allocations: 11.91 kB / 3.853 GB, free: 30.68 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002896/12.16, allocations: 50.39 kB / 3.853 GB, free: 30.64 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001458/12.16, allocations: 78.73 kB / 3.853 GB, free: 30.64 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006116/12.16, allocations: 1.734 MB / 3.854 GB, free: 30.08 MB / 474.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.02059/12.18, allocations: 9.307 MB / 3.863 GB, free: 23.23 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004553/12.19, allocations: 1.496 MB / 3.865 GB, free: 21.89 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001693/12.19, allocations: 0.6751 MB / 3.866 GB, free: 21.26 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5976/12.79, allocations: 63.62 MB / 3.928 GB, free: 38.83 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003948/12.79, allocations: 1.103 MB / 3.929 GB, free: 38.71 MB / 490.7 MB Notification: Performance of pre-optimization done (n=110): time 4.569e-06/12.79, allocations: 0 / 3.929 GB, free: 38.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=121): time 0.02215/12.81, allocations: 5.499 MB / 3.934 GB, free: 37.76 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/12.82, allocations: 308.5 kB / 3.934 GB, free: 37.41 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/12.82, allocations: 0.9016 MB / 3.935 GB, free: 37.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003933/12.82, allocations: 48.28 kB / 3.935 GB, free: 37.22 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004916/12.82, allocations: 0.5566 MB / 3.936 GB, free: 36.95 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006185/12.82, allocations: 417.1 kB / 3.936 GB, free: 36.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/12.82, allocations: 28.66 kB / 3.936 GB, free: 36.75 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/12.82, allocations: 365.6 kB / 3.937 GB, free: 36.43 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001624/12.82, allocations: 0.6093 MB / 3.937 GB, free: 36.43 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001849/12.82, allocations: 0.9959 MB / 3.938 GB, free: 35.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001811/12.82, allocations: 0.7131 MB / 3.939 GB, free: 35.97 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/12.82, allocations: 3.125 kB / 3.939 GB, free: 35.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.005796/12.83, allocations: 2.02 MB / 3.941 GB, free: 35.82 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009565/12.83, allocations: 4.356 MB / 3.945 GB, free: 31.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.378e-05/12.83, allocations: 9.125 kB / 3.945 GB, free: 31.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01191/12.84, allocations: 1.026 MB / 3.946 GB, free: 31.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002442/12.85, allocations: 292.8 kB / 3.946 GB, free: 31.24 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005696/12.85, allocations: 5.432 MB / 3.952 GB, free: 26.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00274/12.85, allocations: 126 kB / 3.952 GB, free: 26.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002913/12.85, allocations: 76.34 kB / 3.952 GB, free: 26.79 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/12.85, allocations: 3.875 kB / 3.952 GB, free: 26.79 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005509/12.86, allocations: 1.878 MB / 3.954 GB, free: 26.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-05/12.86, allocations: 15.16 kB / 3.954 GB, free: 26.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01081/12.87, allocations: 0.8957 MB / 3.955 GB, free: 26.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002335/12.87, allocations: 290.5 kB / 3.955 GB, free: 26.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004702/12.88, allocations: 4.762 MB / 3.96 GB, free: 22.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/12.88, allocations: 129.2 kB / 3.96 GB, free: 22.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002173/12.88, allocations: 69.73 kB / 3.96 GB, free: 22.73 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,reservoir.medium.phase,pumps.medium.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 150 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {2 1,1 6,2 7,1 1,2 3,1 2,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005881/12.88, allocations: 202.9 kB / 3.96 GB, free: 22.62 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004648/12.88, allocations: 140.1 kB / 3.96 GB, free: 22.56 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00929/12.89, allocations: 4.885 MB / 3.965 GB, free: 22.12 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.388e-05/12.89, allocations: 52.97 kB / 3.965 GB, free: 22.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.443e-06/12.89, allocations: 1.422 kB / 3.965 GB, free: 22.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.301e-05/12.89, allocations: 11.61 kB / 3.965 GB, free: 22.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/12.9, allocations: 6.684 MB / 3.971 GB, free: 21.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/12.9, allocations: 0 / 3.971 GB, free: 21.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/12.91, allocations: 173.9 kB / 3.972 GB, free: 21.57 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007555/12.91, allocations: 1.484 MB / 3.973 GB, free: 21.49 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004294/12.91, allocations: 38.36 kB / 3.973 GB, free: 21.49 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004687/12.92, allocations: 4.442 MB / 3.977 GB, free: 18.37 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/12.92, allocations: 3.188 kB / 3.977 GB, free: 18.37 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009792/12.93, allocations: 4.839 MB / 3.982 GB, free: 17.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/12.93, allocations: 0.5468 MB / 3.983 GB, free: 17.59 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005573/12.93, allocations: 29.56 kB / 3.983 GB, free: 17.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002371/12.93, allocations: 105.3 kB / 3.983 GB, free: 17.58 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004972/12.93, allocations: 116.7 kB / 3.983 GB, free: 17.58 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/12.93, allocations: 55.52 kB / 3.983 GB, free: 17.58 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00205/12.94, allocations: 0.9698 MB / 3.984 GB, free: 17.46 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.11e-07/12.94, allocations: 0 / 3.984 GB, free: 17.46 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0108/12.95, allocations: 2.082 MB / 3.986 GB, free: 17.37 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02332/12.97, allocations: 7.688 MB / 3.994 GB, free: 15.89 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009486/12.98, allocations: 3.189 MB / 3.997 GB, free: 15.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/12.98, allocations: 0 / 3.997 GB, free: 15.64 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003922/12.98, allocations: 1.456 MB / 3.998 GB, free: 15.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005829/12.99, allocations: 0.6482 MB / 3.999 GB, free: 15.61 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01531/13, allocations: 4.451 MB / 4.003 GB, free: 14.72 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/13.01, allocations: 1.53 MB / 4.005 GB, free: 13.98 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/13.01, allocations: 0.7663 MB / 4.005 GB, free: 13.98 MB / 490.7 MB Notification: Performance of SimCode: time 1.253e-06/13.01, allocations: 0 / 4.005 GB, free: 13.98 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.974/17.98, allocations: 103.4 MB / 4.106 GB, free: 68.93 MB / 0.4948 GB