Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_2_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.089/2.089, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.256e-05/2.27e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3119, allocations: 44.49 MB / 294.2 MB, free: 14.45 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1414/0.4534, allocations: 77.46 MB / 371.7 MB, free: 4.457 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.4537, allocations: 71.95 kB / 371.7 MB, free: 4.387 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06853/0.5223, allocations: 13.63 MB / 385.4 MB, free: 6.691 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.5223, allocations: 0 / 385.4 MB, free: 6.691 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.622e-05/0.5224, allocations: 16 kB / 385.4 MB, free: 6.676 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002635/0.525, allocations: 0.8802 MB / 386.3 MB, free: 5.738 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/0.5251, allocations: 12.03 kB / 386.3 MB, free: 5.727 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.5254, allocations: 87.06 kB / 386.4 MB, free: 5.641 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.5266, allocations: 452 kB / 386.8 MB, free: 5.156 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002106/0.5269, allocations: 84.7 kB / 386.9 MB, free: 5.062 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.527, allocations: 24 kB / 386.9 MB, free: 5.039 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00118/0.5282, allocations: 358.5 kB / 387.3 MB, free: 4.688 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.5296, allocations: 0.5421 MB / 387.8 MB, free: 4.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.5296, allocations: 0 / 387.8 MB, free: 4.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.372e-05/0.5297, allocations: 4 kB / 387.8 MB, free: 4.066 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.496e-05/0.5298, allocations: 8 kB / 387.8 MB, free: 4.059 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005365/0.5351, allocations: 1.781 MB / 389.6 MB, free: 2.188 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003215/0.5384, allocations: 0.6462 MB / 390.2 MB, free: 1.512 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006936/0.5391, allocations: 210.5 kB / 390.5 MB, free: 1.301 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001312/0.5393, allocations: 20.53 kB / 390.5 MB, free: 1.281 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/0.5394, allocations: 43.83 kB / 390.5 MB, free: 1.23 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 3.597e-06/0.5394, allocations: 4 kB / 390.5 MB, free: 1.227 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.003396/0.5428, allocations: 0.6567 MB / 391.2 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003471/0.5432, allocations: 0.5684 MB / 391.7 MB, free: 15.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008472/0.544, allocations: 397.4 kB / 392.1 MB, free: 15.46 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001811/0.5442, allocations: 29.7 kB / 392.2 MB, free: 15.42 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003137/0.5446, allocations: 277.2 kB / 392.4 MB, free: 15.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/0.5448, allocations: 189.2 kB / 392.6 MB, free: 14.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.108e-05/0.5449, allocations: 0 / 392.6 MB, free: 14.96 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.5451, allocations: 366.8 kB / 393 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004552/0.5456, allocations: 149.1 kB / 393.1 MB, free: 14.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006932/0.5463, allocations: 363.4 kB / 393.5 MB, free: 14.01 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005356/0.5468, allocations: 193.5 kB / 393.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.5469, allocations: 0 / 393.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003332/0.5502, allocations: 0.7075 MB / 394.4 MB, free: 13.1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.147e-05/0.5503, allocations: 29.7 kB / 394.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.5503, allocations: 0 / 394.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.5519, allocations: 210.4 kB / 394.6 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.5535, allocations: 139.8 kB / 394.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/0.5646, allocations: 4.858 MB / 399.6 MB, free: 7.512 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.5658, allocations: 71.69 kB / 399.7 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.877e-05/0.5659, allocations: 20.12 kB / 399.7 MB, free: 7.422 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_b.m_flow:VARIABLE(flow=true unit = "kg/s" ) type: Real 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: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * 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 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.000332/0.5662, allocations: 125.1 kB / 399.8 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00321/0.5694, allocations: 0.6607 MB / 400.5 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002975/0.5698, allocations: 67.2 kB / 400.5 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003253/0.5731, allocations: 0.6906 MB / 401.2 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/0.5731, allocations: 4 kB / 401.2 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.5731, allocations: 4 kB / 401.2 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002936/0.5761, allocations: 0.953 MB / 402.2 MB, free: 4.766 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004575/0.5807, allocations: 1.343 MB / 403.5 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.5807, allocations: 3.938 kB / 403.5 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/0.5824, allocations: 140 kB / 403.7 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001216/0.5836, allocations: 161.5 kB / 403.8 MB, free: 3.066 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.5838, allocations: 7.922 kB / 403.8 MB, free: 3.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007218/0.591, allocations: 3.304 MB / 407.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.591, allocations: 0 / 407.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003625/0.5947, allocations: 0.9374 MB / 408.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005238/0.5952, allocations: 200.2 kB / 408.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.5954, allocations: 0 / 408.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007558/0.5962, allocations: 31.97 kB / 408.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.5964, allocations: 44.44 kB / 408.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.737e-05/0.5965, allocations: 19.98 kB / 408.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006433/0.5971, allocations: 315 kB / 408.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5971, allocations: 0 / 408.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001385/0.5985, allocations: 203.7 kB / 408.9 MB, free: 13.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.004298/0.6029, allocations: 1.505 MB / 410.4 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002521/0.6054, allocations: 0.8691 MB / 411.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.485e-06/0.6055, allocations: 4 kB / 411.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.6069, allocations: 481.7 kB / 411.7 MB, free: 10.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.6081, allocations: 149.6 kB / 411.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003083/0.6112, allocations: 0.9483 MB / 412.8 MB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006415/0.6119, allocations: 0.8917 MB / 413.7 MB, free: 8.746 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005446/0.6125, allocations: 72.84 kB / 413.8 MB, free: 8.672 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004868/0.613, allocations: 215.4 kB / 414 MB, free: 8.461 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.613, allocations: 0 / 414 MB, free: 8.461 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4324/1.045, allocations: 15.87 MB / 429.9 MB, free: 107 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002279/1.046, allocations: 141.7 kB / 430 MB, free: 106.8 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.555/4.601, allocations: 0 / 430 MB, free: 106.8 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat