Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.055/2.055, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.345e-05/3.329e-05, allocations: 1.406 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 50.41 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4906/0.5958, allocations: 104.4 MB / 447 MB, free: 5.992 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.5961, allocations: 74.39 kB / 447.1 MB, free: 5.953 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2806/0.8767, allocations: 81.49 MB / 0.5162 GB, free: 8.648 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.8768, allocations: 0 / 0.5162 GB, free: 8.648 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.933e-05/0.8768, allocations: 12 kB / 0.5162 GB, free: 8.637 MB / 442.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.00346/0.8803, allocations: 1.214 MB / 0.5174 GB, free: 7.379 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.8803, allocations: 8.031 kB / 0.5174 GB, free: 7.371 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001316/0.8805, allocations: 62.53 kB / 0.5174 GB, free: 7.301 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002463/0.8807, allocations: 116 kB / 0.5175 GB, free: 7.188 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.8825, allocations: 0.7559 MB / 0.5183 GB, free: 6.379 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.636e-05/0.8826, allocations: 24.52 kB / 0.5183 GB, free: 6.352 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-05/0.8827, allocations: 24 kB / 0.5183 GB, free: 6.328 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008451/0.8835, allocations: 323.4 kB / 0.5186 GB, free: 6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.8836, allocations: 0 / 0.5186 GB, free: 6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.664e-05/0.8836, allocations: 12 kB / 0.5186 GB, free: 5.988 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.8837, allocations: 7.984 kB / 0.5186 GB, free: 5.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000692/0.8844, allocations: 249 kB / 0.5189 GB, free: 5.738 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003413/0.8878, allocations: 1.285 MB / 0.5201 GB, free: 4.375 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005715/0.8884, allocations: 174.8 kB / 0.5203 GB, free: 4.195 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004481/0.8889, allocations: 185.2 kB / 0.5205 GB, free: 4.012 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3153/1.204, allocations: 9.216 MB / 0.5295 GB, free: 106.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006243/1.205, allocations: 159.1 kB / 0.5296 GB, free: 106.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=19): time 5.33e-06/1.205, allocations: 0 / 0.5296 GB, free: 106.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=19): time 0.001217/1.206, allocations: 298.6 kB / 0.5299 GB, free: 106.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.71e-05/1.206, allocations: 108.5 kB / 0.53 GB, free: 105.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002229/1.209, allocations: 0.7546 MB / 0.5308 GB, free: 105.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.787e-05/1.209, allocations: 34.02 kB / 0.5308 GB, free: 105.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004587/1.209, allocations: 448.1 kB / 0.5312 GB, free: 105.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/1.209, allocations: 59.39 kB / 0.5313 GB, free: 105.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.926e-05/1.209, allocations: 5.062 kB / 0.5313 GB, free: 105.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.974e-05/1.209, allocations: 325 kB / 0.5316 GB, free: 105.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000309/1.21, allocations: 78.66 kB / 0.5317 GB, free: 105.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/1.21, allocations: 219.5 kB / 0.5319 GB, free: 105 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003935/1.211, allocations: 102.5 kB / 0.532 GB, free: 105 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/1.211, allocations: 1.469 kB / 0.532 GB, free: 105 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001189/1.212, allocations: 319.1 kB / 0.5323 GB, free: 105 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.385e-05/1.212, allocations: 7.625 kB / 0.5323 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.671e-05/1.212, allocations: 23.27 kB / 0.5323 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.787e-05/1.212, allocations: 7.734 kB / 0.5323 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000907/1.213, allocations: 93.53 kB / 0.5324 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.644e-05/1.213, allocations: 11.19 kB / 0.5324 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/1.214, allocations: 69.89 kB / 0.5325 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-05/1.214, allocations: 22.5 kB / 0.5325 GB, free: 105 MB / 442.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.0001984/1.215, allocations: 133.6 kB / 0.5326 GB, free: 104.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002584/1.215, allocations: 113 kB / 0.5327 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002063/1.217, allocations: 382.7 kB / 0.5331 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/1.217, allocations: 2.875 kB / 0.5331 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/1.217, allocations: 0.7969 kB / 0.5331 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/1.217, allocations: 4.656 kB / 0.5331 GB, free: 104.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/1.218, allocations: 0.5799 MB / 0.5337 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.696e-05/1.219, allocations: 23 kB / 0.5337 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000639/1.219, allocations: 55.64 kB / 0.5338 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/1.219, allocations: 5.688 kB / 0.5338 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.418e-05/1.219, allocations: 9.766 kB / 0.5338 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/1.219, allocations: 1.406 kB / 0.5338 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/1.219, allocations: 1.406 kB / 0.5338 GB, free: 104.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/1.221, allocations: 376.8 kB / 0.5341 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006245/1.221, allocations: 202.2 kB / 0.5343 GB, free: 104.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002854/1.221, allocations: 10.22 kB / 0.5343 GB, free: 104.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009336/1.222, allocations: 40.66 kB / 0.5344 GB, free: 104.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/1.223, allocations: 31.19 kB / 0.5344 GB, free: 104.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.99e-05/1.223, allocations: 16.22 kB / 0.5344 GB, free: 104.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001882/1.225, allocations: 0.5866 MB / 0.535 GB, free: 104.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.483e-06/1.225, allocations: 1.094 kB / 0.535 GB, free: 104.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001884/1.227, allocations: 249.9 kB / 0.5352 GB, free: 104.1 MB / 442.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.003155/1.23, allocations: 1.473 MB / 0.5367 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001103/1.231, allocations: 248.5 kB / 0.5369 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/1.231, allocations: 0.9688 kB / 0.5369 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005211/1.232, allocations: 134.4 kB / 0.537 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/1.233, allocations: 173.1 kB / 0.5372 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005324/1.239, allocations: 1.173 MB / 0.5383 GB, free: 102.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008494/1.24, allocations: 0.9758 MB / 0.5393 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008215/1.241, allocations: 319.3 kB / 0.5396 GB, free: 102.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.823e-06/1.241, allocations: 0 / 0.5396 GB, free: 102.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.866/4.107, allocations: 15.87 MB / 0.5551 GB, free: 101.4 MB / 442.7 MB