Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.234/2.234, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.183e-05/3.192e-05, allocations: 2.75 kB / 249.8 MB, free: 5.227 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1116, allocations: 44.5 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5421/0.6537, allocations: 97.01 MB / 391.3 MB, free: 3.16 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004009/0.6542, allocations: 68.8 kB / 391.4 MB, free: 3.148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.346/1, allocations: 69.96 MB / 461.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1, allocations: 7.938 kB / 461.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.69e-05/1, allocations: 12 kB / 461.4 MB, free: 10.37 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.003961/1.004, allocations: 1.211 MB / 462.6 MB, free: 9.109 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/1.004, allocations: 8.031 kB / 462.6 MB, free: 9.102 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000328/1.005, allocations: 122.5 kB / 462.7 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002259/1.007, allocations: 0.7599 MB / 463.4 MB, free: 8.168 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.141e-05/1.007, allocations: 8 kB / 463.5 MB, free: 8.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/1.007, allocations: 19.94 kB / 463.5 MB, free: 8.141 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000809/1.008, allocations: 237.1 kB / 463.7 MB, free: 7.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008571/1.009, allocations: 291.4 kB / 464 MB, free: 7.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/1.009, allocations: 0 / 464 MB, free: 7.609 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.474e-05/1.009, allocations: 7.984 kB / 464 MB, free: 7.602 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/1.009, allocations: 12 kB / 464 MB, free: 7.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003745/1.013, allocations: 1.221 MB / 465.2 MB, free: 6.305 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/1.013, allocations: 162.8 kB / 465.4 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004659/1.014, allocations: 177.1 kB / 465.6 MB, free: 5.961 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01752/1.031, allocations: 9.262 MB / 474.8 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004767/1.032, allocations: 159.2 kB / 475 MB, free: 11.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 3.747e-06/1.032, allocations: 0 / 475 MB, free: 11.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009538/1.033, allocations: 286.4 kB / 475.3 MB, free: 10.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/1.033, allocations: 110.8 kB / 475.4 MB, free: 10.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001655/1.035, allocations: 0.697 MB / 476.1 MB, free: 10.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.718e-05/1.035, allocations: 29.7 kB / 476.1 MB, free: 10.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006794/1.036, allocations: 472.5 kB / 476.6 MB, free: 9.602 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/1.036, allocations: 55.23 kB / 476.6 MB, free: 9.547 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/1.036, allocations: 4 kB / 476.6 MB, free: 9.543 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/1.036, allocations: 318 kB / 476.9 MB, free: 9.227 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/1.036, allocations: 68 kB / 477 MB, free: 9.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004066/1.037, allocations: 227.4 kB / 477.2 MB, free: 8.867 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003494/1.037, allocations: 106.9 kB / 477.3 MB, free: 8.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/1.037, allocations: 0 / 477.3 MB, free: 8.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001134/1.038, allocations: 376.4 kB / 477.7 MB, free: 8.395 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/1.038, allocations: 8 kB / 477.7 MB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.036e-05/1.038, allocations: 24 kB / 477.7 MB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.159e-05/1.038, allocations: 8 kB / 477.7 MB, free: 8.355 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008213/1.039, allocations: 87.88 kB / 477.8 MB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.07e-05/1.039, allocations: 16.03 kB / 477.8 MB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009084/1.04, allocations: 55.7 kB / 477.9 MB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-05/1.04, allocations: 20 kB / 477.9 MB, free: 8.18 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.0001982/1.04, allocations: 128.8 kB / 478 MB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008728/1.041, allocations: 284.2 kB / 478.3 MB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/1.041, allocations: 110.7 kB / 478.4 MB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/1.043, allocations: 381.3 kB / 478.8 MB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/1.043, allocations: 4 kB / 478.8 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/1.043, allocations: 0 / 478.8 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/1.043, allocations: 7.938 kB / 478.8 MB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/1.045, allocations: 0.5428 MB / 479.3 MB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.038e-05/1.045, allocations: 16 kB / 479.4 MB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005747/1.045, allocations: 51.95 kB / 479.4 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-05/1.045, allocations: 12.05 kB / 479.4 MB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.144e-05/1.045, allocations: 8 kB / 479.4 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/1.045, allocations: 0 / 479.4 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.045, allocations: 0 / 479.4 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009979/1.046, allocations: 371.8 kB / 479.8 MB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005229/1.047, allocations: 199.7 kB / 480 MB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002642/1.047, allocations: 7.938 kB / 480 MB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000734/1.048, allocations: 35.97 kB / 480 MB, free: 5.934 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/1.048, allocations: 35.95 kB / 480.1 MB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.36e-05/1.048, allocations: 15.98 kB / 480.1 MB, free: 5.883 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001263/1.05, allocations: 0.5297 MB / 480.6 MB, free: 5.348 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.112e-06/1.05, allocations: 0 / 480.6 MB, free: 5.348 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001376/1.051, allocations: 235.7 kB / 480.8 MB, free: 5.117 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.002926/1.054, allocations: 1.562 MB / 482.4 MB, free: 3.512 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009027/1.055, allocations: 237.4 kB / 482.6 MB, free: 3.273 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/1.055, allocations: 4 kB / 482.6 MB, free: 3.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004104/1.055, allocations: 129.6 kB / 482.8 MB, free: 3.137 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/1.056, allocations: 149.8 kB / 482.9 MB, free: 2.988 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0043/1.061, allocations: 1.119 MB / 484 MB, free: 1.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008099/1.062, allocations: 0.9804 MB / 485 MB, free: 0.8125 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007943/1.062, allocations: 102.5 kB / 485.1 MB, free: 0.707 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000698/1.063, allocations: 327.3 kB / 485.4 MB, free: 396 kB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/1.063, allocations: 0 / 485.4 MB, free: 396 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3871/1.45, allocations: 18.5 MB / 0.4921 GB, free: 97.29 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003191/1.451, allocations: 172.5 kB / 0.4923 GB, free: 97.1 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.818/5.269, allocations: 0 / 0.4923 GB, free: 97.1 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat