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.937/1.937, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.179e-05/3.189e-05, allocations: 4 kB / 255.4 MB, free: 2.633 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09392, allocations: 44.52 MB / 300 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4562/0.5502, allocations: 97.67 MB / 397.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.5505, allocations: 76.2 kB / 397.7 MB, free: 12.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2552/0.8057, allocations: 74.02 MB / 471.7 MB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.8058, allocations: 0 / 471.7 MB, free: 12.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.653e-05/0.8058, allocations: 16 kB / 471.8 MB, free: 12.55 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.003416/0.8093, allocations: 1.211 MB / 473 MB, free: 11.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/0.8093, allocations: 12.03 kB / 473 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001215/0.8095, allocations: 58.53 kB / 473 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002581/0.8097, allocations: 122.5 kB / 473.1 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001858/0.8116, allocations: 0.7637 MB / 473.9 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.8117, allocations: 20.56 kB / 473.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.972e-05/0.8118, allocations: 20 kB / 474 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008677/0.8127, allocations: 340.4 kB / 474.3 MB, free: 9.887 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.8127, allocations: 4 kB / 474.3 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.688e-05/0.8128, allocations: 4 kB / 474.3 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.8128, allocations: 12 kB / 474.3 MB, free: 9.867 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007291/0.8135, allocations: 250.2 kB / 474.5 MB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003387/0.8169, allocations: 1.265 MB / 475.8 MB, free: 8.281 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005921/0.8176, allocations: 185.6 kB / 476 MB, free: 8.094 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004604/0.8181, allocations: 189.1 kB / 476.2 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01506/0.8331, allocations: 9.262 MB / 485.4 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004367/0.8336, allocations: 163.2 kB / 485.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 3.336e-06/0.8336, allocations: 0 / 485.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008296/0.8345, allocations: 292.2 kB / 485.9 MB, free: 12.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/0.8346, allocations: 110.8 kB / 486 MB, free: 12.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.8361, allocations: 0.761 MB / 486.8 MB, free: 11.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.541e-05/0.8362, allocations: 33.7 kB / 486.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005893/0.8368, allocations: 471.7 kB / 487.2 MB, free: 11.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.54e-05/0.8369, allocations: 59.19 kB / 487.3 MB, free: 11.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.837, allocations: 12 kB / 487.3 MB, free: 11.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.8371, allocations: 318 kB / 487.6 MB, free: 11.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.8374, allocations: 72 kB / 487.7 MB, free: 11.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003752/0.8378, allocations: 223.6 kB / 487.9 MB, free: 10.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002932/0.8381, allocations: 100.3 kB / 488 MB, free: 10.63 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.8381, allocations: 7.953 kB / 488 MB, free: 10.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001066/0.8392, allocations: 408 kB / 488.4 MB, free: 10.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.8392, allocations: 4.625 kB / 488.4 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.214e-05/0.8393, allocations: 31.92 kB / 488.5 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.8393, allocations: 8 kB / 488.5 MB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006879/0.84, allocations: 95.81 kB / 488.6 MB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.8401, allocations: 4 kB / 488.6 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007749/0.8408, allocations: 71.7 kB / 488.6 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.265e-05/0.8409, allocations: 20 kB / 488.7 MB, free: 9.984 MB / 378.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.0001749/0.8411, allocations: 132.8 kB / 488.8 MB, free: 9.848 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.8413, allocations: 110.7 kB / 488.9 MB, free: 9.738 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001539/0.8428, allocations: 395.3 kB / 489.3 MB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.8429, allocations: 0 / 489.3 MB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.8429, allocations: 0 / 489.3 MB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.8429, allocations: 0 / 489.3 MB, free: 9.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.8439, allocations: 0.5788 MB / 489.9 MB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-05/0.844, allocations: 16 kB / 489.9 MB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004943/0.8445, allocations: 67.94 kB / 489.9 MB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-06/0.8445, allocations: 0 / 489.9 MB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.8446, allocations: 11.95 kB / 489.9 MB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.8446, allocations: 4 kB / 490 MB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.8446, allocations: 0 / 490 MB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008202/0.8454, allocations: 380.6 kB / 490.3 MB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004289/0.8459, allocations: 207.7 kB / 490.5 MB, free: 7.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.8461, allocations: 8 kB / 490.5 MB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006332/0.8467, allocations: 43.95 kB / 490.6 MB, free: 7.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.8469, allocations: 31.91 kB / 490.6 MB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.697e-05/0.8469, allocations: 11.98 kB / 490.6 MB, free: 7.887 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001188/0.8481, allocations: 0.5936 MB / 491.2 MB, free: 7.285 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8481, allocations: 0 / 491.2 MB, free: 7.285 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001059/0.8492, allocations: 251.7 kB / 491.5 MB, free: 7.039 MB / 378.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.00239/0.8516, allocations: 1.481 MB / 492.9 MB, free: 5.508 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007829/0.8525, allocations: 263.4 kB / 493.2 MB, free: 5.246 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.8525, allocations: 0 / 493.2 MB, free: 5.246 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003599/0.8528, allocations: 133.6 kB / 493.3 MB, free: 5.109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009108/0.8538, allocations: 141.4 kB / 493.5 MB, free: 4.973 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003812/0.8576, allocations: 1.141 MB / 494.6 MB, free: 3.781 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007581/0.8584, allocations: 0.9763 MB / 495.6 MB, free: 2.777 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006443/0.8591, allocations: 114.4 kB / 495.7 MB, free: 2.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006132/0.8597, allocations: 319.3 kB / 496 MB, free: 2.348 MB / 378.7 MB Notification: Performance of SimCode: time 1.272e-06/0.8597, allocations: 0 / 496 MB, free: 2.348 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07209/0.9318, allocations: 23.01 MB / 0.5069 GB, free: 11.38 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003447/0.9322, allocations: 177.4 kB / 0.507 GB, free: 11.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.611/4.544, allocations: 0 / 0.507 GB, free: 11.16 MB / 410.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