Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.128/2.128, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.321e-05/4.326e-05, allocations: 4 kB / 269.4 MB, free: 6.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1417, allocations: 47.57 MB / 317 MB, free: 6.668 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5087/0.6504, allocations: 83.37 MB / 400.4 MB, free: 4.375 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.6508, allocations: 71.58 kB / 400.5 MB, free: 4.336 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07087/0.7217, allocations: 13.98 MB / 414.4 MB, free: 8.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.7217, allocations: 0 / 414.4 MB, free: 8.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.391e-05/0.7218, allocations: 16 kB / 414.4 MB, free: 8.574 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.0035/0.7254, allocations: 0.9081 MB / 415.4 MB, free: 7.652 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.29e-05/0.7255, allocations: 12.03 kB / 415.4 MB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003458/0.7258, allocations: 87.55 kB / 415.5 MB, free: 7.574 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003975/0.7262, allocations: 87.06 kB / 415.5 MB, free: 7.488 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/0.7279, allocations: 459.6 kB / 416 MB, free: 7.059 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002908/0.7282, allocations: 95.53 kB / 416.1 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001841/0.7284, allocations: 48.06 kB / 416.1 MB, free: 6.938 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/0.7305, allocations: 0.5983 MB / 416.7 MB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.974e-05/0.7306, allocations: 11.06 kB / 416.7 MB, free: 6.414 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.7308, allocations: 16.94 kB / 416.8 MB, free: 6.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.826e-05/0.7308, allocations: 12 kB / 416.8 MB, free: 6.398 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001675/0.7325, allocations: 384.8 kB / 417.1 MB, free: 6.152 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007203/0.7397, allocations: 1.911 MB / 419.1 MB, free: 4.598 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004373/0.7442, allocations: 0.6637 MB / 419.7 MB, free: 4.059 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009566/0.7452, allocations: 236.6 kB / 419.9 MB, free: 3.918 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.654e-05/0.7453, allocations: 8.562 kB / 420 MB, free: 3.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.827e-05/0.7454, allocations: 42.66 kB / 420 MB, free: 3.867 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 5.01e-06/0.7454, allocations: 0 / 420 MB, free: 3.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=56): time 0.004224/0.7496, allocations: 0.6748 MB / 420.7 MB, free: 3.332 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003925/0.7501, allocations: 0.5679 MB / 421.2 MB, free: 2.633 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001351/0.7514, allocations: 474.3 kB / 421.7 MB, free: 2.277 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000209/0.7517, allocations: 49.88 kB / 421.8 MB, free: 2.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003857/0.7521, allocations: 284.8 kB / 422 MB, free: 2.051 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003441/0.7524, allocations: 192.7 kB / 422.2 MB, free: 1.887 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.692e-05/0.7525, allocations: 7.5 kB / 422.2 MB, free: 1.887 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002762/0.7528, allocations: 378.6 kB / 422.6 MB, free: 1.535 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007432/0.7536, allocations: 159 kB / 422.8 MB, free: 1.441 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.7547, allocations: 373.5 kB / 423.1 MB, free: 1.086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009357/0.7557, allocations: 226 kB / 423.3 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.7557, allocations: 0 / 423.3 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.004435/0.7602, allocations: 0.7479 MB / 424.1 MB, free: 328 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.242e-05/0.7603, allocations: 33.7 kB / 424.1 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.7603, allocations: 0 / 424.1 MB, free: 288 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/0.7621, allocations: 195.1 kB / 424.3 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002112/0.7642, allocations: 146.5 kB / 424.5 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/0.7772, allocations: 5.008 MB / 429.5 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.7785, allocations: 94.12 kB / 429.6 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.689e-05/0.7786, allocations: 18.56 kB / 429.6 MB, free: 11.02 MB / 346.7 MB 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.0002458/0.7788, allocations: 138.1 kB / 429.7 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002262/0.7791, allocations: 71.16 kB / 429.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0032/0.7823, allocations: 0.7337 MB / 430.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/0.7823, allocations: 4 kB / 430.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.7824, allocations: 0 / 430.5 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002964/0.7853, allocations: 0.9818 MB / 431.5 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004723/0.7901, allocations: 1.457 MB / 433 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.256e-06/0.7902, allocations: 0 / 433 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/0.7918, allocations: 139.3 kB / 433.1 MB, free: 8.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.793, allocations: 152.7 kB / 433.2 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.959e-05/0.7931, allocations: 15.48 kB / 433.3 MB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006906/0.8, allocations: 3.392 MB / 436.6 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.8, allocations: 0 / 436.6 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003715/0.8038, allocations: 0.9886 MB / 437.6 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000536/0.8044, allocations: 207.4 kB / 437.8 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.8045, allocations: 12.19 kB / 437.8 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000835/0.8054, allocations: 45.52 kB / 437.9 MB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.8056, allocations: 44.12 kB / 437.9 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.579e-05/0.8057, allocations: 15.98 kB / 437.9 MB, free: 3.562 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007284/0.8064, allocations: 376.1 kB / 438.3 MB, free: 3.289 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8064, allocations: 0 / 438.3 MB, free: 3.289 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001207/0.8076, allocations: 232.4 kB / 438.5 MB, free: 3.082 MB / 346.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.004141/0.8118, allocations: 1.557 MB / 440.1 MB, free: 1.762 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003027/0.8149, allocations: 0.8979 MB / 441 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/0.815, allocations: 3.938 kB / 441 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002205/0.8172, allocations: 496.8 kB / 441.5 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/0.8194, allocations: 165.1 kB / 441.6 MB, free: 460 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005355/0.8248, allocations: 1.031 MB / 442.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009473/0.8258, allocations: 0.9036 MB / 443.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009503/0.8268, allocations: 77.12 kB / 443.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007229/0.8275, allocations: 231 kB / 443.9 MB, free: 14.42 MB / 362.7 MB Notification: Performance of SimCode: time 2.184e-06/0.8276, allocations: 4 kB / 443.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07022/0.8978, allocations: 17.92 MB / 461.8 MB, free: 12.58 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003464/0.8982, allocations: 184.4 kB / 462 MB, free: 12.35 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.651/4.549, allocations: 0 / 462 MB, free: 12.35 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat