Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.525/2.525, allocations: 270 MB / 282.6 MB, free: 1.879 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.148e-05/3.153e-05, allocations: 4 kB / 347.1 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4012, allocations: 61.87 MB / 408.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.903/9.305, allocations: 2.771 GB / 3.17 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/9.305, allocations: 82.52 kB / 3.17 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.107/12.41, allocations: 0.5592 GB / 3.729 GB, free: 58.86 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.274e-06/12.41, allocations: 0 / 3.729 GB, free: 58.86 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.491e-05/12.41, allocations: 22.67 kB / 3.729 GB, free: 58.86 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.009681/12.42, allocations: 2.045 MB / 3.731 GB, free: 58.21 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/12.42, allocations: 8.875 kB / 3.731 GB, free: 58.21 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003957/12.42, allocations: 138.6 kB / 3.731 GB, free: 58.17 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003563/12.43, allocations: 322.8 kB / 3.732 GB, free: 58.12 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00237/12.43, allocations: 0.6824 MB / 3.732 GB, free: 57.88 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/12.43, allocations: 299.6 kB / 3.733 GB, free: 57.62 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002417/12.43, allocations: 84.12 kB / 3.733 GB, free: 57.62 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004721/12.43, allocations: 1.488 MB / 3.734 GB, free: 57.34 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/12.43, allocations: 1.875 kB / 3.734 GB, free: 57.34 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/12.43, allocations: 44.09 kB / 3.734 GB, free: 57.34 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.624e-05/12.43, allocations: 37.92 kB / 3.734 GB, free: 57.34 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004271/12.44, allocations: 1.259 MB / 3.735 GB, free: 57.34 MB / 0.5417 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.0133/12.45, allocations: 6.4 MB / 3.742 GB, free: 53.29 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003448/12.46, allocations: 0.8856 MB / 3.743 GB, free: 53.24 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009296/12.46, allocations: 393 kB / 3.743 GB, free: 53.22 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05181/12.51, allocations: 15.6 MB / 3.758 GB, free: 43.83 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.077e-05/12.51, allocations: 44.28 kB / 3.758 GB, free: 43.79 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=59): time 2.866e-06/12.51, allocations: 2.688 kB / 3.758 GB, free: 43.79 MB / 0.5417 GB Notification: Performance of matching and sorting (n=64): time 0.01062/12.52, allocations: 2.5 MB / 3.761 GB, free: 43.25 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/12.52, allocations: 168.5 kB / 3.761 GB, free: 43.06 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/12.52, allocations: 0.71 MB / 3.762 GB, free: 42.93 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003271/12.52, allocations: 47.19 kB / 3.762 GB, free: 42.9 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003837/12.52, allocations: 450.6 kB / 3.762 GB, free: 42.64 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003385/12.52, allocations: 221.1 kB / 3.762 GB, free: 42.51 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.98e-05/12.52, allocations: 13.56 kB / 3.762 GB, free: 42.51 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001073/12.52, allocations: 351.7 kB / 3.763 GB, free: 42.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009819/12.52, allocations: 376.4 kB / 3.763 GB, free: 42.2 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/12.52, allocations: 0.5954 MB / 3.763 GB, free: 41.95 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009399/12.53, allocations: 403.5 kB / 3.764 GB, free: 41.93 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/12.53, allocations: 3.969 kB / 3.764 GB, free: 41.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002813/12.53, allocations: 1.032 MB / 3.765 GB, free: 41.86 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.887e-05/12.53, allocations: 9.344 kB / 3.765 GB, free: 41.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/12.53, allocations: 7 kB / 3.765 GB, free: 41.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005395/12.53, allocations: 97.45 kB / 3.765 GB, free: 41.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007291/12.54, allocations: 410.2 kB / 3.765 GB, free: 41.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007913/12.54, allocations: 6.399 MB / 3.772 GB, free: 36.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002128/12.55, allocations: 145.7 kB / 3.772 GB, free: 36.04 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/12.55, allocations: 39.08 kB / 3.772 GB, free: 36.04 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003425/12.55, allocations: 177.8 kB / 3.772 GB, free: 35.93 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002245/12.55, allocations: 88.94 kB / 3.772 GB, free: 35.89 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003618/12.55, allocations: 2.117 MB / 3.774 GB, free: 35.61 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.737e-05/12.55, allocations: 20.55 kB / 3.774 GB, free: 35.61 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/12.55, allocations: 3.953 kB / 3.774 GB, free: 35.61 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/12.55, allocations: 4.5 kB / 3.774 GB, free: 35.61 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006755/12.56, allocations: 3.379 MB / 3.777 GB, free: 35.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/12.56, allocations: 3.781 kB / 3.777 GB, free: 35.17 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007085/12.56, allocations: 367.5 kB / 3.778 GB, free: 35.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005462/12.56, allocations: 101.3 kB / 3.778 GB, free: 35.16 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/12.57, allocations: 19.73 kB / 3.778 GB, free: 35.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007715/12.57, allocations: 6.385 MB / 3.784 GB, free: 29.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/12.57, allocations: 6.688 kB / 3.784 GB, free: 29.37 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003936/12.58, allocations: 2.064 MB / 3.786 GB, free: 28.93 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007226/12.58, allocations: 347.2 kB / 3.787 GB, free: 28.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003118/12.58, allocations: 25.56 kB / 3.787 GB, free: 28.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/12.58, allocations: 115.1 kB / 3.787 GB, free: 28.73 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004174/12.58, allocations: 135 kB / 3.787 GB, free: 28.72 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-05/12.58, allocations: 28.53 kB / 3.787 GB, free: 28.72 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001629/12.58, allocations: 0.8669 MB / 3.788 GB, free: 28.61 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.61e-07/12.58, allocations: 0 / 3.788 GB, free: 28.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006743/12.59, allocations: 1.305 MB / 3.789 GB, free: 28.45 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 20 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.01473/12.6, allocations: 4.769 MB / 3.794 GB, free: 26.91 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.007296/12.61, allocations: 1.166 MB / 3.795 GB, free: 26.89 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/12.61, allocations: 3 kB / 3.795 GB, free: 26.89 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006129/12.62, allocations: 0.8435 MB / 3.796 GB, free: 26.89 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004839/12.62, allocations: 0.5235 MB / 3.796 GB, free: 26.88 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009121/12.63, allocations: 2.587 MB / 3.799 GB, free: 26.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007883/12.63, allocations: 1.24 MB / 3.8 GB, free: 25.47 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009878/12.63, allocations: 494.2 kB / 3.8 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of SimCode: time 1.683e-06/12.63, allocations: 0 / 3.8 GB, free: 25.46 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.427/17.06, allocations: 70.11 MB / 3.869 GB, free: 21.7 MB / 0.5417 GB