Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.393/2.393, allocations: 270 MB / 283.6 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.217e-05/3.215e-05, allocations: 4 kB / 348.5 MB, free: 2.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4164/0.4164, allocations: 61.87 MB / 410.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1825/0.599, allocations: 88.2 MB / 498.6 MB, free: 2.367 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.5993, allocations: 63.97 kB / 498.6 MB, free: 2.305 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02171/0.621, allocations: 4.434 MB / 0.4913 GB, free: 13.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.6211, allocations: 0 / 0.4913 GB, free: 13.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.663e-05/0.6211, allocations: 8 kB / 0.4913 GB, free: 13.84 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001344/0.6225, allocations: 0.5523 MB / 0.4918 GB, free: 13.24 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.6225, allocations: 12.03 kB / 0.4918 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000171/0.6227, allocations: 67.22 kB / 0.4919 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.6228, allocations: 43.53 kB / 0.4919 GB, free: 13.11 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007906/0.6237, allocations: 322.2 kB / 0.4922 GB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.761e-05/0.6238, allocations: 32.72 kB / 0.4923 GB, free: 12.72 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001465/0.6239, allocations: 32 kB / 0.4923 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001087/0.625, allocations: 262.2 kB / 0.4925 GB, free: 12.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.88e-05/0.6251, allocations: 3.906 kB / 0.4925 GB, free: 12.42 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.607e-05/0.6252, allocations: 16 kB / 0.4926 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.74e-05/0.6252, allocations: 8 kB / 0.4926 GB, free: 12.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007163/0.626, allocations: 169.5 kB / 0.4927 GB, free: 12.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002824/0.6288, allocations: 0.855 MB / 0.4936 GB, free: 11.33 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005461/0.6294, allocations: 182.9 kB / 0.4937 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002335/0.6297, allocations: 88.84 kB / 0.4938 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.907e-05/0.6297, allocations: 0 / 0.4938 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005389/0.6303, allocations: 215.1 kB / 0.494 GB, free: 10.83 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 2.685e-06/0.6303, allocations: 3.938 kB / 0.494 GB, free: 10.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007709/0.6311, allocations: 253.3 kB / 0.4943 GB, free: 10.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.6311, allocations: 59.41 kB / 0.4943 GB, free: 10.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004001/0.6316, allocations: 209.1 kB / 0.4945 GB, free: 10.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.231e-05/0.6316, allocations: 33.69 kB / 0.4946 GB, free: 10.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.6318, allocations: 184.7 kB / 0.4947 GB, free: 10.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.6319, allocations: 102.5 kB / 0.4948 GB, free: 9.965 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.928e-05/0.632, allocations: 8 kB / 0.4948 GB, free: 9.957 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.6321, allocations: 338.8 kB / 0.4952 GB, free: 9.617 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.6324, allocations: 72.73 kB / 0.4952 GB, free: 9.543 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000337/0.6327, allocations: 210.2 kB / 0.4954 GB, free: 9.277 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.633, allocations: 111.8 kB / 0.4955 GB, free: 9.168 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.229e-06/0.6331, allocations: 0 / 0.4955 GB, free: 9.168 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008793/0.634, allocations: 321.3 kB / 0.4958 GB, free: 8.848 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.634, allocations: 11.98 kB / 0.4959 GB, free: 8.836 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.634, allocations: 7.938 kB / 0.4959 GB, free: 8.828 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.791e-05/0.6341, allocations: 8 kB / 0.4959 GB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005816/0.6346, allocations: 71.91 kB / 0.4959 GB, free: 8.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.225e-05/0.6347, allocations: 15.92 kB / 0.496 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003179/0.635, allocations: 35.69 kB / 0.496 GB, free: 8.699 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.6351, allocations: 24.08 kB / 0.496 GB, free: 8.676 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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 0.0001867/0.6353, allocations: 132.9 kB / 0.4961 GB, free: 8.539 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.6354, allocations: 23.72 kB / 0.4962 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001419/0.6368, allocations: 304.1 kB / 0.4965 GB, free: 8.215 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.6369, allocations: 0 / 0.4965 GB, free: 8.215 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.6369, allocations: 11.98 kB / 0.4965 GB, free: 8.203 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.637, allocations: 0 / 0.4965 GB, free: 8.203 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.6392, allocations: 0.6934 MB / 0.4971 GB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.6393, allocations: 0 / 0.4971 GB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008986/0.6402, allocations: 51.91 kB / 0.4972 GB, free: 7.402 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-05/0.6402, allocations: 7.984 kB / 0.4972 GB, free: 7.395 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.934e-05/0.6403, allocations: 8 kB / 0.4972 GB, free: 7.387 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/0.6404, allocations: 0 / 0.4972 GB, free: 7.387 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6404, allocations: 4 kB / 0.4972 GB, free: 7.383 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.6423, allocations: 495.3 kB / 0.4977 GB, free: 6.883 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.6425, allocations: 104.8 kB / 0.4978 GB, free: 6.762 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.6427, allocations: 8.062 kB / 0.4978 GB, free: 6.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005972/0.6433, allocations: 15.98 kB / 0.4978 GB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.6435, allocations: 23.97 kB / 0.4978 GB, free: 6.715 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.406e-05/0.6436, allocations: 19.98 kB / 0.4978 GB, free: 6.695 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003497/0.644, allocations: 161.4 kB / 0.498 GB, free: 6.539 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.644, allocations: 0 / 0.498 GB, free: 6.539 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008353/0.6448, allocations: 71.75 kB / 0.4981 GB, free: 6.469 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002357/0.6472, allocations: 1.052 MB / 0.4991 GB, free: 5.387 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009808/0.6482, allocations: 219.9 kB / 0.4993 GB, free: 5.172 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.6483, allocations: 192 / 0.4993 GB, free: 5.172 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000331/0.6486, allocations: 116.4 kB / 0.4994 GB, free: 5.059 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004142/0.6491, allocations: 28.36 kB / 0.4994 GB, free: 5.031 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.6508, allocations: 0.5437 MB / 0.5 GB, free: 4.457 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004561/0.6513, allocations: 0.7958 MB / 0.5008 GB, free: 3.633 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000291/0.6516, allocations: 42.05 kB / 0.5008 GB, free: 3.594 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002677/0.6519, allocations: 115.4 kB / 0.5009 GB, free: 3.48 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/0.6519, allocations: 0 / 0.5009 GB, free: 3.48 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03701/0.689, allocations: 4.942 MB / 0.5057 GB, free: 14.65 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000298/0.6893, allocations: 132.6 kB / 0.5059 GB, free: 14.42 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.522/3.211, allocations: 64 / 0.5059 GB, free: 14.42 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat does not exist to compare? outputFormat=mat