Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.TotalHarmonicDistortion,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_TotalHarmonicDistortion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.068/2.068, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.638e-05/5.644e-05, allocations: 6.5 kB / 292.7 MB, free: 8.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.125, allocations: 50.41 MB / 343.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4239/0.5489, allocations: 81.15 MB / 424.3 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.5492, allocations: 71.41 kB / 424.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04636/0.5956, allocations: 10.43 MB / 434.8 MB, free: 3.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5956, allocations: 0 / 434.8 MB, free: 3.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.068e-05/0.5957, allocations: 20 kB / 434.8 MB, free: 3.891 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 141 * Number of variables: 141 Notification: Performance of Generate backend data structure: time 0.002491/0.5982, allocations: 0.8416 MB / 435.7 MB, free: 3.039 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.5983, allocations: 12.03 kB / 435.7 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001835/0.5985, allocations: 93.52 kB / 435.8 MB, free: 2.961 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002323/0.5987, allocations: 87.05 kB / 435.9 MB, free: 2.875 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.5999, allocations: 0.5215 MB / 436.4 MB, free: 2.426 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.871e-05/0.6, allocations: 47.44 kB / 436.4 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001906/0.6002, allocations: 64.34 kB / 436.5 MB, free: 2.352 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.6018, allocations: 0.6038 MB / 437.1 MB, free: 1.938 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.872e-05/0.6019, allocations: 3.938 kB / 437.1 MB, free: 1.934 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.602, allocations: 29.75 kB / 437.1 MB, free: 1.922 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.602, allocations: 12 kB / 437.1 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.6032, allocations: 416.2 kB / 437.5 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00529/0.6085, allocations: 1.989 MB / 439.5 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.6097, allocations: 409.3 kB / 439.9 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004454/0.6102, allocations: 174.3 kB / 440.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.815e-05/0.6103, allocations: 12.42 kB / 440.1 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008344/0.6111, allocations: 344.9 kB / 440.4 MB, free: 15.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=53): time 6.312e-06/0.6111, allocations: 3.938 kB / 440.4 MB, free: 15.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.001357/0.6125, allocations: 466.6 kB / 440.9 MB, free: 15.17 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.088e-05/0.6126, allocations: 114.6 kB / 441 MB, free: 15.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007195/0.6133, allocations: 395.6 kB / 441.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.6135, allocations: 44.25 kB / 441.4 MB, free: 14.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003116/0.6138, allocations: 320.9 kB / 441.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.614, allocations: 159 kB / 441.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.991e-05/0.6141, allocations: 14.19 kB / 441.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.6142, allocations: 370.3 kB / 442.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004659/0.6147, allocations: 163.4 kB / 442.4 MB, free: 13.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006349/0.6154, allocations: 377.2 kB / 442.8 MB, free: 13.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005492/0.6159, allocations: 199.3 kB / 443 MB, free: 13.37 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.616, allocations: 0 / 443 MB, free: 13.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001552/0.6175, allocations: 0.5753 MB / 443.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009937/0.6185, allocations: 2.528 MB / 446.1 MB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.612e-05/0.6186, allocations: 12 kB / 446.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.682e-05/0.6186, allocations: 16 kB / 446.1 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.6198, allocations: 139.1 kB / 446.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.761e-05/0.6198, allocations: 19.89 kB / 446.3 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008625/0.6207, allocations: 86.5 kB / 446.4 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.155e-05/0.6208, allocations: 31.11 kB / 446.4 MB, free: 9.977 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.6208, allocations: 4 kB / 446.4 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001286/0.6221, allocations: 0.5008 MB / 446.9 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.6221, allocations: 8 kB / 446.9 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/0.6222, allocations: 16.06 kB / 446.9 MB, free: 9.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009043/0.6231, allocations: 123.4 kB / 447.1 MB, free: 9.477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.747e-05/0.6231, allocations: 19.92 kB / 447.1 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007146/0.6238, allocations: 80.44 kB / 447.2 MB, free: 9.391 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.245e-05/0.6239, allocations: 27.56 kB / 447.2 MB, free: 9.367 MB / 362.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_last,thdRMS.harmonic.mean1.y_last,$PRE.thdRMS.harmonic.mean2.y_last,thdRMS.harmonic.mean2.y_last,$PRE.thdRMS.rootMeanSquare.mean.y_last,thdRMS.rootMeanSquare.mean.y_last,thdRMS.valid,thdRMS.andValid.u1,thdRMS.andValid.u2,$PRE.thd1.harmonic.mean1.y_last,thd1.harmonic.mean1.y_last,$PRE.thd1.harmonic.mean2.y_last,thd1.harmonic.mean2.y_last,$PRE.thd1.rootMeanSquare.mean.y_last,thd1.rootMeanSquare.mean.y_last,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.0003137/0.6242, allocations: 153.4 kB / 447.3 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.6244, allocations: 63.28 kB / 447.4 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/0.6258, allocations: 497.3 kB / 447.9 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.6259, allocations: 11.98 kB / 447.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.6259, allocations: 0 / 447.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.6259, allocations: 0 / 447.9 MB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.6269, allocations: 0.638 MB / 448.5 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.627, allocations: 0 / 448.5 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009092/0.6279, allocations: 99.25 kB / 448.6 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.699e-05/0.6279, allocations: 4 kB / 448.6 MB, free: 8.219 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.463e-05/0.628, allocations: 19 kB / 448.7 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.6281, allocations: 0 / 448.7 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6281, allocations: 0 / 448.7 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002022/0.6301, allocations: 0.748 MB / 449.4 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002529/0.6304, allocations: 131.1 kB / 449.5 MB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/0.6306, allocations: 14.94 kB / 449.5 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007035/0.6313, allocations: 65.66 kB / 449.6 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.6315, allocations: 39.25 kB / 449.6 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.383e-05/0.6316, allocations: 19.42 kB / 449.7 MB, free: 7.441 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005991/0.6322, allocations: 307.7 kB / 450 MB, free: 7.199 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6322, allocations: 0 / 450 MB, free: 7.199 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001231/0.6334, allocations: 251 kB / 450.2 MB, free: 6.953 MB / 362.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_last,thd1.harmonic.mean2.y_last,thd1.rootMeanSquare.mean.y_last,thd1.valid,thd1.andValid.u1,thd1.andValid.u2,thdRMS.harmonic.mean1.y_last,thdRMS.harmonic.mean2.y_last,thdRMS.rootMeanSquare.mean.y_last,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.002424/0.6359, allocations: 1.319 MB / 451.5 MB, free: 5.605 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002046/0.638, allocations: 0.6973 MB / 452.2 MB, free: 4.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.638, allocations: 0 / 452.2 MB, free: 4.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006089/0.6386, allocations: 225.5 kB / 452.4 MB, free: 4.691 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006616/0.6393, allocations: 74.92 kB / 452.5 MB, free: 4.617 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003187/0.6425, allocations: 0.9688 MB / 453.5 MB, free: 3.605 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006152/0.6431, allocations: 0.9123 MB / 454.4 MB, free: 2.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009093/0.6441, allocations: 118.4 kB / 454.5 MB, free: 2.543 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005082/0.6446, allocations: 235.3 kB / 454.7 MB, free: 2.312 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6446, allocations: 0 / 454.7 MB, free: 2.312 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04627/0.6909, allocations: 11.23 MB / 466 MB, free: 7.191 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002399/0.6912, allocations: 145.3 kB / 466.1 MB, free: 6.973 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.959/3.651, allocations: 0 / 466.1 MB, free: 6.973 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.TotalHarmonicDistortion_res.mat does not exist to compare? outputFormat=mat