Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Mean,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Mean",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.546/2.546, allocations: 270 MB / 282.6 MB, free: 1.926 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.175e-05, allocations: 0 / 347 MB, free: 3.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4335/0.4336, allocations: 61.87 MB / 408.9 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2332/0.6669, allocations: 88.2 MB / 497.1 MB, free: 2.375 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/0.6671, allocations: 63.97 kB / 497.2 MB, free: 2.312 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0219/0.6891, allocations: 4.433 MB / 0.4899 GB, free: 13.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.6891, allocations: 0 / 0.4899 GB, free: 13.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.557e-05/0.6891, allocations: 8 kB / 0.4899 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.001282/0.6904, allocations: 0.5483 MB / 0.4904 GB, free: 13.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.6905, allocations: 12.03 kB / 0.4904 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001577/0.6907, allocations: 71.2 kB / 0.4905 GB, free: 13.16 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.6908, allocations: 43.53 kB / 0.4905 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006423/0.6915, allocations: 318.2 kB / 0.4908 GB, free: 12.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.133e-05/0.6915, allocations: 32.67 kB / 0.4909 GB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.144e-05/0.6916, allocations: 32 kB / 0.4909 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007158/0.6923, allocations: 266.2 kB / 0.4911 GB, free: 12.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.727e-05/0.6924, allocations: 7.906 kB / 0.4911 GB, free: 12.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/0.6924, allocations: 19.97 kB / 0.4912 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.6925, allocations: 8 kB / 0.4912 GB, free: 12.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005377/0.693, allocations: 165.5 kB / 0.4913 GB, free: 12.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.6952, allocations: 0.8471 MB / 0.4922 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005285/0.6957, allocations: 190.9 kB / 0.4923 GB, free: 11.15 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/0.696, allocations: 88.84 kB / 0.4924 GB, free: 11.06 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.375e-05/0.696, allocations: 3.984 kB / 0.4924 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005337/0.6966, allocations: 215.1 kB / 0.4926 GB, free: 10.83 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 3.687e-06/0.6966, allocations: 0 / 0.4926 GB, free: 10.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007826/0.6974, allocations: 253.3 kB / 0.4929 GB, free: 10.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.6975, allocations: 59.41 kB / 0.4929 GB, free: 10.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.6978, allocations: 205.1 kB / 0.4931 GB, free: 10.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.23e-05/0.6979, allocations: 33.7 kB / 0.4932 GB, free: 10.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.698, allocations: 239.1 kB / 0.4934 GB, free: 10.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.6982, allocations: 106.5 kB / 0.4935 GB, free: 9.922 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.919e-05/0.6982, allocations: 8 kB / 0.4935 GB, free: 9.914 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.6984, allocations: 326.8 kB / 0.4938 GB, free: 9.586 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002225/0.6986, allocations: 68.75 kB / 0.4939 GB, free: 9.516 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.699, allocations: 210.2 kB / 0.4941 GB, free: 9.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.6993, allocations: 103.9 kB / 0.4942 GB, free: 9.148 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.802e-06/0.6993, allocations: 8 kB / 0.4942 GB, free: 9.141 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007881/0.7001, allocations: 305.1 kB / 0.4945 GB, free: 8.836 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.7001, allocations: 8 kB / 0.4945 GB, free: 8.828 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.7002, allocations: 4.469 kB / 0.4945 GB, free: 8.824 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.457e-05/0.7002, allocations: 12 kB / 0.4945 GB, free: 8.812 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000576/0.7008, allocations: 79.83 kB / 0.4946 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.975e-05/0.7008, allocations: 11.94 kB / 0.4946 GB, free: 8.723 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003419/0.7012, allocations: 35.67 kB / 0.4946 GB, free: 8.688 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.403e-05/0.7012, allocations: 20 kB / 0.4946 GB, free: 8.668 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.0001558/0.7014, allocations: 133 kB / 0.4948 GB, free: 8.531 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.017e-05/0.7015, allocations: 39.59 kB / 0.4948 GB, free: 8.492 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000829/0.7023, allocations: 300.2 kB / 0.4951 GB, free: 8.195 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.7023, allocations: 4 kB / 0.4951 GB, free: 8.191 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.7024, allocations: 0 / 0.4951 GB, free: 8.191 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.7024, allocations: 0 / 0.4951 GB, free: 8.191 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.7036, allocations: 0.7012 MB / 0.4958 GB, free: 7.434 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.7037, allocations: 0 / 0.4958 GB, free: 7.434 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005071/0.7042, allocations: 55.91 kB / 0.4958 GB, free: 7.379 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.575e-06/0.7042, allocations: 0 / 0.4958 GB, free: 7.379 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.319e-05/0.7043, allocations: 11.98 kB / 0.4958 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.7043, allocations: 0 / 0.4958 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.7043, allocations: 4 kB / 0.4958 GB, free: 7.363 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.7054, allocations: 495.4 kB / 0.4963 GB, free: 6.863 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.604e-05/0.7055, allocations: 100.8 kB / 0.4964 GB, free: 6.746 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.442e-05/0.7056, allocations: 8.062 kB / 0.4964 GB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.7059, allocations: 19.92 kB / 0.4964 GB, free: 6.719 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.213e-05/0.706, allocations: 19.97 kB / 0.4965 GB, free: 6.699 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/0.706, allocations: 15.98 kB / 0.4965 GB, free: 6.684 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002178/0.7063, allocations: 165.4 kB / 0.4966 GB, free: 6.523 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7063, allocations: 0 / 0.4966 GB, free: 6.523 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005536/0.7068, allocations: 83.73 kB / 0.4967 GB, free: 6.441 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.00144/0.7083, allocations: 1.038 MB / 0.4977 GB, free: 5.375 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0006585/0.709, allocations: 224.7 kB / 0.4979 GB, free: 5.156 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.709, allocations: 0 / 0.4979 GB, free: 5.156 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003169/0.7093, allocations: 116.4 kB / 0.4981 GB, free: 5.043 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.7097, allocations: 28.7 kB / 0.4981 GB, free: 5.016 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.7114, allocations: 0.5705 MB / 0.4986 GB, free: 4.406 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/0.7119, allocations: 0.7958 MB / 0.4994 GB, free: 3.582 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.7122, allocations: 127.4 kB / 0.4995 GB, free: 3.457 MB / 426.7 MB Notification: Performance of SimCode: time 1.042e-06/0.7122, allocations: 0 / 0.4995 GB, free: 3.457 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.511/3.223, allocations: 4.816 MB / 0.5042 GB, free: 14.65 MB / 442.7 MB