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.2_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization") Notification: Performance of loadModel(Modelica): time 2.495/2.495, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.647e-05/3.641e-05, allocations: 7.906 kB / 258.8 MB, free: 8.703 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3436, allocations: 44.5 MB / 303.3 MB, free: 12.74 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization): time 0.006825/0.3505, allocations: 4.29 MB / 307.6 MB, free: 9.305 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02644/0.377, allocations: 14.89 MB / 322.5 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.3781, allocations: 11.94 kB / 322.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002241/0.3804, allocations: 0.5829 MB / 323.1 MB, free: 9.859 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005255/0.3857, allocations: 1.125 MB / 324.2 MB, free: 8.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003597/0.3893, allocations: 0.8757 MB / 325.1 MB, free: 7.852 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004582/0.3939, allocations: 1.483 MB / 326.5 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.3943, allocations: 69.06 kB / 326.6 MB, free: 6.301 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005136/0.3948, allocations: 231.3 kB / 326.8 MB, free: 6.074 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005203/0.3953, allocations: 286.7 kB / 327.1 MB, free: 5.793 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004954/0.4003, allocations: 1.187 MB / 328.3 MB, free: 4.605 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004114/0.4008, allocations: 52 kB / 328.4 MB, free: 4.555 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.4009, allocations: 91.38 kB / 328.4 MB, free: 4.465 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000333/0.4013, allocations: 80 kB / 328.5 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002357/0.4037, allocations: 1.081 MB / 329.6 MB, free: 3.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4037, allocations: 0 / 329.6 MB, free: 3.305 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4037, allocations: 0 / 329.6 MB, free: 3.305 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.705e-05/0.4038, allocations: 0 / 329.6 MB, free: 3.305 MB / 266.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.002662/0.4064, allocations: 1.073 MB / 330.7 MB, free: 2.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.4065, allocations: 8.031 kB / 330.7 MB, free: 2.172 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002771/0.4068, allocations: 114.6 kB / 330.8 MB, free: 2.059 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001746/0.4086, allocations: 0.7519 MB / 331.6 MB, free: 1.254 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.667e-05/0.4086, allocations: 20.56 kB / 331.6 MB, free: 1.234 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.845e-05/0.4087, allocations: 16 kB / 331.6 MB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.41, allocations: 360.7 kB / 331.9 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.4101, allocations: 0 / 331.9 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.425e-05/0.4101, allocations: 12 kB / 332 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.4101, allocations: 7.984 kB / 332 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001616/0.4118, allocations: 386 kB / 332.3 MB, free: 472 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.415, allocations: 1.242 MB / 333.6 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/0.4166, allocations: 310.5 kB / 333.9 MB, free: 14.83 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01285/0.4295, allocations: 7.825 MB / 341.7 MB, free: 5.957 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009264/0.4305, allocations: 227.2 kB / 341.9 MB, free: 5.723 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 3.807e-06/0.4305, allocations: 3.938 kB / 341.9 MB, free: 5.719 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.002585/0.4331, allocations: 0.6167 MB / 342.6 MB, free: 5.078 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.4332, allocations: 59.41 kB / 342.6 MB, free: 5.008 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.4348, allocations: 0.7401 MB / 343.3 MB, free: 4.258 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.21e-05/0.4349, allocations: 33.7 kB / 343.4 MB, free: 4.219 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004783/0.4354, allocations: 450.1 kB / 343.8 MB, free: 3.773 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.949e-05/0.4355, allocations: 59.28 kB / 343.9 MB, free: 3.715 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.143e-05/0.4355, allocations: 11.94 kB / 343.9 MB, free: 3.703 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.4357, allocations: 322.8 kB / 344.2 MB, free: 3.379 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007285/0.4364, allocations: 143.9 kB / 344.3 MB, free: 3.238 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008181/0.4373, allocations: 281.8 kB / 344.6 MB, free: 2.898 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007912/0.4381, allocations: 166.7 kB / 344.8 MB, free: 2.738 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.258e-06/0.4381, allocations: 4 kB / 344.8 MB, free: 2.734 MB / 282.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001807/0.4399, allocations: 456.9 kB / 345.2 MB, free: 2.281 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.44, allocations: 8 kB / 345.2 MB, free: 2.273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.375e-05/0.4401, allocations: 24.56 kB / 345.3 MB, free: 2.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.754e-05/0.4401, allocations: 12 kB / 345.3 MB, free: 2.238 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006729/0.4408, allocations: 95.8 kB / 345.4 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/0.4408, allocations: 8 kB / 345.4 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007455/0.4416, allocations: 71.56 kB / 345.4 MB, free: 2.066 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.026e-05/0.4417, allocations: 20 kB / 345.5 MB, free: 2.047 MB / 282.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.0004606/0.4421, allocations: 213.7 kB / 345.7 MB, free: 1.828 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.4423, allocations: 106.7 kB / 345.8 MB, free: 1.723 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002371/0.4447, allocations: 0.5093 MB / 346.3 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.4448, allocations: 3.953 kB / 346.3 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.4448, allocations: 3.984 kB / 346.3 MB, free: 1.199 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4448, allocations: 4 kB / 346.3 MB, free: 1.195 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.4459, allocations: 0.5711 MB / 346.9 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.517e-05/0.446, allocations: 16 kB / 346.9 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004805/0.4465, allocations: 60.02 kB / 346.9 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.4465, allocations: 3.938 kB / 347 MB, free: 500 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/0.4466, allocations: 15.98 kB / 347 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.625e-06/0.4466, allocations: 3.953 kB / 347 MB, free: 480 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.4466, allocations: 7.938 kB / 347 MB, free: 472 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/0.4484, allocations: 0.4971 MB / 347.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003837/0.4488, allocations: 195.7 kB / 347.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001917/0.449, allocations: 8 kB / 347.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006047/0.4497, allocations: 39.95 kB / 347.7 MB, free: 15.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.4498, allocations: 31.95 kB / 347.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.087e-05/0.4499, allocations: 12 kB / 347.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001222/0.4511, allocations: 0.5844 MB / 348.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.4511, allocations: 0 / 348.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009816/0.4521, allocations: 223.8 kB / 348.6 MB, free: 14.82 MB / 298.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.00104/0.4532, allocations: 467.6 kB / 349 MB, free: 14.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.455, allocations: 406.8 kB / 349.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.4551, allocations: 0 / 349.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008538/0.4559, allocations: 205.8 kB / 349.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008845/0.4568, allocations: 128.5 kB / 349.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004098/0.4609, allocations: 1.693 MB / 351.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007525/0.4617, allocations: 0.9761 MB / 352.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002386/0.462, allocations: 51.44 kB / 352.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of SimCode: time 1.513e-06/0.462, allocations: 3.938 kB / 352.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of Templates: time 0.03008/0.4921, allocations: 12.01 MB / 364.5 MB, free: 14.82 MB / 314.7 MB