Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.149/2.149, allocations: 209.4 MB / 216.5 MB, free: 6.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.619e-05/2.622e-05, allocations: 4 kB / 267.6 MB, free: 4.945 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1392, allocations: 48.7 MB / 316.3 MB, free: 4.152 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.393/0.5323, allocations: 73.42 MB / 389.7 MB, free: 2.926 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.5326, allocations: 66.77 kB / 389.8 MB, free: 2.891 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003831/0.5364, allocations: 0.9349 MB / 390.7 MB, free: 2.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5364, allocations: 8 kB / 390.7 MB, free: 2.062 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.5365, allocations: 0 / 390.7 MB, free: 2.062 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004621/0.5369, allocations: 341.8 kB / 391.1 MB, free: 1.688 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.537, allocations: 8.031 kB / 391.1 MB, free: 1.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.5371, allocations: 7.906 kB / 391.1 MB, free: 1.672 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.5373, allocations: 181 kB / 391.3 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.5373, allocations: 0 / 391.3 MB, free: 1.461 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.5374, allocations: 4 kB / 391.3 MB, free: 1.457 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.172e-05/0.5374, allocations: 19.55 kB / 391.3 MB, free: 1.441 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.5376, allocations: 45.12 kB / 391.3 MB, free: 1.395 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.5376, allocations: 0 / 391.3 MB, free: 1.395 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.5376, allocations: 0 / 391.3 MB, free: 1.395 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.5376, allocations: 4 kB / 391.3 MB, free: 1.391 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004858/0.5381, allocations: 251.3 kB / 391.6 MB, free: 1.117 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.488e-05/0.5382, allocations: 25.95 kB / 391.6 MB, free: 1.086 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.35e-05/0.5382, allocations: 14.73 kB / 391.6 MB, free: 1.074 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.5383, allocations: 4 kB / 391.6 MB, free: 1.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001654/0.5384, allocations: 66.7 kB / 391.7 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of pre-optimization done (n=4): time 1.904e-06/0.5385, allocations: 0 / 391.7 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of matching and sorting (n=4): time 0.000186/0.5387, allocations: 52.88 kB / 391.7 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.5387, allocations: 55.41 kB / 391.8 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.969e-05/0.5388, allocations: 104.8 kB / 391.9 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.5389, allocations: 29.7 kB / 391.9 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.203e-05/0.5389, allocations: 83.64 kB / 392 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.244e-05/0.539, allocations: 11.81 kB / 392 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.539, allocations: 0 / 392 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.5391, allocations: 322.5 kB / 392.3 MB, free: 332 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.187e-05/0.5392, allocations: 7.25 kB / 392.3 MB, free: 328 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.737e-05/0.5393, allocations: 43.67 kB / 392.4 MB, free: 272 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.947e-05/0.5393, allocations: 15.42 kB / 392.4 MB, free: 260 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.5393, allocations: 3.938 kB / 392.4 MB, free: 256 kB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001609/0.5395, allocations: 68.5 kB / 392.5 MB, free: 188 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.5395, allocations: 6.344 kB / 392.5 MB, free: 184 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.5396, allocations: 4 kB / 392.5 MB, free: 180 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.5396, allocations: 0 / 392.5 MB, free: 180 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.5397, allocations: 19.92 kB / 392.5 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.5397, allocations: 4.141 kB / 392.5 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.608e-05/0.5398, allocations: 7.953 kB / 392.5 MB, free: 148 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.5398, allocations: 7.984 kB / 392.5 MB, free: 140 kB / 314.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: 3 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.576e-05/0.5399, allocations: 116.5 kB / 392.6 MB, free: 20 kB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001399/0.5401, allocations: 53.31 kB / 392.7 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.5401, allocations: 7.891 kB / 392.7 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.5402, allocations: 11.66 kB / 392.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.5402, allocations: 0 / 392.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.5402, allocations: 3.938 kB / 392.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.5402, allocations: 0 / 392.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.5404, allocations: 153.6 kB / 392.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.5404, allocations: 0 / 392.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.76e-05/0.5405, allocations: 8 kB / 392.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.5405, allocations: 4.859 kB / 392.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.5405, allocations: 7.562 kB / 392.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.5405, allocations: 0 / 392.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5406, allocations: 0 / 392.9 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000204/0.5408, allocations: 90.98 kB / 393 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.761e-05/0.5408, allocations: 88.56 kB / 393.1 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.5409, allocations: 4 kB / 393.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.084e-05/0.541, allocations: 8.062 kB / 393.1 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.312e-05/0.541, allocations: 3.984 kB / 393.1 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.541, allocations: 4 kB / 393.1 MB, free: 15.53 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.549e-05/0.5411, allocations: 82.66 kB / 393.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.256e-06/0.5411, allocations: 0 / 393.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002806/0.5414, allocations: 11.94 kB / 393.2 MB, free: 15.44 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mean.x) * Number of discrete variables: 2 ($whenCondition1,mean.y) * Number of discrete states: 1 (mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005441/0.542, allocations: 0.6363 MB / 393.8 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.5421, allocations: 27.81 kB / 393.8 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5421, allocations: 0 / 393.8 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.076e-05/0.5422, allocations: 11.5 kB / 393.8 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001249/0.5423, allocations: 7.438 kB / 393.9 MB, free: 14.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004547/0.5428, allocations: 123.3 kB / 394 MB, free: 14.6 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.5431, allocations: 0.6927 MB / 394.7 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.841e-05/0.5431, allocations: 0 / 394.7 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.83e-05/0.5432, allocations: 19.3 kB / 394.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of SimCode: time 7.42e-07/0.5432, allocations: 0 / 394.7 MB, free: 13.86 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03311/0.5763, allocations: 0.9149 MB / 395.6 MB, free: 12.95 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002677/0.5767, allocations: 114.5 kB / 395.7 MB, free: 12.76 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.226/2.803, allocations: 4 kB / 395.7 MB, free: 12.75 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat