Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveIncompressible",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.501/2.501, allocations: 270 MB / 282.6 MB, free: 1.91 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.446e-05/4.451e-05, allocations: 4 kB / 347.1 MB, free: 3.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4325/0.4325, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.939/9.372, allocations: 2.777 GB / 3.177 GB, free: 126 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/9.372, allocations: 80.14 kB / 3.177 GB, free: 126 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.624/12, allocations: 0.5072 GB / 3.684 GB, free: 19.87 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.385e-06/12, allocations: 0 / 3.684 GB, free: 19.87 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.673e-05/12, allocations: 34.23 kB / 3.684 GB, free: 19.84 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.009318/12.01, allocations: 2.055 MB / 3.686 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/12.01, allocations: 11.97 kB / 3.686 GB, free: 17.76 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003763/12.01, allocations: 147.6 kB / 3.686 GB, free: 17.61 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008357/12.01, allocations: 0.72 MB / 3.687 GB, free: 16.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002447/12.02, allocations: 0.803 MB / 3.688 GB, free: 16.07 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/12.02, allocations: 81.47 kB / 3.688 GB, free: 16 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/12.02, allocations: 88 kB / 3.688 GB, free: 15.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005843/12.02, allocations: 1.7 MB / 3.689 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.865e-05/12.02, allocations: 10.62 kB / 3.689 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002185/12.02, allocations: 44 kB / 3.689 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.577e-05/12.02, allocations: 24 kB / 3.689 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005695/12.03, allocations: 1.469 MB / 3.691 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01416/12.04, allocations: 7.559 MB / 3.698 GB, free: 4.547 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004837/12.05, allocations: 1.166 MB / 3.699 GB, free: 3.383 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008666/12.05, allocations: 342.4 kB / 3.7 GB, free: 3.047 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5254/12.57, allocations: 24.26 MB / 3.723 GB, free: 55.06 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.397e-05/12.57, allocations: 45.19 kB / 3.723 GB, free: 55.02 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=67): time 3.787e-06/12.57, allocations: 0 / 3.723 GB, free: 55.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=67): time 0.008192/12.58, allocations: 1.777 MB / 3.725 GB, free: 54.99 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/12.58, allocations: 213.2 kB / 3.725 GB, free: 54.74 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/12.58, allocations: 0.7201 MB / 3.726 GB, free: 54.59 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002378/12.58, allocations: 40.95 kB / 3.726 GB, free: 54.56 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003639/12.59, allocations: 483.9 kB / 3.727 GB, free: 54.34 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/12.59, allocations: 229.8 kB / 3.727 GB, free: 54.22 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.032e-05/12.59, allocations: 16.59 kB / 3.727 GB, free: 54.22 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001022/12.59, allocations: 348.5 kB / 3.727 GB, free: 53.91 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007582/12.59, allocations: 266 kB / 3.727 GB, free: 53.91 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/12.59, allocations: 0.5525 MB / 3.728 GB, free: 53.56 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009339/12.59, allocations: 332.2 kB / 3.728 GB, free: 53.56 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.507e-05/12.59, allocations: 3.719 kB / 3.728 GB, free: 53.56 MB / 0.5417 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002454/12.59, allocations: 0.8438 MB / 3.729 GB, free: 53.49 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007422/12.59, allocations: 3.23 MB / 3.732 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.939e-05/12.59, allocations: 9.391 kB / 3.732 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.411e-05/12.59, allocations: 20.81 kB / 3.732 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0021/12.59, allocations: 270.9 kB / 3.733 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.54e-05/12.59, allocations: 18.27 kB / 3.733 GB, free: 50.14 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/12.6, allocations: 187.3 kB / 3.733 GB, free: 50.11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002399/12.6, allocations: 53.67 kB / 3.733 GB, free: 50.11 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/12.6, allocations: 2.594 kB / 3.733 GB, free: 50.11 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002186/12.6, allocations: 0.7827 MB / 3.734 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/12.6, allocations: 7.594 kB / 3.734 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/12.6, allocations: 14.97 kB / 3.734 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/12.6, allocations: 276.9 kB / 3.734 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.515e-05/12.6, allocations: 16.09 kB / 3.734 GB, free: 50.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/12.6, allocations: 158.2 kB / 3.734 GB, free: 50.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001346/12.6, allocations: 48.98 kB / 3.734 GB, free: 50.06 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003732/12.6, allocations: 162.1 kB / 3.734 GB, free: 49.96 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003537/12.6, allocations: 112.6 kB / 3.734 GB, free: 49.91 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007166/12.61, allocations: 4.874 MB / 3.739 GB, free: 49.38 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-05/12.61, allocations: 64.55 kB / 3.739 GB, free: 49.38 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/12.61, allocations: 1.875 kB / 3.739 GB, free: 49.38 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-05/12.61, allocations: 7.844 kB / 3.739 GB, free: 49.37 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004134/12.61, allocations: 2.495 MB / 3.742 GB, free: 49.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.958e-05/12.61, allocations: 2.109 kB / 3.742 GB, free: 49.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001754/12.62, allocations: 237.4 kB / 3.742 GB, free: 49.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.852e-05/12.62, allocations: 3.969 kB / 3.742 GB, free: 49.02 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/12.62, allocations: 25.31 kB / 3.742 GB, free: 49.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-05/12.62, allocations: 7.312 kB / 3.742 GB, free: 49.02 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/12.62, allocations: 2.188 kB / 3.742 GB, free: 49.02 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003472/12.62, allocations: 2.124 MB / 3.744 GB, free: 48.61 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001469/12.62, allocations: 0.6996 MB / 3.745 GB, free: 48.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00042/12.62, allocations: 16.78 kB / 3.745 GB, free: 48.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001794/12.62, allocations: 117.9 kB / 3.745 GB, free: 48.29 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002983/12.62, allocations: 85.94 kB / 3.745 GB, free: 48.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/12.62, allocations: 28.73 kB / 3.745 GB, free: 48.29 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002372/12.63, allocations: 1.165 MB / 3.746 GB, free: 48.12 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7.61e-07/12.63, allocations: 2.078 kB / 3.746 GB, free: 48.12 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008204/12.64, allocations: 1.62 MB / 3.748 GB, free: 48.05 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse16.phase,$cse16.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse26.phase,$cse26.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01437/12.65, allocations: 4.379 MB / 3.752 GB, free: 47 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003732/12.65, allocations: 1.626 MB / 3.753 GB, free: 46.96 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/12.65, allocations: 3.125 kB / 3.753 GB, free: 46.96 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001607/12.66, allocations: 1.029 MB / 3.754 GB, free: 46.96 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005724/12.66, allocations: 0.5969 MB / 3.755 GB, free: 46.95 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0119/12.67, allocations: 3.795 MB / 3.759 GB, free: 46.09 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/12.67, allocations: 1.568 MB / 3.76 GB, free: 45.36 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001389/12.68, allocations: 0.8177 MB / 3.761 GB, free: 45.35 MB / 0.5417 GB Notification: Performance of SimCode: time 2.355e-06/12.68, allocations: 0 / 3.761 GB, free: 45.35 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.938/16.61, allocations: 51.66 MB / 3.811 GB, free: 41.42 MB / 0.5417 GB