Running command: translateModel(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=198,variableFilter="time|VGS.p.v|M1.D.i",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization") Notification: Performance of loadModel(Modelica): time 1.704/1.704, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.173e-05/3.173e-05, allocations: 0 / 228.1 MB, free: 7.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 38.77 MB / 266.9 MB, free: 0.4922 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.006858/0.113, allocations: 4.29 MB / 271.2 MB, free: 12.17 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0276/0.1407, allocations: 14.89 MB / 286.1 MB, free: 13.25 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001145/0.1419, allocations: 15.94 kB / 286.1 MB, free: 13.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003368/0.1453, allocations: 0.5751 MB / 286.7 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006957/0.1523, allocations: 1.117 MB / 287.8 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005097/0.1575, allocations: 0.8836 MB / 288.7 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006251/0.1638, allocations: 1.487 MB / 290.2 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003568/0.1642, allocations: 73.02 kB / 290.2 MB, free: 9.09 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007508/0.165, allocations: 231.3 kB / 290.5 MB, free: 8.863 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007892/0.1658, allocations: 290.7 kB / 290.7 MB, free: 8.578 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008133/0.174, allocations: 1.175 MB / 291.9 MB, free: 7.402 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00053/0.1746, allocations: 55.94 kB / 292 MB, free: 7.348 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002171/0.1748, allocations: 95.38 kB / 292.1 MB, free: 7.254 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004574/0.1753, allocations: 80 kB / 292.2 MB, free: 7.176 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003308/0.1786, allocations: 1.083 MB / 293.2 MB, free: 6.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.1787, allocations: 0 / 293.2 MB, free: 6.09 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1787, allocations: 3.938 kB / 293.2 MB, free: 6.086 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.577e-05/0.1788, allocations: 0 / 293.2 MB, free: 6.086 MB / 250.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.003677/0.1825, allocations: 1.07 MB / 294.3 MB, free: 4.965 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/0.1825, allocations: 12.03 kB / 294.3 MB, free: 4.953 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003415/0.1829, allocations: 118.6 kB / 294.4 MB, free: 4.836 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002443/0.1854, allocations: 0.7363 MB / 295.2 MB, free: 4.047 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.841e-05/0.1854, allocations: 20.56 kB / 295.2 MB, free: 4.027 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.1856, allocations: 31.92 kB / 295.2 MB, free: 3.996 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/0.1874, allocations: 352.7 kB / 295.6 MB, free: 3.648 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.1875, allocations: 4 kB / 295.6 MB, free: 3.645 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.29e-05/0.1876, allocations: 12 kB / 295.6 MB, free: 3.633 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.938e-05/0.1876, allocations: 7.984 kB / 295.6 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002531/0.1902, allocations: 382 kB / 296 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0045/0.1947, allocations: 1.246 MB / 297.2 MB, free: 1.93 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006073/0.2008, allocations: 322.6 kB / 297.5 MB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3056/0.5065, allocations: 7.803 MB / 305.3 MB, free: 27.39 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009125/0.5075, allocations: 224.2 kB / 305.5 MB, free: 27.34 MB / 250.7 MB Notification: Performance of pre-optimization done (n=19): time 3.567e-06/0.5075, allocations: 5.469 kB / 305.6 MB, free: 27.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=19): time 0.002471/0.51, allocations: 0.6207 MB / 306.2 MB, free: 27.12 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.5101, allocations: 54.23 kB / 306.2 MB, free: 27.06 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001403/0.5115, allocations: 0.7559 MB / 307 MB, free: 26.75 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.59e-05/0.5116, allocations: 36.25 kB / 307 MB, free: 26.72 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004465/0.512, allocations: 458.9 kB / 307.5 MB, free: 26.36 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.587e-05/0.5121, allocations: 60.28 kB / 307.5 MB, free: 26.32 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.018e-05/0.5122, allocations: 5.156 kB / 307.5 MB, free: 26.32 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.328e-05/0.5122, allocations: 325.3 kB / 307.8 MB, free: 26 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007283/0.513, allocations: 139.3 kB / 308 MB, free: 25.98 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00077/0.5138, allocations: 281.4 kB / 308.3 MB, free: 25.78 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007236/0.5145, allocations: 168.2 kB / 308.4 MB, free: 25.74 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.665e-06/0.5145, allocations: 5.078 kB / 308.4 MB, free: 25.74 MB / 250.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001886/0.5164, allocations: 0.5348 MB / 309 MB, free: 25.55 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.919e-05/0.5165, allocations: 8.547 kB / 309 MB, free: 25.55 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.917e-05/0.5166, allocations: 24.81 kB / 309 MB, free: 25.55 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.194e-05/0.5166, allocations: 8.859 kB / 309 MB, free: 25.55 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006864/0.5173, allocations: 96.25 kB / 309.1 MB, free: 25.54 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/0.5173, allocations: 8.5 kB / 309.1 MB, free: 25.54 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006986/0.518, allocations: 66.81 kB / 309.2 MB, free: 25.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.75e-05/0.5181, allocations: 25.53 kB / 309.2 MB, free: 25.52 MB / 250.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.0004014/0.5185, allocations: 219.4 kB / 309.4 MB, free: 25.34 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.5187, allocations: 108.3 kB / 309.5 MB, free: 25.28 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/0.521, allocations: 0.5076 MB / 310 MB, free: 25.13 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.5211, allocations: 2.344 kB / 310 MB, free: 25.13 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.5211, allocations: 0 / 310 MB, free: 25.13 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.5211, allocations: 9.672 kB / 310 MB, free: 25.12 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009623/0.5221, allocations: 0.5666 MB / 310.6 MB, free: 24.76 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.853e-05/0.5221, allocations: 18.09 kB / 310.6 MB, free: 24.76 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004555/0.5226, allocations: 59.97 kB / 310.7 MB, free: 24.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.857e-06/0.5226, allocations: 2.734 kB / 310.7 MB, free: 24.75 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.5227, allocations: 19.7 kB / 310.7 MB, free: 24.75 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/0.5227, allocations: 1.156 kB / 310.7 MB, free: 24.75 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.5227, allocations: 1.094 kB / 310.7 MB, free: 24.75 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.5244, allocations: 0.5024 MB / 311.2 MB, free: 24.5 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003332/0.5247, allocations: 194.9 kB / 311.4 MB, free: 24.34 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002229/0.525, allocations: 10.73 kB / 311.4 MB, free: 24.34 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005602/0.5256, allocations: 36.33 kB / 311.4 MB, free: 24.34 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.5257, allocations: 37.88 kB / 311.5 MB, free: 24.33 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.791e-05/0.5258, allocations: 15.81 kB / 311.5 MB, free: 24.32 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001087/0.5269, allocations: 0.5822 MB / 312.1 MB, free: 24.07 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5269, allocations: 0 / 312.1 MB, free: 24.07 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0009462/0.5278, allocations: 225.7 kB / 312.3 MB, free: 24.05 MB / 250.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.0008781/0.5287, allocations: 466.1 kB / 312.7 MB, free: 23.92 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.5304, allocations: 387.8 kB / 313.1 MB, free: 23.81 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5304, allocations: 1.938 kB / 313.1 MB, free: 23.81 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008003/0.5313, allocations: 200.5 kB / 313.3 MB, free: 23.72 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008751/0.5321, allocations: 137 kB / 313.5 MB, free: 23.64 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003658/0.5358, allocations: 1.656 MB / 315.1 MB, free: 22.59 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004768/0.5364, allocations: 0.9744 MB / 316.1 MB, free: 21.76 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0006722/0.5371, allocations: 104.8 kB / 316.2 MB, free: 21.71 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.5372, allocations: 48 kB / 316.2 MB, free: 21.7 MB / 250.7 MB Notification: Performance of SimCode: time 1.794e-06/0.5372, allocations: 0 / 316.2 MB, free: 21.7 MB / 250.7 MB Notification: Performance of Templates: time 0.04213/0.5794, allocations: 12.58 MB / 328.8 MB, free: 10.85 MB / 250.7 MB