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_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization") Notification: Performance of loadModel(Modelica): time 1.921/1.921, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.905e-05, allocations: 0 / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08457/0.08462, allocations: 38.78 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.006963/0.09165, allocations: 4.288 MB / 271.2 MB, free: 12.81 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02611/0.1178, allocations: 14.89 MB / 286.1 MB, free: 13.89 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008276/0.1187, allocations: 11.94 kB / 286.1 MB, free: 13.88 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002049/0.1208, allocations: 0.5752 MB / 286.7 MB, free: 13.3 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004596/0.1254, allocations: 1.125 MB / 287.8 MB, free: 12.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003575/0.129, allocations: 0.8757 MB / 288.7 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004139/0.1332, allocations: 1.471 MB / 290.1 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.1335, allocations: 69.03 kB / 290.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004739/0.134, allocations: 231.3 kB / 290.4 MB, free: 9.531 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004938/0.1345, allocations: 290.7 kB / 290.7 MB, free: 9.246 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005025/0.1395, allocations: 1.183 MB / 291.9 MB, free: 8.062 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003871/0.14, allocations: 52 kB / 291.9 MB, free: 8.012 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001496/0.1401, allocations: 91.38 kB / 292 MB, free: 7.922 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003161/0.1405, allocations: 80 kB / 292.1 MB, free: 7.844 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002286/0.1428, allocations: 1.076 MB / 293.2 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1428, allocations: 3.938 kB / 293.2 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1428, allocations: 3.938 kB / 293.2 MB, free: 6.758 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.351e-05/0.1429, allocations: 0 / 293.2 MB, free: 6.758 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.002608/0.1455, allocations: 1.077 MB / 294.3 MB, free: 5.629 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.1456, allocations: 8.031 kB / 294.3 MB, free: 5.621 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000291/0.1459, allocations: 118.6 kB / 294.4 MB, free: 5.504 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001851/0.1477, allocations: 0.7442 MB / 295.1 MB, free: 4.707 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/0.1478, allocations: 20.56 kB / 295.2 MB, free: 4.688 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.139e-05/0.1479, allocations: 16 kB / 295.2 MB, free: 4.672 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.1492, allocations: 368.6 kB / 295.5 MB, free: 4.309 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.1493, allocations: 4 kB / 295.5 MB, free: 4.305 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.402e-05/0.1494, allocations: 12 kB / 295.5 MB, free: 4.293 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.1494, allocations: 4 kB / 295.5 MB, free: 4.289 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.1511, allocations: 386 kB / 295.9 MB, free: 3.914 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003247/0.1543, allocations: 1.246 MB / 297.2 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.1559, allocations: 310.7 kB / 297.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2449/0.4009, allocations: 7.8 MB / 305.3 MB, free: 27.81 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009553/0.4019, allocations: 233.6 kB / 305.5 MB, free: 27.77 MB / 250.7 MB Notification: Performance of pre-optimization done (n=19): time 3.798e-06/0.4019, allocations: 0 / 305.5 MB, free: 27.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=19): time 0.002736/0.4047, allocations: 0.6245 MB / 306.1 MB, free: 27.59 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.4047, allocations: 57.56 kB / 306.2 MB, free: 27.53 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001466/0.4062, allocations: 0.7521 MB / 306.9 MB, free: 27.22 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.226e-05/0.4063, allocations: 27.11 kB / 307 MB, free: 27.19 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003614/0.4067, allocations: 444.4 kB / 307.4 MB, free: 26.8 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.748e-05/0.4068, allocations: 62.22 kB / 307.5 MB, free: 26.76 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/0.4068, allocations: 8.703 kB / 307.5 MB, free: 26.75 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.407, allocations: 321.8 kB / 307.8 MB, free: 26.44 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007505/0.4077, allocations: 145.8 kB / 307.9 MB, free: 26.41 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000789/0.4085, allocations: 285.1 kB / 308.2 MB, free: 26.21 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007451/0.4093, allocations: 162.6 kB / 308.4 MB, free: 26.17 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.4093, allocations: 8.609 kB / 308.4 MB, free: 26.17 MB / 250.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00184/0.4112, allocations: 460.3 kB / 308.8 MB, free: 26.03 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.4112, allocations: 10.98 kB / 308.8 MB, free: 26.03 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.852e-05/0.4113, allocations: 22.09 kB / 308.8 MB, free: 26.03 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.916e-05/0.4114, allocations: 7.156 kB / 308.9 MB, free: 26.03 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006648/0.412, allocations: 96.44 kB / 309 MB, free: 26.02 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.995e-05/0.4121, allocations: 8.125 kB / 309 MB, free: 26.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000763/0.4128, allocations: 67.8 kB / 309 MB, free: 26 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.239e-05/0.4129, allocations: 23.22 kB / 309 MB, free: 25.99 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.0004187/0.4134, allocations: 214.5 kB / 309.3 MB, free: 25.82 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.4135, allocations: 110.3 kB / 309.4 MB, free: 25.76 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.4159, allocations: 0.5078 MB / 309.9 MB, free: 25.62 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.416, allocations: 7.531 kB / 309.9 MB, free: 25.62 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.416, allocations: 0 / 309.9 MB, free: 25.62 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.416, allocations: 0.8906 kB / 309.9 MB, free: 25.62 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009903/0.417, allocations: 0.5667 MB / 310.4 MB, free: 25.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.991e-05/0.4171, allocations: 17.62 kB / 310.5 MB, free: 25.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004689/0.4175, allocations: 59.67 kB / 310.5 MB, free: 25.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.4176, allocations: 1.156 kB / 310.5 MB, free: 25.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.33e-05/0.4176, allocations: 17.14 kB / 310.5 MB, free: 25.24 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.4176, allocations: 2.281 kB / 310.5 MB, free: 25.24 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4176, allocations: 0 / 310.5 MB, free: 25.24 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.4194, allocations: 0.4983 MB / 311 MB, free: 25 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00036/0.4198, allocations: 203.2 kB / 311.2 MB, free: 24.83 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.42, allocations: 13.5 kB / 311.3 MB, free: 24.82 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005801/0.4206, allocations: 36.69 kB / 311.3 MB, free: 24.82 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.4208, allocations: 31.31 kB / 311.3 MB, free: 24.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.219e-05/0.4209, allocations: 16.75 kB / 311.3 MB, free: 24.81 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001129/0.422, allocations: 0.5836 MB / 311.9 MB, free: 24.56 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.422, allocations: 0 / 311.9 MB, free: 24.56 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001047/0.4231, allocations: 225.2 kB / 312.1 MB, free: 24.54 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.0009568/0.4241, allocations: 468.6 kB / 312.6 MB, free: 24.41 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.4258, allocations: 391.4 kB / 313 MB, free: 24.3 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.4259, allocations: 1.125 kB / 313 MB, free: 24.3 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008218/0.4267, allocations: 205.4 kB / 313.2 MB, free: 24.23 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009216/0.4276, allocations: 132.3 kB / 313.3 MB, free: 24.17 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003688/0.4313, allocations: 1.698 MB / 315 MB, free: 23.16 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000488/0.4319, allocations: 0.9787 MB / 316 MB, free: 22.32 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002376/0.4321, allocations: 54.06 kB / 316 MB, free: 22.31 MB / 250.7 MB Notification: Performance of SimCode: time 1.462e-06/0.4321, allocations: 0 / 316 MB, free: 22.31 MB / 250.7 MB Notification: Performance of Templates: time 0.0256/0.4577, allocations: 12.01 MB / 328 MB, free: 12.34 MB / 250.7 MB