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 1.904/1.904, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.269e-05/3.295e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08977/0.08983, allocations: 44.52 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4495/0.5394, allocations: 97.67 MB / 397.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.5397, allocations: 73.3 kB / 397.7 MB, free: 12.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2387/0.7784, allocations: 74.03 MB / 471.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.7785, allocations: 0 / 471.7 MB, free: 13.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.929e-05/0.7785, allocations: 20 kB / 471.7 MB, free: 13.04 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.003581/0.7821, allocations: 1.218 MB / 472.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.7822, allocations: 8.031 kB / 472.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/0.7824, allocations: 70.45 kB / 473 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002648/0.7826, allocations: 122.5 kB / 473.1 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001976/0.7846, allocations: 0.756 MB / 473.9 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.7847, allocations: 16.56 kB / 473.9 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.7848, allocations: 24 kB / 473.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008824/0.7857, allocations: 336.4 kB / 474.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.7857, allocations: 0 / 474.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.975e-05/0.7858, allocations: 12 kB / 474.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.7858, allocations: 4 kB / 474.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006929/0.7865, allocations: 250.2 kB / 474.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003443/0.79, allocations: 1.277 MB / 475.8 MB, free: 8.762 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005538/0.7906, allocations: 174.7 kB / 476 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004624/0.7911, allocations: 181.1 kB / 476.1 MB, free: 8.402 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01496/0.8061, allocations: 9.274 MB / 485.4 MB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000436/0.8065, allocations: 157.7 kB / 485.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 3.326e-06/0.8066, allocations: 0 / 485.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009022/0.8075, allocations: 296.2 kB / 485.9 MB, free: 13.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.909e-05/0.8076, allocations: 110.8 kB / 486 MB, free: 13.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001569/0.8092, allocations: 0.761 MB / 486.7 MB, free: 12.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.104e-05/0.8093, allocations: 29.7 kB / 486.8 MB, free: 12.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004928/0.8098, allocations: 450.1 kB / 487.2 MB, free: 11.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.8099, allocations: 63.19 kB / 487.3 MB, free: 11.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.017e-05/0.81, allocations: 4 kB / 487.3 MB, free: 11.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.8101, allocations: 326.8 kB / 487.6 MB, free: 11.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.8104, allocations: 72 kB / 487.7 MB, free: 11.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/0.8107, allocations: 223.6 kB / 487.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.8111, allocations: 100.3 kB / 488 MB, free: 11.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.8111, allocations: 3.953 kB / 488 MB, free: 11.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008546/0.812, allocations: 317.1 kB / 488.3 MB, free: 10.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.622e-05/0.812, allocations: 8.625 kB / 488.3 MB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.896e-05/0.8121, allocations: 27.92 kB / 488.3 MB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.066e-05/0.8121, allocations: 12 kB / 488.3 MB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007113/0.8128, allocations: 95.81 kB / 488.4 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.918e-05/0.8129, allocations: 8 kB / 488.4 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009053/0.8138, allocations: 67.61 kB / 488.5 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.335e-05/0.8139, allocations: 24 kB / 488.5 MB, free: 10.57 MB / 378.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.0001882/0.8141, allocations: 132.8 kB / 488.7 MB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001876/0.8143, allocations: 110.7 kB / 488.8 MB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001569/0.8159, allocations: 387.4 kB / 489.1 MB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/0.8159, allocations: 4 kB / 489.1 MB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.8159, allocations: 0 / 489.1 MB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.8159, allocations: 0 / 489.1 MB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.8171, allocations: 0.5827 MB / 489.7 MB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.102e-05/0.8172, allocations: 16.06 kB / 489.7 MB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005016/0.8177, allocations: 63.88 kB / 489.8 MB, free: 9.215 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.465e-06/0.8177, allocations: 0 / 489.8 MB, free: 9.215 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-05/0.8178, allocations: 11.95 kB / 489.8 MB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.8178, allocations: 0 / 489.8 MB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.8178, allocations: 0 / 489.8 MB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008527/0.8187, allocations: 388.6 kB / 490.2 MB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000471/0.8192, allocations: 211.6 kB / 490.4 MB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.8194, allocations: 4 kB / 490.4 MB, free: 8.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007215/0.8201, allocations: 43.95 kB / 490.4 MB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.8203, allocations: 39.8 kB / 490.5 MB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.263e-05/0.8203, allocations: 12 kB / 490.5 MB, free: 8.469 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001244/0.8216, allocations: 0.5936 MB / 491.1 MB, free: 7.867 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.8216, allocations: 0 / 491.1 MB, free: 7.867 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001219/0.8229, allocations: 251.7 kB / 491.3 MB, free: 7.621 MB / 378.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.002459/0.8253, allocations: 1.475 MB / 492.8 MB, free: 6.098 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008391/0.8262, allocations: 255.4 kB / 493.1 MB, free: 5.844 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.8263, allocations: 0 / 493.1 MB, free: 5.844 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003705/0.8267, allocations: 137.6 kB / 493.2 MB, free: 5.703 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009821/0.8277, allocations: 137.5 kB / 493.3 MB, free: 5.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003731/0.8314, allocations: 1.177 MB / 494.5 MB, free: 4.336 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006589/0.8321, allocations: 0.9802 MB / 495.5 MB, free: 3.328 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006459/0.8328, allocations: 331.3 kB / 495.8 MB, free: 3.004 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.8328, allocations: 0 / 495.8 MB, free: 3.004 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.77/3.603, allocations: 15.99 MB / 0.4998 GB, free: 3.016 MB / 394.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