Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.96e-05/2.989e-05, allocations: 0 / 219.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3539, allocations: 38.76 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1612/0.5152, allocations: 92.98 MB / 351.3 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.5155, allocations: 71.97 kB / 351.4 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.51/1.026, allocations: 86.39 MB / 437.8 MB, free: 37.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.314e-06/1.026, allocations: 0 / 437.8 MB, free: 37.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.12e-05/1.026, allocations: 24 kB / 437.8 MB, free: 37.73 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003618/1.029, allocations: 1.61 MB / 439.4 MB, free: 36.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.291e-05/1.029, allocations: 12.03 kB / 439.4 MB, free: 36.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003294/1.03, allocations: 193.7 kB / 439.6 MB, free: 35.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004441/1.034, allocations: 1.219 MB / 440.8 MB, free: 34.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.285e-05/1.034, allocations: 8 kB / 440.8 MB, free: 34.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001844/1.034, allocations: 23.94 kB / 440.9 MB, free: 34.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001562/1.036, allocations: 357.3 kB / 441.2 MB, free: 34.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/1.038, allocations: 414.5 kB / 441.6 MB, free: 33.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/1.038, allocations: 0 / 441.6 MB, free: 33.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/1.038, allocations: 7.984 kB / 441.6 MB, free: 33.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-05/1.038, allocations: 4 kB / 441.6 MB, free: 33.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005417/1.043, allocations: 1.597 MB / 443.2 MB, free: 32.1 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005555/1.044, allocations: 267.3 kB / 443.5 MB, free: 31.83 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005888/1.045, allocations: 353.9 kB / 443.8 MB, free: 31.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02209/1.067, allocations: 18.18 MB / 462 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004186/1.067, allocations: 199.2 kB / 462.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.775e-06/1.067, allocations: 0 / 462.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001052/1.068, allocations: 488.2 kB / 462.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/1.068, allocations: 166.2 kB / 462.8 MB, free: 9.812 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/1.07, allocations: 1.114 MB / 464 MB, free: 8.668 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/1.07, allocations: 29.7 kB / 464 MB, free: 8.633 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006849/1.071, allocations: 0.7227 MB / 464.7 MB, free: 7.906 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.181e-05/1.071, allocations: 90.66 kB / 464.8 MB, free: 7.816 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.781e-05/1.071, allocations: 11.92 kB / 464.8 MB, free: 7.805 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.936e-05/1.071, allocations: 325.9 kB / 465.1 MB, free: 7.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/1.071, allocations: 97.12 kB / 465.2 MB, free: 7.387 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003458/1.072, allocations: 323.1 kB / 465.5 MB, free: 6.969 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/1.072, allocations: 149.2 kB / 465.7 MB, free: 6.828 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/1.072, allocations: 0 / 465.7 MB, free: 6.828 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001229/1.073, allocations: 0.5995 MB / 466.3 MB, free: 6.219 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/1.073, allocations: 12 kB / 466.3 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001016/1.073, allocations: 40 kB / 466.3 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004126/1.074, allocations: 132.8 kB / 466.5 MB, free: 6.035 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007252/1.074, allocations: 123.8 kB / 466.6 MB, free: 5.914 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006784/1.075, allocations: 0.6967 MB / 467.3 MB, free: 5.191 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/1.076, allocations: 75.5 kB / 467.4 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/1.076, allocations: 36 kB / 467.4 MB, free: 5.082 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001611/1.076, allocations: 124.8 kB / 467.5 MB, free: 4.953 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008901/1.077, allocations: 480.2 kB / 468 MB, free: 4.473 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002013/1.078, allocations: 189.7 kB / 468.2 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002233/1.08, allocations: 0.6571 MB / 468.8 MB, free: 3.617 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/1.08, allocations: 8 kB / 468.8 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/1.08, allocations: 0 / 468.8 MB, free: 3.609 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/1.08, allocations: 3.984 kB / 468.8 MB, free: 3.605 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002116/1.082, allocations: 1.17 MB / 470 MB, free: 2.379 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.702e-05/1.082, allocations: 32 kB / 470 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004466/1.083, allocations: 55.89 kB / 470.1 MB, free: 2.293 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003123/1.083, allocations: 124.9 kB / 470.2 MB, free: 2.168 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.95e-05/1.083, allocations: 27.92 kB / 470.2 MB, free: 2.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006302/1.084, allocations: 0.6812 MB / 470.9 MB, free: 1.434 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.084, allocations: 4.031 kB / 470.9 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/1.085, allocations: 0.6419 MB / 471.6 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005468/1.085, allocations: 278.7 kB / 471.8 MB, free: 460 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003308/1.086, allocations: 8 kB / 471.8 MB, free: 452 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008312/1.086, allocations: 43.89 kB / 471.9 MB, free: 408 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/1.087, allocations: 39.95 kB / 471.9 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.97e-05/1.087, allocations: 19.98 kB / 472 MB, free: 348 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001626/1.088, allocations: 0.8367 MB / 472.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.088, allocations: 0 / 472.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001622/1.09, allocations: 339.7 kB / 473.1 MB, free: 15.15 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.003206/1.093, allocations: 1.913 MB / 475 MB, free: 13.19 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001231/1.094, allocations: 404.3 kB / 475.4 MB, free: 12.78 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.094, allocations: 0.5 kB / 475.4 MB, free: 12.78 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006206/1.095, allocations: 235.3 kB / 475.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/1.097, allocations: 245.3 kB / 475.9 MB, free: 12.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00546/1.102, allocations: 1.769 MB / 477.7 MB, free: 10.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/1.103, allocations: 1.183 MB / 478.8 MB, free: 9.262 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001037/1.104, allocations: 170.5 kB / 479 MB, free: 9.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009843/1.105, allocations: 0.554 MB / 479.6 MB, free: 8.535 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/1.105, allocations: 0 / 479.6 MB, free: 8.535 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3444/1.45, allocations: 29.11 MB / 0.4968 GB, free: 83.62 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002689/1.45, allocations: 134.4 kB / 0.4969 GB, free: 83.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.881/5.331, allocations: 5.594 kB / 0.4969 GB, free: 83.44 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat