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_trunk_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization") Notification: Performance of loadModel(Modelica): time 2.212/2.212, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.832e-05/2.825e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 50.4 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.006523/0.1133, allocations: 4.348 MB / 349.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03117/0.1445, allocations: 15.63 MB / 364.9 MB, free: 4.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008468/0.1454, allocations: 15.94 kB / 365 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002188/0.1477, allocations: 0.5713 MB / 365.5 MB, free: 4.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005062/0.1528, allocations: 1.136 MB / 366.7 MB, free: 3.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0038/0.1566, allocations: 0.8991 MB / 367.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004199/0.1609, allocations: 1.487 MB / 369.1 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.1612, allocations: 71.47 kB / 369.1 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005524/0.1618, allocations: 263.2 kB / 369.4 MB, free: 476 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005334/0.1623, allocations: 290.7 kB / 369.7 MB, free: 184 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005338/0.1677, allocations: 1.405 MB / 371.1 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003567/0.1681, allocations: 52 kB / 371.1 MB, free: 14.72 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.1683, allocations: 95.36 kB / 371.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003316/0.1686, allocations: 80 kB / 371.3 MB, free: 14.55 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002207/0.1708, allocations: 1.064 MB / 372.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.1709, allocations: 4 kB / 372.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.1709, allocations: 0 / 372.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.728e-05/0.1709, allocations: 0 / 372.4 MB, free: 13.48 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.002667/0.1736, allocations: 1.077 MB / 373.4 MB, free: 12.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.1737, allocations: 8.031 kB / 373.4 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002916/0.174, allocations: 114.6 kB / 373.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001795/0.1758, allocations: 0.7286 MB / 374.3 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.1759, allocations: 20.56 kB / 374.3 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.732e-05/0.176, allocations: 24 kB / 374.3 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.1773, allocations: 356.7 kB / 374.7 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.1774, allocations: 0 / 374.7 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.975e-05/0.1775, allocations: 15.98 kB / 374.7 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.1775, allocations: 4 kB / 374.7 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.1792, allocations: 386 kB / 375.1 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003259/0.1825, allocations: 1.249 MB / 376.3 MB, free: 9.328 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.1841, allocations: 302.6 kB / 376.6 MB, free: 9.023 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01232/0.1964, allocations: 7.802 MB / 384.4 MB, free: 184 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009367/0.1974, allocations: 227.2 kB / 384.6 MB, free: 15.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 3.506e-06/0.1974, allocations: 0 / 384.6 MB, free: 15.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.002555/0.2, allocations: 0.629 MB / 385.3 MB, free: 15.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.661e-05/0.2001, allocations: 59.39 kB / 385.3 MB, free: 15.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/0.2016, allocations: 0.7437 MB / 386.1 MB, free: 14.47 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.933e-05/0.2017, allocations: 29.7 kB / 386.1 MB, free: 14.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004642/0.2022, allocations: 450.1 kB / 386.5 MB, free: 13.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.2023, allocations: 59.28 kB / 386.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.2024, allocations: 8 kB / 386.6 MB, free: 13.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.2025, allocations: 322.8 kB / 386.9 MB, free: 13.6 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000739/0.2033, allocations: 139.9 kB / 387.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008395/0.2041, allocations: 277.9 kB / 387.3 MB, free: 13.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007805/0.2049, allocations: 163.8 kB / 387.5 MB, free: 12.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.2049, allocations: 4 kB / 387.5 MB, free: 12.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001798/0.2067, allocations: 467.4 kB / 387.9 MB, free: 12.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.2068, allocations: 8 kB / 388 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.023e-05/0.2069, allocations: 28.48 kB / 388 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.2069, allocations: 8 kB / 388 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.2076, allocations: 95.88 kB / 388.1 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.994e-05/0.2076, allocations: 11.94 kB / 388.1 MB, free: 12.35 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007378/0.2084, allocations: 71.5 kB / 388.2 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.86e-05/0.2084, allocations: 27.98 kB / 388.2 MB, free: 12.25 MB / 330.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.0004145/0.2089, allocations: 205.7 kB / 388.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00017/0.2091, allocations: 106.7 kB / 388.5 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002315/0.2114, allocations: 0.5035 MB / 389 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.2114, allocations: 3.953 kB / 389 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2114, allocations: 0 / 389 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2115, allocations: 0 / 389 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009962/0.2125, allocations: 0.5632 MB / 389.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.573e-05/0.2125, allocations: 23.94 kB / 389.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004672/0.213, allocations: 56.02 kB / 389.6 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.177e-05/0.213, allocations: 7.984 kB / 389.7 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.891e-05/0.2131, allocations: 4 kB / 389.7 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.234e-06/0.2131, allocations: 7.953 kB / 389.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.2131, allocations: 0 / 389.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00179/0.2149, allocations: 0.5047 MB / 390.2 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003699/0.2153, allocations: 191.7 kB / 390.4 MB, free: 9.953 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.2155, allocations: 8 kB / 390.4 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005686/0.2161, allocations: 43.95 kB / 390.4 MB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.2163, allocations: 31.95 kB / 390.4 MB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.926e-05/0.2163, allocations: 12 kB / 390.5 MB, free: 9.859 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001117/0.2175, allocations: 0.5803 MB / 391 MB, free: 9.273 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2175, allocations: 0 / 391 MB, free: 9.273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009102/0.2184, allocations: 223.8 kB / 391.3 MB, free: 9.055 MB / 330.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.0009026/0.2193, allocations: 471.2 kB / 391.7 MB, free: 8.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.2211, allocations: 384.8 kB / 392.1 MB, free: 8.211 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/0.2211, allocations: 8 kB / 392.1 MB, free: 8.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008467/0.222, allocations: 204.4 kB / 392.3 MB, free: 8 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/0.2233, allocations: 164.3 kB / 392.5 MB, free: 7.836 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00402/0.2274, allocations: 1.695 MB / 394.2 MB, free: 6.098 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006475/0.2281, allocations: 0.9761 MB / 395.1 MB, free: 5.094 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002597/0.2283, allocations: 51.44 kB / 395.2 MB, free: 5.043 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2283, allocations: 0 / 395.2 MB, free: 5.043 MB / 330.7 MB Notification: Performance of Templates: time 0.3114/0.5397, allocations: 11.95 MB / 407.1 MB, free: 51.34 MB / 330.7 MB