Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.062/2.062, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.714e-05, allocations: 0 / 249.7 MB, free: 15.21 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3416, allocations: 44.5 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2182/0.5598, allocations: 97.02 MB / 391.2 MB, free: 0.918 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.5602, allocations: 71.91 kB / 391.3 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5549/1.115, allocations: 69.94 MB / 461.2 MB, free: 84.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.115, allocations: 0 / 461.2 MB, free: 84.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.122e-05/1.115, allocations: 13.06 kB / 461.2 MB, free: 84.38 MB / 362.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.003766/1.119, allocations: 1.207 MB / 462.4 MB, free: 83.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/1.119, allocations: 11.16 kB / 462.5 MB, free: 83.59 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003203/1.119, allocations: 124.6 kB / 462.6 MB, free: 83.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/1.121, allocations: 0.7526 MB / 463.3 MB, free: 83.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/1.121, allocations: 7.656 kB / 463.3 MB, free: 83.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.953e-05/1.121, allocations: 18.59 kB / 463.4 MB, free: 83.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000607/1.122, allocations: 233.9 kB / 463.6 MB, free: 83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006216/1.122, allocations: 301.2 kB / 463.9 MB, free: 82.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/1.122, allocations: 0 / 463.9 MB, free: 82.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-05/1.123, allocations: 3.984 kB / 463.9 MB, free: 82.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/1.123, allocations: 14.7 kB / 463.9 MB, free: 82.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002853/1.125, allocations: 1.222 MB / 465.1 MB, free: 82.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004472/1.126, allocations: 167.7 kB / 465.3 MB, free: 82.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003297/1.126, allocations: 183 kB / 465.5 MB, free: 81.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01173/1.138, allocations: 9.263 MB / 474.7 MB, free: 72.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003351/1.138, allocations: 154 kB / 474.9 MB, free: 72.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 3.185e-06/1.138, allocations: 0 / 474.9 MB, free: 72.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006769/1.139, allocations: 280.1 kB / 475.2 MB, free: 72.24 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/1.139, allocations: 114.8 kB / 475.3 MB, free: 72.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/1.14, allocations: 0.7009 MB / 476 MB, free: 71.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/1.14, allocations: 25.7 kB / 476 MB, free: 71.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003421/1.141, allocations: 454.4 kB / 476.4 MB, free: 70.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.469e-05/1.141, allocations: 59.28 kB / 476.5 MB, free: 70.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.693e-05/1.141, allocations: 0 / 476.5 MB, free: 70.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.409e-05/1.141, allocations: 326.8 kB / 476.8 MB, free: 70.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/1.141, allocations: 64.72 kB / 476.9 MB, free: 70.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/1.141, allocations: 223.4 kB / 477.1 MB, free: 70.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/1.142, allocations: 87.88 kB / 477.2 MB, free: 70.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/1.142, allocations: 4 kB / 477.2 MB, free: 70.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006493/1.142, allocations: 290.9 kB / 477.5 MB, free: 69.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/1.142, allocations: 8 kB / 477.5 MB, free: 69.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.934e-05/1.142, allocations: 20 kB / 477.5 MB, free: 69.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.421e-05/1.142, allocations: 12.56 kB / 477.5 MB, free: 69.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006369/1.143, allocations: 99.86 kB / 477.6 MB, free: 69.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/1.143, allocations: 11.94 kB / 477.6 MB, free: 69.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008177/1.144, allocations: 57.53 kB / 477.7 MB, free: 69.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-05/1.144, allocations: 24 kB / 477.7 MB, free: 69.57 MB / 362.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.0001301/1.144, allocations: 124.8 kB / 477.8 MB, free: 69.44 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005568/1.145, allocations: 280.2 kB / 478.1 MB, free: 69.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/1.145, allocations: 110.7 kB / 478.2 MB, free: 69.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001274/1.146, allocations: 378.2 kB / 478.6 MB, free: 68.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/1.146, allocations: 0 / 478.6 MB, free: 68.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/1.146, allocations: 4 kB / 478.6 MB, free: 68.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/1.146, allocations: 3.984 kB / 478.6 MB, free: 68.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007724/1.147, allocations: 0.5348 MB / 479.1 MB, free: 68.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.087e-05/1.147, allocations: 19.98 kB / 479.1 MB, free: 68.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00045/1.147, allocations: 52.02 kB / 479.2 MB, free: 68.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/1.147, allocations: 4 kB / 479.2 MB, free: 68.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.689e-05/1.147, allocations: 12 kB / 479.2 MB, free: 68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/1.147, allocations: 4 kB / 479.2 MB, free: 67.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/1.148, allocations: 3.984 kB / 479.2 MB, free: 67.99 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006336/1.148, allocations: 364.9 kB / 479.6 MB, free: 67.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003552/1.149, allocations: 207.7 kB / 479.8 MB, free: 67.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/1.149, allocations: 3.953 kB / 479.8 MB, free: 67.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006011/1.149, allocations: 39.95 kB / 479.8 MB, free: 67.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/1.149, allocations: 31.95 kB / 479.8 MB, free: 67.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.537e-05/1.15, allocations: 16 kB / 479.9 MB, free: 67.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008889/1.15, allocations: 0.5336 MB / 480.4 MB, free: 66.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.15, allocations: 0 / 480.4 MB, free: 66.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001104/1.152, allocations: 235.6 kB / 480.6 MB, free: 66.52 MB / 362.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.001995/1.154, allocations: 1.561 MB / 482.2 MB, free: 64.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006442/1.154, allocations: 238.4 kB / 482.4 MB, free: 64.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/1.154, allocations: 4.188 kB / 482.4 MB, free: 64.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/1.155, allocations: 137.4 kB / 482.5 MB, free: 64.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009146/1.156, allocations: 136.6 kB / 482.7 MB, free: 64.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003174/1.159, allocations: 1.16 MB / 483.8 MB, free: 63.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000399/1.159, allocations: 0.9799 MB / 484.8 MB, free: 62.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005155/1.16, allocations: 323.3 kB / 485.1 MB, free: 61.92 MB / 362.7 MB Notification: Performance of SimCode: time 1.343e-06/1.16, allocations: 0 / 485.1 MB, free: 61.92 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.71/3.87, allocations: 15.92 MB / 0.4893 GB, free: 46.01 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat