Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.382/2.382, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.303e-05/4.31e-05, allocations: 8 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.4067, allocations: 54.85 MB / 359.9 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.88/8.287, allocations: 2.595 GB / 2.947 GB, free: 110.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/8.287, allocations: 87.98 kB / 2.947 GB, free: 110.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.142/12.43, allocations: 0.8134 GB / 3.76 GB, free: 39.78 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.214e-06/12.43, allocations: 2.906 kB / 3.76 GB, free: 39.78 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001629/12.43, allocations: 37.42 kB / 3.76 GB, free: 39.78 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 324 * Number of variables: 324 Notification: Performance of Generate backend data structure: time 0.01314/12.44, allocations: 2.589 MB / 3.763 GB, free: 38.52 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/12.44, allocations: 7.25 kB / 3.763 GB, free: 38.52 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005359/12.44, allocations: 189.6 kB / 3.763 GB, free: 38.48 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005045/12.45, allocations: 467 kB / 3.764 GB, free: 38.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003339/12.45, allocations: 1.001 MB / 3.765 GB, free: 38.06 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000162/12.45, allocations: 118.2 kB / 3.765 GB, free: 38.05 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003266/12.45, allocations: 120.7 kB / 3.765 GB, free: 38.05 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00662/12.46, allocations: 1.913 MB / 3.767 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.006e-05/12.46, allocations: 7.156 kB / 3.767 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002692/12.46, allocations: 58.02 kB / 3.767 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/12.46, allocations: 54.34 kB / 3.767 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00614/12.47, allocations: 1.551 MB / 3.768 GB, free: 37.67 MB / 0.4948 GB 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.01515/12.48, allocations: 9.417 MB / 3.778 GB, free: 31.23 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004131/12.48, allocations: 1.047 MB / 3.779 GB, free: 31.21 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009938/12.49, allocations: 415.1 kB / 3.779 GB, free: 31.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01399/12.5, allocations: 5.484 MB / 3.784 GB, free: 27.34 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/12.5, allocations: 42.47 kB / 3.784 GB, free: 27.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=91): time 3.366e-06/12.5, allocations: 0 / 3.784 GB, free: 27.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=134): time 0.05015/12.55, allocations: 6.992 MB / 3.791 GB, free: 26.19 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/12.55, allocations: 117.8 kB / 3.791 GB, free: 26.07 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/12.55, allocations: 0.6848 MB / 3.792 GB, free: 25.9 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003637/12.55, allocations: 48.17 kB / 3.792 GB, free: 25.87 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004484/12.55, allocations: 0.6623 MB / 3.793 GB, free: 25.47 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006142/12.55, allocations: 455.7 kB / 3.793 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/12.55, allocations: 34.97 kB / 3.793 GB, free: 25.18 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001278/12.55, allocations: 367.9 kB / 3.793 GB, free: 24.87 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/12.55, allocations: 0.5303 MB / 3.794 GB, free: 24.86 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001803/12.56, allocations: 0.9376 MB / 3.795 GB, free: 24.38 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/12.56, allocations: 0.6402 MB / 3.796 GB, free: 24.36 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.388e-05/12.56, allocations: 3.5 kB / 3.796 GB, free: 24.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.009579/12.57, allocations: 2.267 MB / 3.798 GB, free: 24.2 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001133/12.57, allocations: 5.053 MB / 3.803 GB, free: 18.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.17e-05/12.57, allocations: 10.72 kB / 3.803 GB, free: 18.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009066/12.58, allocations: 1.205 MB / 3.804 GB, free: 18.87 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/12.58, allocations: 277.7 kB / 3.804 GB, free: 18.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/12.59, allocations: 7.035 MB / 3.811 GB, free: 29.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003199/12.59, allocations: 187.4 kB / 3.811 GB, free: 29.37 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004611/12.59, allocations: 93.86 kB / 3.811 GB, free: 29.36 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/12.59, allocations: 4.406 kB / 3.811 GB, free: 29.36 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009781/12.6, allocations: 2.153 MB / 3.813 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.661e-05/12.6, allocations: 10.72 kB / 3.813 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006809/12.61, allocations: 0.9735 MB / 3.814 GB, free: 29.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00212/12.61, allocations: 303.8 kB / 3.815 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009635/12.62, allocations: 6.847 MB / 3.821 GB, free: 23.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002658/12.63, allocations: 192.5 kB / 3.821 GB, free: 23.58 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003281/12.63, allocations: 85.55 kB / 3.822 GB, free: 23.58 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 10 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,pumpPolynomial.heatTransfer.states[1].phase,pumpQuadraticLinear.heatTransfer.states[1].phase,pumpLinear.heatTransfer.states[1].phase,pumpLinear.monitoring.state_in.phase,pumpQuadraticLinear.monitoring.state_in.phase,pumpPolynomial.monitoring.state_in.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 7 {2 6,2 8,2 6,2 8,2 8,2 6,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0006678/12.63, allocations: 204.2 kB / 3.822 GB, free: 23.45 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000463/12.63, allocations: 133.5 kB / 3.822 GB, free: 23.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/12.64, allocations: 5.115 MB / 3.827 GB, free: 22.26 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.926e-05/12.64, allocations: 41.06 kB / 3.827 GB, free: 22.25 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/12.64, allocations: 3.938 kB / 3.827 GB, free: 22.25 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.713e-05/12.64, allocations: 15.08 kB / 3.827 GB, free: 22.24 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01749/12.66, allocations: 8.011 MB / 3.835 GB, free: 18.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.397e-05/12.66, allocations: 3.375 kB / 3.835 GB, free: 18.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/12.66, allocations: 171.9 kB / 3.835 GB, free: 18.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009368/12.67, allocations: 2.185 MB / 3.837 GB, free: 17.72 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003177/12.67, allocations: 33.95 kB / 3.837 GB, free: 17.71 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01009/12.68, allocations: 8.111 MB / 3.845 GB, free: 11.03 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/12.68, allocations: 6.344 kB / 3.845 GB, free: 11.03 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009873/12.69, allocations: 4.116 MB / 3.849 GB, free: 9.086 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/12.69, allocations: 438.3 kB / 3.849 GB, free: 8.785 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003561/12.69, allocations: 30.86 kB / 3.849 GB, free: 8.762 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0029/12.69, allocations: 219.1 kB / 3.85 GB, free: 8.73 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004282/12.69, allocations: 124.6 kB / 3.85 GB, free: 8.715 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001865/12.69, allocations: 58.56 kB / 3.85 GB, free: 8.703 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00122/12.69, allocations: 0.5967 MB / 3.85 GB, free: 8.438 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.11e-07/12.69, allocations: 0 / 3.85 GB, free: 8.438 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01014/12.7, allocations: 2.051 MB / 3.852 GB, free: 8.023 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 24 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,pumpPolynomial.heatTransfer.states[1].phase,pumpQuadraticLinear.heatTransfer.states[1].phase,pumpLinear.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 7 {2 6,2 10,2 6,2 6,2 10,2 10,2 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.02147/12.73, allocations: 6.283 MB / 3.859 GB, free: 5.098 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01311/12.74, allocations: 3.278 MB / 3.862 GB, free: 2.82 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.052e-05/12.74, allocations: 0 / 3.862 GB, free: 2.82 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005022/12.74, allocations: 1.583 MB / 3.863 GB, free: 1.352 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005089/12.75, allocations: 0.5124 MB / 3.864 GB, free: 0.9727 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6782/13.43, allocations: 79.13 MB / 3.941 GB, free: 64.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/13.43, allocations: 1.449 MB / 3.943 GB, free: 63.34 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001259/13.43, allocations: 0.6797 MB / 3.943 GB, free: 63.33 MB / 0.5261 GB Notification: Performance of SimCode: time 2.374e-06/13.43, allocations: 0 / 3.943 GB, free: 63.33 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.096/18.53, allocations: 118.4 MB / 4.059 GB, free: 16.41 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCharacteristics_res.mat does not exist to compare? outputFormat=mat