Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.202/2.202, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.545e-05/3.55e-05, allocations: 0 / 269.4 MB, free: 6.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1248, allocations: 47.57 MB / 317 MB, free: 6.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5015/0.6264, allocations: 79.59 MB / 396.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.6268, allocations: 72.53 kB / 396.7 MB, free: 8.062 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.054/0.6808, allocations: 10.18 MB / 406.9 MB, free: 15.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.6809, allocations: 0 / 406.9 MB, free: 15.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.321e-05/0.6809, allocations: 24.16 kB / 406.9 MB, free: 15.5 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002542/0.6835, allocations: 0.8295 MB / 407.7 MB, free: 14.66 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.6835, allocations: 8.031 kB / 407.7 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001941/0.6838, allocations: 96.7 kB / 407.8 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002389/0.684, allocations: 90.94 kB / 407.9 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.6852, allocations: 0.5129 MB / 408.4 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.6853, allocations: 52.48 kB / 408.5 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001682/0.6855, allocations: 62.91 kB / 408.5 MB, free: 13.97 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.687, allocations: 0.5789 MB / 409.1 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.6871, allocations: 7.938 kB / 409.1 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.436e-05/0.6872, allocations: 23.19 kB / 409.1 MB, free: 13.55 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.6872, allocations: 19.94 kB / 409.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.6884, allocations: 407.1 kB / 409.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00517/0.6936, allocations: 1.944 MB / 411.5 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.6947, allocations: 417.3 kB / 411.9 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004531/0.6952, allocations: 177.5 kB / 412.1 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.844e-05/0.6953, allocations: 4.438 kB / 412.1 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008456/0.6961, allocations: 344.2 kB / 412.4 MB, free: 11.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=53): time 3.797e-06/0.6961, allocations: 0 / 412.4 MB, free: 11.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.001372/0.6975, allocations: 462.2 kB / 412.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.551e-05/0.6976, allocations: 118.6 kB / 413 MB, free: 10.7 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007557/0.6984, allocations: 404.9 kB / 413.4 MB, free: 10.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.6985, allocations: 44.45 kB / 413.4 MB, free: 10.35 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003115/0.6989, allocations: 313.6 kB / 413.7 MB, free: 10.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.6991, allocations: 161.4 kB / 413.9 MB, free: 9.992 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.198e-05/0.6991, allocations: 12.31 kB / 413.9 MB, free: 9.988 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.6993, allocations: 369.8 kB / 414.3 MB, free: 9.645 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004488/0.6998, allocations: 153.6 kB / 414.4 MB, free: 9.555 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006505/0.7005, allocations: 378.3 kB / 414.8 MB, free: 9.172 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005361/0.701, allocations: 201.6 kB / 415 MB, free: 9.047 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.701, allocations: 4 kB / 415 MB, free: 9.043 MB / 330.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001568/0.7026, allocations: 0.5759 MB / 415.6 MB, free: 8.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001133/0.7038, allocations: 2.527 MB / 418.1 MB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/0.7038, allocations: 8 kB / 418.1 MB, free: 5.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.291e-05/0.7038, allocations: 12 kB / 418.1 MB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/0.705, allocations: 143.1 kB / 418.2 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.991e-05/0.705, allocations: 19.92 kB / 418.3 MB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000872/0.7059, allocations: 89.44 kB / 418.3 MB, free: 5.672 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.601e-05/0.706, allocations: 33.92 kB / 418.4 MB, free: 5.645 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.706, allocations: 4 kB / 418.4 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001332/0.7074, allocations: 0.4907 MB / 418.9 MB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.7074, allocations: 8.812 kB / 418.9 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.7074, allocations: 8 kB / 418.9 MB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009643/0.7084, allocations: 135.3 kB / 419 MB, free: 5.152 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.96e-05/0.7085, allocations: 15.92 kB / 419 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007427/0.7092, allocations: 73.52 kB / 419.1 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.557e-05/0.7093, allocations: 35.3 kB / 419.1 MB, free: 5.047 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean1.y,$PRE.thdRMS.harmonic.mean2.y,thdRMS.harmonic.mean2.y,$PRE.thdRMS.rootMeanSquare.mean.y,thdRMS.rootMeanSquare.mean.y,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y,thd1.harmonic.mean1.y,$PRE.thd1.harmonic.mean2.y,thd1.harmonic.mean2.y,$PRE.thd1.rootMeanSquare.mean.y,thd1.rootMeanSquare.mean.y,thd1.valid,thd1.andValid.u1,thd1.andValid.u2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * 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.0003318/0.7097, allocations: 154 kB / 419.3 MB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.7098, allocations: 59.33 kB / 419.4 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001447/0.7113, allocations: 0.4943 MB / 419.8 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.7113, allocations: 15.94 kB / 419.9 MB, free: 4.488 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.7114, allocations: 0 / 419.9 MB, free: 4.488 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.7114, allocations: 0 / 419.9 MB, free: 4.488 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.7125, allocations: 0.6297 MB / 420.5 MB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.7125, allocations: 3.953 kB / 420.5 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009433/0.7135, allocations: 98.86 kB / 420.6 MB, free: 3.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.228e-05/0.7135, allocations: 8 kB / 420.6 MB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.854e-05/0.7136, allocations: 11.55 kB / 420.6 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.026e-05/0.7136, allocations: 8 kB / 420.6 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.7136, allocations: 0 / 420.6 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/0.7155, allocations: 0.7364 MB / 421.4 MB, free: 3.359 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.7157, allocations: 140.2 kB / 421.5 MB, free: 3.207 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001431/0.7159, allocations: 18.67 kB / 421.5 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006988/0.7166, allocations: 50.78 kB / 421.6 MB, free: 3.156 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/0.7169, allocations: 39.25 kB / 421.6 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.717, allocations: 27.41 kB / 421.6 MB, free: 3.102 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001011/0.718, allocations: 304.3 kB / 421.9 MB, free: 2.879 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.7181, allocations: 4 kB / 421.9 MB, free: 2.875 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002317/0.7204, allocations: 246.5 kB / 422.2 MB, free: 2.66 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (thd1.harmonic.mean1.x,thd1.harmonic.mean2.x,thd1.rootMeanSquare.mean.x,thdRMS.harmonic.mean1.x,thdRMS.harmonic.mean2.x,thdRMS.rootMeanSquare.mean.x) * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,thd1.harmonic.mean1.y,thd1.harmonic.mean2.y,thd1.rootMeanSquare.mean.y,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y,thdRMS.harmonic.mean2.y,thdRMS.rootMeanSquare.mean.y,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2) * Number of discrete states: 6 (thdRMS.rootMeanSquare.mean.x,thdRMS.harmonic.mean2.x,thdRMS.harmonic.mean1.x,thd1.rootMeanSquare.mean.x,thd1.harmonic.mean2.x,thd1.harmonic.mean1.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.004714/0.7252, allocations: 1.321 MB / 423.5 MB, free: 1.578 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003471/0.7287, allocations: 0.7088 MB / 424.2 MB, free: 1.086 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/0.7288, allocations: 4 kB / 424.2 MB, free: 1.082 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009922/0.7298, allocations: 223.6 kB / 424.4 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000963/0.7308, allocations: 74.2 kB / 424.5 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004679/0.7355, allocations: 0.9676 MB / 425.5 MB, free: 32 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009592/0.7365, allocations: 0.9121 MB / 426.4 MB, free: 15.09 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001495/0.7381, allocations: 118.6 kB / 426.5 MB, free: 14.97 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006634/0.7388, allocations: 234.5 kB / 426.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of SimCode: time 1.843e-06/0.7388, allocations: 0 / 426.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04931/0.7881, allocations: 11.24 MB / 438 MB, free: 3.734 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003061/0.7885, allocations: 153.3 kB / 438.1 MB, free: 3.508 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.087/3.876, allocations: 0 / 438.1 MB, free: 3.508 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat does not exist to compare? outputFormat=mat