Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_WaterPump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.029/2.029, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.641e-05/3.645e-05, allocations: 4 kB / 269.5 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 47.57 MB / 317 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.444/0.5542, allocations: 84.12 MB / 401.1 MB, free: 3.664 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.5545, allocations: 75.77 kB / 401.2 MB, free: 3.625 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08624/0.6407, allocations: 15.8 MB / 417 MB, free: 6.363 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.6408, allocations: 0 / 417 MB, free: 6.363 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.702e-05/0.6409, allocations: 12 kB / 417 MB, free: 6.352 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.003968/0.6449, allocations: 0.9636 MB / 418 MB, free: 5.379 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.533e-05/0.645, allocations: 8.031 kB / 418 MB, free: 5.371 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003693/0.6454, allocations: 110.7 kB / 418.1 MB, free: 5.289 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004223/0.6458, allocations: 98.88 kB / 418.2 MB, free: 5.191 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.6473, allocations: 476.6 kB / 418.7 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000276/0.6476, allocations: 112.5 kB / 418.8 MB, free: 4.645 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.6477, allocations: 54.5 kB / 418.8 MB, free: 4.609 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/0.6496, allocations: 0.7465 MB / 419.6 MB, free: 3.961 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/0.6496, allocations: 4 kB / 419.6 MB, free: 3.957 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.6497, allocations: 24.56 kB / 419.6 MB, free: 3.949 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.6498, allocations: 12 kB / 419.6 MB, free: 3.938 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.6511, allocations: 435.7 kB / 420 MB, free: 3.656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006025/0.6572, allocations: 2.064 MB / 422.1 MB, free: 2.012 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.6589, allocations: 493.3 kB / 422.6 MB, free: 1.676 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006229/0.6596, allocations: 229.3 kB / 422.8 MB, free: 1.543 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.623e-05/0.6597, allocations: 15.94 kB / 422.8 MB, free: 1.531 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007882/0.6605, allocations: 293.5 kB / 423.1 MB, free: 1.316 MB / 330.7 MB Notification: Performance of pre-optimization done (n=59): time 5.861e-06/0.6605, allocations: 3.984 kB / 423.1 MB, free: 1.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=59): time 0.002933/0.6634, allocations: 0.7088 MB / 423.8 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000434/0.6639, allocations: 0.8185 MB / 424.6 MB, free: 15.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.6651, allocations: 0.5137 MB / 425.2 MB, free: 15.35 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002088/0.6653, allocations: 44.64 kB / 425.2 MB, free: 15.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.6657, allocations: 329.8 kB / 425.5 MB, free: 15.1 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000306/0.666, allocations: 203.6 kB / 425.7 MB, free: 14.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.252e-05/0.6661, allocations: 19.06 kB / 425.7 MB, free: 14.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.6663, allocations: 379.3 kB / 426.1 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005599/0.6668, allocations: 178.9 kB / 426.3 MB, free: 14.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008977/0.6678, allocations: 486.5 kB / 426.8 MB, free: 13.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006825/0.6685, allocations: 277 kB / 427 MB, free: 13.76 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.6685, allocations: 4 kB / 427 MB, free: 13.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.003091/0.6716, allocations: 0.8269 MB / 427.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.403e-05/0.6717, allocations: 59.39 kB / 427.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.6717, allocations: 4 kB / 427.9 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009199/0.6727, allocations: 201.5 kB / 428.1 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.6741, allocations: 131.5 kB / 428.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008551/0.6827, allocations: 4.095 MB / 432.3 MB, free: 9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.684, allocations: 89.48 kB / 432.4 MB, free: 8.922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.631e-05/0.6841, allocations: 23.42 kB / 432.5 MB, free: 8.902 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,oneWayValve.backward) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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 {9 3,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002618/0.6843, allocations: 156.5 kB / 432.6 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001847/0.6845, allocations: 87 kB / 432.7 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002282/0.6848, allocations: 77.92 kB / 432.8 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.6848, allocations: 8 kB / 432.8 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.6848, allocations: 0 / 432.8 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002644/0.6875, allocations: 0.9908 MB / 433.8 MB, free: 7.684 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00378/0.6913, allocations: 1.489 MB / 435.3 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.6914, allocations: 3.953 kB / 435.3 MB, free: 6.504 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.6927, allocations: 127 kB / 435.4 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007555/0.6935, allocations: 140.4 kB / 435.5 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.462e-05/0.6936, allocations: 18.73 kB / 435.5 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006218/0.6999, allocations: 3.51 MB / 439.1 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.135e-06/0.6999, allocations: 0 / 439.1 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002899/0.7028, allocations: 0.9257 MB / 440 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005659/0.7034, allocations: 224.8 kB / 440.2 MB, free: 2.039 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/0.7036, allocations: 14.69 kB / 440.2 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009169/0.7046, allocations: 54.28 kB / 440.3 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000239/0.7048, allocations: 57.22 kB / 440.3 MB, free: 1.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.727e-05/0.7049, allocations: 18.94 kB / 440.3 MB, free: 1.926 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000828/0.7057, allocations: 416.5 kB / 440.7 MB, free: 1.625 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7057, allocations: 0 / 440.7 MB, free: 1.625 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001354/0.7071, allocations: 268.4 kB / 441 MB, free: 1.387 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {2 3,1 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003183/0.7103, allocations: 1.506 MB / 442.5 MB, free: 132 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002528/0.7129, allocations: 0.9139 MB / 443.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/0.713, allocations: 4 kB / 443.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.7143, allocations: 0.4905 MB / 443.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.7159, allocations: 195.8 kB / 444.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003832/0.7198, allocations: 0.9711 MB / 445.1 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006516/0.7205, allocations: 0.9433 MB / 446 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006439/0.7212, allocations: 77.19 kB / 446.1 MB, free: 12.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005322/0.7217, allocations: 259.3 kB / 446.4 MB, free: 12.35 MB / 362.7 MB Notification: Performance of SimCode: time 1.323e-06/0.7218, allocations: 0 / 446.4 MB, free: 12.35 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07604/0.7978, allocations: 20.48 MB / 466.8 MB, free: 7.938 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003154/0.7982, allocations: 177.2 kB / 467 MB, free: 7.715 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.507/4.305, allocations: 3.938 kB / 467 MB, free: 7.711 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat does not exist to compare? outputFormat=mat