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.839/1.839, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.235e-05/2.243e-05, allocations: 0 / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2616, allocations: 38.77 MB / 258.3 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1654/0.427, allocations: 93.19 MB / 351.5 MB, free: 0.543 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/0.4274, allocations: 75.95 kB / 351.6 MB, free: 480 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.487/0.9144, allocations: 71.21 MB / 422.8 MB, free: 52.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.9144, allocations: 0 / 422.8 MB, free: 52.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.407e-05/0.9145, allocations: 20 kB / 422.8 MB, free: 52.54 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.003256/0.9177, allocations: 1.202 MB / 424 MB, free: 51.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.9178, allocations: 8.219 kB / 424.1 MB, free: 51.28 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.9181, allocations: 118.6 kB / 424.2 MB, free: 51.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/0.92, allocations: 0.7699 MB / 424.9 MB, free: 50.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.741e-05/0.92, allocations: 8 kB / 424.9 MB, free: 50.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.583e-05/0.9201, allocations: 12 kB / 425 MB, free: 50.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006165/0.9208, allocations: 237.1 kB / 425.2 MB, free: 50.12 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006347/0.9214, allocations: 307.3 kB / 425.5 MB, free: 49.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.9214, allocations: 0 / 425.5 MB, free: 49.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.878e-05/0.9215, allocations: 0 / 425.5 MB, free: 49.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.9215, allocations: 11.94 kB / 425.5 MB, free: 49.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002875/0.9244, allocations: 1.227 MB / 426.7 MB, free: 48.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004524/0.925, allocations: 162 kB / 426.9 MB, free: 48.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.9253, allocations: 178.2 kB / 427.1 MB, free: 48.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.9373, allocations: 9.273 MB / 436.3 MB, free: 37.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003352/0.9376, allocations: 154.8 kB / 436.5 MB, free: 37.45 MB / 314.7 MB Notification: Performance of pre-optimization done (n=19): time 2.525e-06/0.9377, allocations: 0 / 436.5 MB, free: 37.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006008/0.9383, allocations: 283.2 kB / 436.8 MB, free: 37.17 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/0.9383, allocations: 110.8 kB / 436.9 MB, free: 37.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.9394, allocations: 0.7048 MB / 437.6 MB, free: 36.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.9394, allocations: 33.7 kB / 437.6 MB, free: 36.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004038/0.9398, allocations: 472.6 kB / 438.1 MB, free: 35.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.989e-05/0.9399, allocations: 51.27 kB / 438.1 MB, free: 35.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.662e-05/0.94, allocations: 0 / 438.1 MB, free: 35.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.472e-05/0.94, allocations: 322 kB / 438.4 MB, free: 35.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.9402, allocations: 64 kB / 438.5 MB, free: 35.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.9405, allocations: 207.7 kB / 438.7 MB, free: 35.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.9407, allocations: 99.88 kB / 438.8 MB, free: 35.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.9407, allocations: 0 / 438.8 MB, free: 35.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007353/0.9415, allocations: 376.5 kB / 439.2 MB, free: 34.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.9415, allocations: 8 kB / 439.2 MB, free: 34.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.639e-05/0.9416, allocations: 20 kB / 439.2 MB, free: 34.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.9416, allocations: 11.95 kB / 439.2 MB, free: 34.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000618/0.9423, allocations: 100.2 kB / 439.3 MB, free: 34.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.9423, allocations: 11.98 kB / 439.3 MB, free: 34.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006991/0.943, allocations: 55.56 kB / 439.4 MB, free: 34.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.167e-05/0.9431, allocations: 20 kB / 439.4 MB, free: 34.41 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.0001272/0.9432, allocations: 128.8 kB / 439.5 MB, free: 34.28 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005327/0.9437, allocations: 280.3 kB / 439.8 MB, free: 34 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.9439, allocations: 114.7 kB / 439.9 MB, free: 33.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/0.9452, allocations: 382.8 kB / 440.3 MB, free: 33.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.9452, allocations: 4 kB / 440.3 MB, free: 33.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.9452, allocations: 0 / 440.3 MB, free: 33.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.9453, allocations: 0 / 440.3 MB, free: 33.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007773/0.946, allocations: 0.527 MB / 440.8 MB, free: 32.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.854e-05/0.9461, allocations: 19.94 kB / 440.8 MB, free: 32.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004405/0.9466, allocations: 59.94 kB / 440.9 MB, free: 32.85 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.298e-06/0.9466, allocations: 7.953 kB / 440.9 MB, free: 32.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.9466, allocations: 8 kB / 440.9 MB, free: 32.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.9466, allocations: 0 / 440.9 MB, free: 32.83 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.9467, allocations: 0 / 440.9 MB, free: 32.83 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006043/0.9473, allocations: 372.4 kB / 441.3 MB, free: 32.44 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00033/0.9476, allocations: 207.6 kB / 441.5 MB, free: 32.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001886/0.9478, allocations: 7.984 kB / 441.5 MB, free: 32.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005698/0.9484, allocations: 35.97 kB / 441.5 MB, free: 32.17 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.9486, allocations: 35.89 kB / 441.5 MB, free: 32.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/0.9486, allocations: 19.94 kB / 441.6 MB, free: 32.12 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007955/0.9494, allocations: 0.5297 MB / 442.1 MB, free: 31.58 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.9494, allocations: 0 / 442.1 MB, free: 31.58 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009498/0.9504, allocations: 239.7 kB / 442.3 MB, free: 31.35 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.001818/0.9522, allocations: 1.564 MB / 443.9 MB, free: 29.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000608/0.9529, allocations: 229.5 kB / 444.1 MB, free: 29.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.9529, allocations: 1.25 kB / 444.1 MB, free: 29.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002757/0.9532, allocations: 129.6 kB / 444.2 MB, free: 29.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008793/0.9541, allocations: 140.6 kB / 444.4 MB, free: 29.3 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/0.9571, allocations: 1.135 MB / 445.5 MB, free: 28.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003951/0.9576, allocations: 0.9876 MB / 446.5 MB, free: 27.1 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006094/0.9582, allocations: 106.4 kB / 446.6 MB, free: 26.99 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004774/0.9587, allocations: 319.3 kB / 446.9 MB, free: 26.68 MB / 314.7 MB Notification: Performance of SimCode: time 1.012e-06/0.9587, allocations: 0 / 446.9 MB, free: 26.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07655/1.035, allocations: 18.5 MB / 465.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002791/1.036, allocations: 177.4 kB / 465.6 MB, free: 7.977 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.59/4.626, allocations: 3.938 kB / 465.6 MB, free: 7.973 MB / 314.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