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.052/2.052, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.515e-05/4.536e-05, allocations: 4 kB / 273.1 MB, free: 168 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 48.69 MB / 321.8 MB, free: 15.38 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4421/0.5544, allocations: 73.87 MB / 395.7 MB, free: 15.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.5548, allocations: 63.97 kB / 395.8 MB, free: 15.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004287/0.5591, allocations: 0.9432 MB / 396.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5591, allocations: 0 / 396.7 MB, free: 14.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.5591, allocations: 4 kB / 396.7 MB, free: 14.76 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004595/0.5596, allocations: 342.4 kB / 397 MB, free: 14.38 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.5597, allocations: 17.28 kB / 397.1 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.873e-05/0.5597, allocations: 34.56 kB / 397.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.551e-05/0.5598, allocations: 7.906 kB / 397.1 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002002/0.56, allocations: 175 kB / 397.3 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.56, allocations: 4.875 kB / 397.3 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.5601, allocations: 4 kB / 397.3 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.5602, allocations: 41.69 kB / 397.3 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.5602, allocations: 0 / 397.3 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.5602, allocations: 4 kB / 397.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.5603, allocations: 4 kB / 397.3 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.096e-05/0.5603, allocations: 19.91 kB / 397.4 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004977/0.5608, allocations: 272.9 kB / 397.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.45e-05/0.5609, allocations: 32.2 kB / 397.7 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.287e-05/0.561, allocations: 16.86 kB / 397.7 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.561, allocations: 0 / 397.7 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000176/0.5612, allocations: 71.33 kB / 397.7 MB, free: 13.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.144e-06/0.5612, allocations: 0 / 397.7 MB, free: 13.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002091/0.5615, allocations: 57.69 kB / 397.8 MB, free: 13.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.5615, allocations: 51.41 kB / 397.8 MB, free: 13.44 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.5616, allocations: 113.1 kB / 398 MB, free: 13.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.5617, allocations: 25.7 kB / 398 MB, free: 13.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.258e-05/0.5617, allocations: 84.14 kB / 398.1 MB, free: 13.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.513e-05/0.5618, allocations: 15.81 kB / 398.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-06/0.5618, allocations: 0 / 398.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.5619, allocations: 318.8 kB / 398.4 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.031e-05/0.562, allocations: 8 kB / 398.4 MB, free: 12.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.885e-05/0.562, allocations: 56.53 kB / 398.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.411e-05/0.5621, allocations: 11.98 kB / 398.5 MB, free: 12.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.5621, allocations: 0 / 398.5 MB, free: 12.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000177/0.5623, allocations: 77.56 kB / 398.5 MB, free: 12.69 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.5623, allocations: 12.09 kB / 398.6 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.148e-06/0.5624, allocations: 4 kB / 398.6 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.5624, allocations: 0 / 398.6 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.5625, allocations: 15.98 kB / 398.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.5626, allocations: 0 / 398.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.679e-05/0.5626, allocations: 7.906 kB / 398.6 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.5627, allocations: 7.953 kB / 398.6 MB, free: 12.64 MB / 330.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 8.666e-05/0.5628, allocations: 112.9 kB / 398.7 MB, free: 12.53 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.77e-05/0.5628, allocations: 8 kB / 398.7 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.086e-05/0.5628, allocations: 8.016 kB / 398.7 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.5629, allocations: 4 kB / 398.7 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.5629, allocations: 0 / 398.7 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.5629, allocations: 0 / 398.7 MB, free: 12.51 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.5631, allocations: 169.6 kB / 398.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.5631, allocations: 0 / 398.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001048/0.5632, allocations: 7.984 kB / 398.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.5632, allocations: 0 / 398.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.5632, allocations: 4 kB / 398.9 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.5632, allocations: 4 kB / 398.9 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.5632, allocations: 0 / 398.9 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.5635, allocations: 101 kB / 399 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.867e-05/0.5636, allocations: 85 kB / 399.1 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.5636, allocations: 4.031 kB / 399.1 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.863e-05/0.5637, allocations: 3.984 kB / 399.1 MB, free: 12.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.5638, allocations: 7.938 kB / 399.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.016e-06/0.5638, allocations: 64 / 399.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.987e-05/0.5639, allocations: 91.28 kB / 399.2 MB, free: 11.95 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5639, allocations: 0 / 399.2 MB, free: 11.95 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002709/0.5642, allocations: 15.98 kB / 399.2 MB, free: 11.94 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.0005253/0.5647, allocations: 0.6321 MB / 399.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000146/0.5649, allocations: 32 kB / 399.9 MB, free: 11.24 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.5649, allocations: 288 / 399.9 MB, free: 11.24 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.982e-05/0.5649, allocations: 19.88 kB / 399.9 MB, free: 11.22 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001451/0.5651, allocations: 11.92 kB / 399.9 MB, free: 11.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004769/0.5656, allocations: 128.5 kB / 400 MB, free: 11.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.5659, allocations: 0.6848 MB / 400.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.353e-05/0.5659, allocations: 8.297 kB / 400.7 MB, free: 10.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.115e-05/0.566, allocations: 15.44 kB / 400.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of SimCode: time 8.32e-07/0.566, allocations: 0 / 400.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.59, allocations: 1.2 MB / 401.9 MB, free: 9.172 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003071/0.5904, allocations: 128.8 kB / 402.1 MB, free: 8.949 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.492/3.082, allocations: 3.984 kB / 402.1 MB, free: 8.945 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