Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.987/1.987, allocations: 195 MB / 202.8 MB, free: 13.77 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.496e-05/2.507e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2984, allocations: 44.5 MB / 294.2 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1876/0.486, allocations: 97.02 MB / 391.2 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.4864, allocations: 67.97 kB / 391.3 MB, free: 0.707 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5298/1.016, allocations: 69.94 MB / 461.2 MB, free: 84.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.804e-06/1.016, allocations: 0 / 461.2 MB, free: 84.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.998e-05/1.016, allocations: 18.56 kB / 461.3 MB, free: 84.45 MB / 362.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.003675/1.02, allocations: 1.207 MB / 462.5 MB, free: 83.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.916e-05/1.02, allocations: 7.844 kB / 462.5 MB, free: 83.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002855/1.02, allocations: 129.6 kB / 462.6 MB, free: 83.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002146/1.023, allocations: 0.7563 MB / 463.4 MB, free: 83.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/1.023, allocations: 13.81 kB / 463.4 MB, free: 83.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/1.023, allocations: 14.84 kB / 463.4 MB, free: 83.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008593/1.024, allocations: 238 kB / 463.6 MB, free: 83.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009271/1.025, allocations: 293.6 kB / 463.9 MB, free: 82.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/1.025, allocations: 6.484 kB / 463.9 MB, free: 82.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.036e-05/1.025, allocations: 0 / 463.9 MB, free: 82.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.815e-05/1.025, allocations: 10.66 kB / 463.9 MB, free: 82.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003571/1.028, allocations: 1.225 MB / 465.2 MB, free: 82.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/1.029, allocations: 162.5 kB / 465.3 MB, free: 82.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004649/1.029, allocations: 180.4 kB / 465.5 MB, free: 82.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0158/1.045, allocations: 9.274 MB / 474.8 MB, free: 72.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004554/1.046, allocations: 147.3 kB / 474.9 MB, free: 72.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 3.477e-06/1.046, allocations: 0 / 474.9 MB, free: 72.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009049/1.047, allocations: 284.2 kB / 475.2 MB, free: 72.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/1.047, allocations: 110.8 kB / 475.3 MB, free: 71.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/1.048, allocations: 0.7009 MB / 476 MB, free: 71.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.023e-05/1.048, allocations: 25.7 kB / 476 MB, free: 71.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006164/1.049, allocations: 476.5 kB / 476.5 MB, free: 70.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.138e-05/1.049, allocations: 55.3 kB / 476.5 MB, free: 70.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/1.049, allocations: 3.984 kB / 476.5 MB, free: 70.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.232e-05/1.049, allocations: 322 kB / 476.9 MB, free: 70.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003106/1.05, allocations: 64.72 kB / 476.9 MB, free: 70.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/1.05, allocations: 219.4 kB / 477.1 MB, free: 69.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/1.05, allocations: 95.53 kB / 477.2 MB, free: 69.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.158e-06/1.05, allocations: 4 kB / 477.2 MB, free: 69.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001183/1.052, allocations: 382.2 kB / 477.6 MB, free: 69.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/1.052, allocations: 4 kB / 477.6 MB, free: 69.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.757e-05/1.052, allocations: 24 kB / 477.6 MB, free: 69.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.013e-05/1.052, allocations: 4 kB / 477.6 MB, free: 69.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008757/1.053, allocations: 104 kB / 477.7 MB, free: 69.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/1.053, allocations: 7.984 kB / 477.7 MB, free: 69.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/1.054, allocations: 55.66 kB / 477.8 MB, free: 69.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.417e-05/1.054, allocations: 24 kB / 477.8 MB, free: 69.26 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.VDS.counter,VDS.counter,$PRE.VGS.counter,VGS.counter,$whenCondition2,$whenCondition1,$PRE.VDS.T0,VDS.T0,$PRE.VDS.counter2,VDS.counter2,$PRE.VGS.T0,VGS.T0,$PRE.VGS.counter2,VGS.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001786/1.054, allocations: 128.8 kB / 477.9 MB, free: 69.12 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008284/1.055, allocations: 280.3 kB / 478.2 MB, free: 68.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001928/1.055, allocations: 106.7 kB / 478.3 MB, free: 68.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0018/1.057, allocations: 382.1 kB / 478.7 MB, free: 68.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/1.057, allocations: 0 / 478.7 MB, free: 68.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/1.057, allocations: 4 kB / 478.7 MB, free: 68.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/1.057, allocations: 7.969 kB / 478.7 MB, free: 68.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/1.058, allocations: 0.5347 MB / 479.2 MB, free: 67.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.738e-05/1.058, allocations: 23.98 kB / 479.3 MB, free: 67.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005867/1.059, allocations: 59.95 kB / 479.3 MB, free: 67.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.03e-05/1.059, allocations: 4 kB / 479.3 MB, free: 67.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.508e-05/1.059, allocations: 4 kB / 479.3 MB, free: 67.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/1.059, allocations: 4 kB / 479.3 MB, free: 67.67 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.059, allocations: 0 / 479.3 MB, free: 67.67 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008466/1.06, allocations: 365 kB / 479.7 MB, free: 67.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004478/1.06, allocations: 207.7 kB / 479.9 MB, free: 67.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002784/1.061, allocations: 7.953 kB / 479.9 MB, free: 67.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008301/1.061, allocations: 35.95 kB / 479.9 MB, free: 67.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/1.062, allocations: 35.91 kB / 480 MB, free: 66.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.625e-05/1.062, allocations: 15.98 kB / 480 MB, free: 66.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001122/1.063, allocations: 0.5336 MB / 480.5 MB, free: 66.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.063, allocations: 0 / 480.5 MB, free: 66.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001477/1.064, allocations: 231.7 kB / 480.8 MB, free: 66.2 MB / 362.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,VDS.T0,VDS.counter,VDS.counter2,VGS.T0,VGS.counter,VGS.counter2) * Number of discrete states: 4 (VGS.counter,VDS.counter,VGS.counter2,VDS.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.002571/1.067, allocations: 1.556 MB / 482.3 MB, free: 64.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008445/1.068, allocations: 241.3 kB / 482.5 MB, free: 64.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.068, allocations: 0 / 482.5 MB, free: 64.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004131/1.068, allocations: 130.9 kB / 482.7 MB, free: 64.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/1.069, allocations: 144.6 kB / 482.8 MB, free: 64.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/1.073, allocations: 1.119 MB / 483.9 MB, free: 62.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/1.073, allocations: 0.9799 MB / 484.9 MB, free: 61.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005791/1.074, allocations: 106.4 kB / 485 MB, free: 61.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004568/1.074, allocations: 323.3 kB / 485.3 MB, free: 61.54 MB / 362.7 MB Notification: Performance of SimCode: time 9.82e-07/1.074, allocations: 0 / 485.3 MB, free: 61.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07085/1.145, allocations: 18.5 MB / 0.492 GB, free: 43.05 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/1.145, allocations: 169.9 kB / 0.4922 GB, free: 42.85 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.335/4.48, allocations: 4 kB / 0.4922 GB, free: 42.85 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat