Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.432/2.432, allocations: 195 MB / 202.9 MB, free: 6.734 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.61e-05/3.616e-05, allocations: 2.75 kB / 249.8 MB, free: 5.266 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 44.5 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5208/0.633, allocations: 76.5 MB / 370.8 MB, free: 7.199 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.6333, allocations: 72.09 kB / 370.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0734/0.7067, allocations: 15.47 MB / 386.3 MB, free: 18.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.7067, allocations: 0 / 386.3 MB, free: 18.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.601e-05/0.7068, allocations: 15.44 kB / 386.3 MB, free: 18.99 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.003509/0.7104, allocations: 1.041 MB / 387.4 MB, free: 18.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.67e-05/0.7104, allocations: 11.53 kB / 387.4 MB, free: 18.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003989/0.7108, allocations: 100.8 kB / 387.5 MB, free: 18.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/0.7123, allocations: 0.5243 MB / 388 MB, free: 17.85 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002968/0.7126, allocations: 125.2 kB / 388.1 MB, free: 17.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/0.7128, allocations: 39.16 kB / 388.2 MB, free: 17.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001559/0.7144, allocations: 473 kB / 388.6 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001632/0.7161, allocations: 0.6812 MB / 389.3 MB, free: 17.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.611e-05/0.7161, allocations: 3.984 kB / 389.3 MB, free: 17.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.7162, allocations: 3.75 kB / 389.3 MB, free: 17.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.7163, allocations: 15.47 kB / 389.3 MB, free: 17.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006177/0.7225, allocations: 1.939 MB / 391.3 MB, free: 16.37 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.7243, allocations: 0.8827 MB / 392.2 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000826/0.7252, allocations: 307.8 kB / 392.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.7253, allocations: 8.5 kB / 392.5 MB, free: 15.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.132e-05/0.7254, allocations: 48.5 kB / 392.5 MB, free: 15.87 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 4.638e-06/0.7254, allocations: 4 kB / 392.5 MB, free: 15.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=74): time 0.00392/0.7293, allocations: 0.8374 MB / 393.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004408/0.7298, allocations: 0.8186 MB / 394.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.7308, allocations: 472.2 kB / 394.6 MB, free: 14.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002446/0.7311, allocations: 29.58 kB / 394.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003758/0.7315, allocations: 319.5 kB / 395 MB, free: 14.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003905/0.7319, allocations: 246.2 kB / 395.2 MB, free: 14.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.083e-05/0.732, allocations: 4.219 kB / 395.2 MB, free: 14.1 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002266/0.7322, allocations: 379 kB / 395.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006424/0.7329, allocations: 210.9 kB / 395.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009631/0.7339, allocations: 461.8 kB / 396.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007511/0.7346, allocations: 251.1 kB / 396.5 MB, free: 13.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.7347, allocations: 3.875 kB / 396.5 MB, free: 13.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004128/0.7388, allocations: 0.8867 MB / 397.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001072/0.739, allocations: 90.23 kB / 397.5 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.739, allocations: 3.984 kB / 397.5 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.7402, allocations: 206.5 kB / 397.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.7417, allocations: 147.4 kB / 397.8 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/0.7527, allocations: 6.027 MB / 403.9 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.7542, allocations: 89.88 kB / 403.9 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.7544, allocations: 30.73 kB / 404 MB, free: 7.75 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004179/0.7548, allocations: 138.1 kB / 404.1 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003902/0.7587, allocations: 0.8353 MB / 404.9 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004316/0.7592, allocations: 81.03 kB / 405 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003399/0.7596, allocations: 79.14 kB / 405.1 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.7596, allocations: 7.406 kB / 405.1 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.7596, allocations: 3.938 kB / 405.1 MB, free: 7.312 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003633/0.7633, allocations: 1.13 MB / 406.2 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006442/0.7697, allocations: 1.722 MB / 408 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/0.7698, allocations: 3.984 kB / 408 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/0.7715, allocations: 144.5 kB / 408.1 MB, free: 5.883 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008282/0.7724, allocations: 160.5 kB / 408.3 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001487/0.7726, allocations: 3.984 kB / 408.3 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009373/0.782, allocations: 4.648 MB / 412.9 MB, free: 1.875 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.271e-06/0.782, allocations: 0 / 412.9 MB, free: 1.875 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004713/0.7867, allocations: 1.218 MB / 414.1 MB, free: 1.535 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003801/0.7872, allocations: 165.5 kB / 414.3 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002939/0.7875, allocations: 3.812 kB / 414.3 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.7886, allocations: 47.14 kB / 414.3 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003128/0.789, allocations: 65.28 kB / 414.4 MB, free: 1.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.818e-05/0.789, allocations: 19.42 kB / 414.4 MB, free: 1.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007607/0.7898, allocations: 369.8 kB / 414.8 MB, free: 1.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7898, allocations: 0 / 414.8 MB, free: 1.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001764/0.7916, allocations: 254.8 kB / 415 MB, free: 1.211 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005279/0.7969, allocations: 1.79 MB / 416.8 MB, free: 336 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002803/0.7998, allocations: 1.177 MB / 418 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.7998, allocations: 3.906 kB / 418 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002066/0.8019, allocations: 0.6877 MB / 418.7 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.8038, allocations: 185.1 kB / 418.9 MB, free: 15.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005578/0.8094, allocations: 1.31 MB / 420.2 MB, free: 13.92 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008339/0.8103, allocations: 0.9441 MB / 421.1 MB, free: 12.95 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008846/0.8112, allocations: 89.92 kB / 421.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008015/0.812, allocations: 277.7 kB / 421.5 MB, free: 12.63 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.8121, allocations: 0 / 421.5 MB, free: 12.63 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1078/0.9199, allocations: 20.16 MB / 441.6 MB, free: 8.535 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003395/0.9203, allocations: 142.8 kB / 441.8 MB, free: 8.34 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.445/5.365, allocations: 4 kB / 441.8 MB, free: 8.336 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat