Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.154/2.154, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.429e-05/2.43e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3102, allocations: 44.5 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1403/0.4506, allocations: 77.45 MB / 371.7 MB, free: 4.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.451, allocations: 71.91 kB / 371.7 MB, free: 4.359 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06054/0.5116, allocations: 13.64 MB / 385.4 MB, free: 6.656 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5116, allocations: 0 / 385.4 MB, free: 6.656 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.09e-05/0.5117, allocations: 12 kB / 385.4 MB, free: 6.645 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.00234/0.514, allocations: 0.8802 MB / 386.2 MB, free: 5.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.5141, allocations: 12.03 kB / 386.3 MB, free: 5.695 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.5143, allocations: 87.06 kB / 386.3 MB, free: 5.609 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000972/0.5153, allocations: 452.1 kB / 386.8 MB, free: 5.125 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.5155, allocations: 80.7 kB / 386.9 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.5156, allocations: 28 kB / 386.9 MB, free: 5.008 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001063/0.5167, allocations: 358.5 kB / 387.2 MB, free: 4.656 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.5179, allocations: 0.546 MB / 387.8 MB, free: 4.035 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/0.518, allocations: 0 / 387.8 MB, free: 4.035 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.68e-05/0.518, allocations: 0 / 387.8 MB, free: 4.035 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.5181, allocations: 12 kB / 387.8 MB, free: 4.023 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004805/0.5229, allocations: 1.785 MB / 389.6 MB, free: 2.148 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002971/0.5259, allocations: 0.6465 MB / 390.2 MB, free: 1.473 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005624/0.5265, allocations: 210.5 kB / 390.4 MB, free: 1.262 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.571e-05/0.5266, allocations: 12.56 kB / 390.5 MB, free: 1.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.506e-05/0.5267, allocations: 43.08 kB / 390.5 MB, free: 1.199 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 3.427e-06/0.5267, allocations: 4 kB / 390.5 MB, free: 1.195 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.00313/0.5298, allocations: 0.6649 MB / 391.2 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003244/0.5302, allocations: 0.5684 MB / 391.7 MB, free: 15.81 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007806/0.531, allocations: 397.4 kB / 392.1 MB, free: 15.42 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.5311, allocations: 33.69 kB / 392.2 MB, free: 15.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.5314, allocations: 303.7 kB / 392.4 MB, free: 15.08 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002435/0.5316, allocations: 189.2 kB / 392.6 MB, free: 14.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.5317, allocations: 0 / 392.6 MB, free: 14.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.5318, allocations: 330.8 kB / 393 MB, free: 14.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004489/0.5323, allocations: 153.1 kB / 393.1 MB, free: 14.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006655/0.533, allocations: 363.4 kB / 393.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005235/0.5335, allocations: 186.2 kB / 393.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.5335, allocations: 4 kB / 393.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003117/0.5367, allocations: 0.665 MB / 394.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.906e-05/0.5368, allocations: 33.69 kB / 394.3 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.5368, allocations: 8.031 kB / 394.4 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001478/0.5383, allocations: 198.4 kB / 394.5 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/0.5398, allocations: 135.8 kB / 394.7 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00909/0.5489, allocations: 4.866 MB / 399.5 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.5501, allocations: 67.67 kB / 399.6 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.96e-05/0.5501, allocations: 20.05 kB / 399.6 MB, free: 7.43 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.0003096/0.5505, allocations: 125.4 kB / 399.8 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003865/0.5543, allocations: 0.6568 MB / 400.4 MB, free: 6.629 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002443/0.5546, allocations: 71.2 kB / 400.5 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004156/0.5588, allocations: 0.6867 MB / 401.2 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.5588, allocations: 8 kB / 401.2 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5589, allocations: 0 / 401.2 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003944/0.5628, allocations: 0.953 MB / 402.1 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006419/0.5693, allocations: 1.347 MB / 403.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/0.5694, allocations: 3.938 kB / 403.5 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002119/0.5715, allocations: 139.8 kB / 403.6 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00144/0.573, allocations: 157.5 kB / 403.8 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.792e-05/0.5731, allocations: 7.938 kB / 403.8 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009227/0.5823, allocations: 3.301 MB / 407.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.5824, allocations: 0 / 407.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004701/0.5871, allocations: 0.9413 MB / 408 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006419/0.5878, allocations: 196.2 kB / 408.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/0.5881, allocations: 4 kB / 408.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.5891, allocations: 31.97 kB / 408.2 MB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002471/0.5893, allocations: 48.48 kB / 408.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-05/0.5894, allocations: 15.98 kB / 408.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007806/0.5902, allocations: 314.9 kB / 408.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.5903, allocations: 0 / 408.6 MB, free: 13.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001612/0.5919, allocations: 207.7 kB / 408.8 MB, free: 13.76 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.005275/0.5972, allocations: 1.505 MB / 410.3 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003265/0.6005, allocations: 0.8615 MB / 411.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/0.6006, allocations: 8.25 kB / 411.2 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.6024, allocations: 485.5 kB / 411.7 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/0.6041, allocations: 146.2 kB / 411.8 MB, free: 10.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004204/0.6083, allocations: 0.9773 MB / 412.8 MB, free: 9.641 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007823/0.6092, allocations: 0.8956 MB / 413.7 MB, free: 8.715 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007276/0.6099, allocations: 219.4 kB / 413.9 MB, free: 8.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6099, allocations: 0 / 413.9 MB, free: 8.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.296/3.906, allocations: 16.65 MB / 430.5 MB, free: 106 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat