Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.507/2.507, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.589e-05/2.603e-05, allocations: 4 kB / 299.6 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.427/0.427, allocations: 54.85 MB / 354.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.869/8.296, allocations: 2.596 GB / 2.942 GB, free: 0.8125 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/8.297, allocations: 85.81 kB / 2.942 GB, free: 0.7656 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.16/11.46, allocations: 0.5449 GB / 3.487 GB, free: 26.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.206e-06/11.46, allocations: 3.984 kB / 3.487 GB, free: 26.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.813e-05/11.46, allocations: 26.08 kB / 3.487 GB, free: 26.49 MB / 490.7 MB 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.009742/11.47, allocations: 2.042 MB / 3.489 GB, free: 24.44 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/11.47, allocations: 8.031 kB / 3.489 GB, free: 24.43 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003981/11.47, allocations: 320.6 kB / 3.489 GB, free: 24.12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/11.47, allocations: 0.7027 MB / 3.49 GB, free: 23.39 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002469/11.47, allocations: 271.6 kB / 3.49 GB, free: 23.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002416/11.47, allocations: 48.34 kB / 3.49 GB, free: 23.03 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00265/11.48, allocations: 0.9798 MB / 3.491 GB, free: 22.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002644/11.48, allocations: 1.134 MB / 3.492 GB, free: 20.82 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.424e-05/11.48, allocations: 7.922 kB / 3.492 GB, free: 20.82 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001618/11.48, allocations: 4 kB / 3.492 GB, free: 20.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-05/11.48, allocations: 34 kB / 3.492 GB, free: 20.78 MB / 490.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.09021/11.57, allocations: 27.32 MB / 3.519 GB, free: 6.504 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001603/11.57, allocations: 0.4954 MB / 3.52 GB, free: 6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009023/11.57, allocations: 326 kB / 3.52 GB, free: 5.68 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005641/11.57, allocations: 407.2 kB / 3.52 GB, free: 5.219 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.325e-05/11.57, allocations: 43 kB / 3.52 GB, free: 5.164 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=54): time 4.699e-06/11.57, allocations: 0 / 3.52 GB, free: 5.164 MB / 0.4948 GB Notification: Performance of matching and sorting (n=59): time 0.008495/11.58, allocations: 1.874 MB / 3.522 GB, free: 3.234 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.414e-05/11.58, allocations: 145.1 kB / 3.522 GB, free: 3.062 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/11.58, allocations: 0.5216 MB / 3.523 GB, free: 2.535 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001414/11.58, allocations: 29.7 kB / 3.523 GB, free: 2.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005834/11.58, allocations: 488.6 kB / 3.523 GB, free: 2.016 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002928/11.58, allocations: 189 kB / 3.523 GB, free: 1.832 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.053e-05/11.58, allocations: 0 / 3.523 GB, free: 1.832 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002423/11.58, allocations: 386.8 kB / 3.524 GB, free: 1.445 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001074/11.59, allocations: 362.5 kB / 3.524 GB, free: 1.09 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001339/11.59, allocations: 0.6187 MB / 3.525 GB, free: 360 kB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4103/12, allocations: 407.5 kB / 3.525 GB, free: 64.14 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.939e-05/12, allocations: 2.719 kB / 3.525 GB, free: 64.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004053/12, allocations: 1.046 MB / 3.526 GB, free: 64.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/12, allocations: 8.812 kB / 3.526 GB, free: 64.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.15e-05/12, allocations: 8.812 kB / 3.526 GB, free: 64.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000546/12, allocations: 91.06 kB / 3.526 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008419/12.01, allocations: 421.6 kB / 3.527 GB, free: 64.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008924/12.02, allocations: 6.21 MB / 3.533 GB, free: 58.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/12.02, allocations: 130.8 kB / 3.533 GB, free: 58.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000166/12.02, allocations: 52.52 kB / 3.533 GB, free: 58.57 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tank.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (111): * Single equations (assignments): 106 * 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 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.000456/12.02, allocations: 156.4 kB / 3.533 GB, free: 58.46 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002526/12.02, allocations: 0.6684 MB / 3.534 GB, free: 58.41 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002951/12.03, allocations: 71.81 kB / 3.534 GB, free: 58.41 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003847/12.03, allocations: 1.573 MB / 3.535 GB, free: 58.26 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.171e-05/12.03, allocations: 18.22 kB / 3.535 GB, free: 58.26 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/12.03, allocations: 1.375 kB / 3.535 GB, free: 58.26 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/12.03, allocations: 0 / 3.535 GB, free: 58.26 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007288/12.04, allocations: 2.68 MB / 3.538 GB, free: 57.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/12.04, allocations: 10.11 kB / 3.538 GB, free: 57.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008126/12.04, allocations: 344.5 kB / 3.538 GB, free: 57.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005653/12.05, allocations: 106.9 kB / 3.538 GB, free: 57.88 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001614/12.05, allocations: 12.33 kB / 3.538 GB, free: 57.88 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008671/12.05, allocations: 6.178 MB / 3.544 GB, free: 52.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/12.05, allocations: 0 / 3.544 GB, free: 52.32 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003857/12.06, allocations: 1.732 MB / 3.546 GB, free: 51.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004865/12.06, allocations: 222.1 kB / 3.546 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003144/12.06, allocations: 15.3 kB / 3.546 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/12.06, allocations: 107.2 kB / 3.546 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004796/12.06, allocations: 118.8 kB / 3.547 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/12.06, allocations: 28.16 kB / 3.547 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0009689/12.06, allocations: 0.4931 MB / 3.547 GB, free: 51.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.81e-07/12.06, allocations: 2.906 kB / 3.547 GB, free: 51.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007017/12.07, allocations: 1.231 MB / 3.548 GB, free: 51.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.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) * 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 (57): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.01559/12.08, allocations: 4.607 MB / 3.553 GB, free: 50.33 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007935/12.09, allocations: 1.097 MB / 3.554 GB, free: 50.31 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/12.09, allocations: 0 / 3.554 GB, free: 50.31 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006772/12.1, allocations: 0.7469 MB / 3.555 GB, free: 50.31 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003381/12.1, allocations: 334.2 kB / 3.555 GB, free: 50.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008804/12.11, allocations: 2.231 MB / 3.557 GB, free: 49.87 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008159/12.11, allocations: 1.169 MB / 3.558 GB, free: 49.16 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.002144/12.11, allocations: 0.5327 MB / 3.559 GB, free: 49.15 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008521/12.12, allocations: 390.2 kB / 3.559 GB, free: 49.14 MB / 0.4948 GB Notification: Performance of SimCode: time 1.262e-06/12.12, allocations: 3.094 kB / 3.559 GB, free: 49.14 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1493/12.27, allocations: 51 MB / 3.609 GB, free: 47.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002632/12.27, allocations: 198 kB / 3.609 GB, free: 47.04 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.05/17.32, allocations: 0 / 3.609 GB, free: 47.04 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat does not exist to compare? outputFormat=mat