Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.197e-05/3.206e-05, allocations: 0 / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2897, allocations: 38.77 MB / 263.9 MB, free: 9.809 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1907/0.4805, allocations: 93.86 MB / 357.7 MB, free: 11.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.4809, allocations: 75.97 kB / 357.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4927/0.9736, allocations: 75.31 MB / 433.1 MB, free: 40.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.9737, allocations: 0 / 433.1 MB, free: 40.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.641e-05/0.9737, allocations: 16 kB / 433.1 MB, free: 40.65 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.003352/0.9771, allocations: 1.211 MB / 434.3 MB, free: 39.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.9772, allocations: 8.031 kB / 434.4 MB, free: 39.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001773/0.9773, allocations: 58.53 kB / 434.4 MB, free: 39.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002691/0.9776, allocations: 118.6 kB / 434.5 MB, free: 39.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.9795, allocations: 0.7715 MB / 435.3 MB, free: 38.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.9795, allocations: 16.56 kB / 435.3 MB, free: 38.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.442e-05/0.9796, allocations: 24 kB / 435.3 MB, free: 38.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007516/0.9804, allocations: 327.4 kB / 435.7 MB, free: 38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.9804, allocations: 4 kB / 435.7 MB, free: 38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.267e-05/0.9805, allocations: 7.938 kB / 435.7 MB, free: 37.99 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.9805, allocations: 12 kB / 435.7 MB, free: 37.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000601/0.9811, allocations: 237.1 kB / 435.9 MB, free: 37.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003027/0.9842, allocations: 1.282 MB / 437.2 MB, free: 36.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004945/0.9847, allocations: 174.9 kB / 437.4 MB, free: 36.21 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000378/0.9851, allocations: 181.6 kB / 437.5 MB, free: 36.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/0.9975, allocations: 9.277 MB / 446.8 MB, free: 25.44 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003911/0.9979, allocations: 155.3 kB / 447 MB, free: 25.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=19): time 3.717e-06/0.998, allocations: 0 / 447 MB, free: 25.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007984/0.9988, allocations: 289.5 kB / 447.3 MB, free: 24.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.9989, allocations: 110.8 kB / 447.4 MB, free: 24.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/1, allocations: 0.7609 MB / 448.1 MB, free: 24.08 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.973e-05/1, allocations: 33.7 kB / 448.2 MB, free: 24.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004304/1.001, allocations: 472.3 kB / 448.6 MB, free: 23.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.88e-05/1.001, allocations: 55.2 kB / 448.7 MB, free: 23.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.948e-05/1.001, allocations: 8 kB / 448.7 MB, free: 23.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.971e-05/1.001, allocations: 330 kB / 449 MB, free: 23.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/1.001, allocations: 71.95 kB / 449.1 MB, free: 23.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/1.001, allocations: 215.7 kB / 449.3 MB, free: 22.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/1.002, allocations: 107.3 kB / 449.4 MB, free: 22.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/1.002, allocations: 0 / 449.4 MB, free: 22.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0009405/1.003, allocations: 412.8 kB / 449.8 MB, free: 22.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/1.003, allocations: 4 kB / 449.8 MB, free: 22.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.665e-05/1.003, allocations: 27.98 kB / 449.8 MB, free: 22.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.264e-05/1.003, allocations: 4 kB / 449.8 MB, free: 22.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006687/1.004, allocations: 100.2 kB / 449.9 MB, free: 22.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/1.004, allocations: 7.938 kB / 449.9 MB, free: 22.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008434/1.004, allocations: 75.58 kB / 450 MB, free: 22.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.43e-05/1.005, allocations: 16 kB / 450 MB, free: 22.09 MB / 314.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.0001528/1.005, allocations: 136.8 kB / 450.2 MB, free: 21.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/1.005, allocations: 114.6 kB / 450.3 MB, free: 21.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/1.006, allocations: 375.1 kB / 450.6 MB, free: 21.47 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/1.006, allocations: 0 / 450.6 MB, free: 21.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/1.006, allocations: 4 kB / 450.6 MB, free: 21.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/1.006, allocations: 0 / 450.6 MB, free: 21.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/1.007, allocations: 0.5866 MB / 451.2 MB, free: 20.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.553e-05/1.008, allocations: 19.98 kB / 451.2 MB, free: 20.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004779/1.008, allocations: 59.95 kB / 451.3 MB, free: 20.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/1.008, allocations: 0 / 451.3 MB, free: 20.74 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.982e-05/1.008, allocations: 12 kB / 451.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/1.008, allocations: 4 kB / 451.3 MB, free: 20.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/1.008, allocations: 4 kB / 451.3 MB, free: 20.72 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007611/1.009, allocations: 380.9 kB / 451.7 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004009/1.009, allocations: 207.7 kB / 451.9 MB, free: 20.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/1.01, allocations: 4 kB / 451.9 MB, free: 20.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006449/1.01, allocations: 39.95 kB / 451.9 MB, free: 20.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/1.01, allocations: 35.95 kB / 452 MB, free: 20.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-05/1.01, allocations: 8 kB / 452 MB, free: 20.01 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001045/1.011, allocations: 0.5936 MB / 452.6 MB, free: 19.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.42e-07/1.011, allocations: 0 / 452.6 MB, free: 19.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001186/1.013, allocations: 251.7 kB / 452.8 MB, free: 19.16 MB / 314.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.001998/1.015, allocations: 1.477 MB / 454.3 MB, free: 17.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007493/1.016, allocations: 249.2 kB / 454.5 MB, free: 17.4 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/1.016, allocations: 0 / 454.5 MB, free: 17.4 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000321/1.016, allocations: 138.8 kB / 454.7 MB, free: 17.26 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009214/1.017, allocations: 140.7 kB / 454.8 MB, free: 17.12 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003546/1.02, allocations: 1.148 MB / 456 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/1.021, allocations: 0.9763 MB / 456.9 MB, free: 14.92 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006551/1.022, allocations: 110.4 kB / 457 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004887/1.022, allocations: 319.3 kB / 457.4 MB, free: 14.49 MB / 314.7 MB Notification: Performance of SimCode: time 1.463e-06/1.022, allocations: 0 / 457.4 MB, free: 14.49 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0671/1.089, allocations: 22.98 MB / 480.3 MB, free: 7.527 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003076/1.09, allocations: 179.6 kB / 480.5 MB, free: 7.301 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.489/4.578, allocations: 4 kB / 480.5 MB, free: 7.297 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat