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.965/1.965, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.63e-05/2.647e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09571, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4407/0.5365, allocations: 97.69 MB / 397.6 MB, free: 12.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.5368, allocations: 74.14 kB / 397.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2333/0.7702, allocations: 74.03 MB / 471.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.7702, allocations: 3.938 kB / 471.7 MB, free: 12.92 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.874e-05/0.7703, allocations: 12 kB / 471.8 MB, free: 12.91 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.003662/0.7739, allocations: 1.214 MB / 473 MB, free: 11.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.774, allocations: 12.03 kB / 473 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.7742, allocations: 62.53 kB / 473 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002739/0.7744, allocations: 118.5 kB / 473.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001879/0.7763, allocations: 0.7676 MB / 473.9 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.7764, allocations: 16.56 kB / 473.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.469e-05/0.7765, allocations: 20 kB / 474 MB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008609/0.7774, allocations: 335.4 kB / 474.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.7774, allocations: 0 / 474.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/0.7775, allocations: 8 kB / 474.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.7775, allocations: 8 kB / 474.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006983/0.7782, allocations: 245 kB / 474.5 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003332/0.7816, allocations: 1.273 MB / 475.8 MB, free: 8.648 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005526/0.7821, allocations: 170.8 kB / 476 MB, free: 8.473 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004466/0.7826, allocations: 185.1 kB / 476.2 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0146/0.7972, allocations: 9.27 MB / 485.4 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004268/0.7977, allocations: 155.2 kB / 485.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 3.135e-06/0.7977, allocations: 0 / 485.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008348/0.7986, allocations: 292.2 kB / 485.9 MB, free: 13.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.7987, allocations: 122.8 kB / 486 MB, free: 13.12 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/0.8002, allocations: 0.7571 MB / 486.7 MB, free: 12.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.703e-05/0.8003, allocations: 29.7 kB / 486.8 MB, free: 12.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000467/0.8008, allocations: 446.1 kB / 487.2 MB, free: 11.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.811e-05/0.8009, allocations: 55.3 kB / 487.3 MB, free: 11.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-05/0.8009, allocations: 4 kB / 487.3 MB, free: 11.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.8011, allocations: 330.8 kB / 487.6 MB, free: 11.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002423/0.8013, allocations: 72 kB / 487.7 MB, free: 11.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000359/0.8017, allocations: 223.6 kB / 487.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002938/0.802, allocations: 102 kB / 488 MB, free: 11.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.802, allocations: 4 kB / 488 MB, free: 11.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008563/0.8029, allocations: 312.5 kB / 488.3 MB, free: 10.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.8029, allocations: 16.08 kB / 488.3 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-05/0.803, allocations: 23.94 kB / 488.3 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.803, allocations: 8 kB / 488.3 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007243/0.8038, allocations: 91.88 kB / 488.4 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.208e-05/0.8038, allocations: 11.94 kB / 488.4 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008528/0.8047, allocations: 71.61 kB / 488.5 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.904e-05/0.8048, allocations: 20 kB / 488.5 MB, free: 10.48 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.0001909/0.805, allocations: 136.8 kB / 488.7 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.8052, allocations: 114.7 kB / 488.8 MB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/0.8068, allocations: 379.4 kB / 489.1 MB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.8069, allocations: 4 kB / 489.1 MB, free: 9.836 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.912e-06/0.8069, allocations: 0 / 489.1 MB, free: 9.836 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.8069, allocations: 0 / 489.1 MB, free: 9.836 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.8081, allocations: 0.5828 MB / 489.7 MB, free: 9.195 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.768e-05/0.8081, allocations: 19.98 kB / 489.8 MB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004949/0.8087, allocations: 51.89 kB / 489.8 MB, free: 9.125 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.257e-05/0.8087, allocations: 4 kB / 489.8 MB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.566e-05/0.8087, allocations: 12 kB / 489.8 MB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.625e-06/0.8088, allocations: 8.016 kB / 489.8 MB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.8088, allocations: 0 / 489.8 MB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008582/0.8096, allocations: 373.8 kB / 490.2 MB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004364/0.8101, allocations: 211.6 kB / 490.4 MB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001634/0.8103, allocations: 8 kB / 490.4 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006201/0.8109, allocations: 43.95 kB / 490.4 MB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.8111, allocations: 31.95 kB / 490.5 MB, free: 8.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.616e-05/0.8111, allocations: 12 kB / 490.5 MB, free: 8.383 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001227/0.8124, allocations: 0.5936 MB / 491.1 MB, free: 7.781 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.8124, allocations: 4 kB / 491.1 MB, free: 7.777 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001204/0.8136, allocations: 255.6 kB / 491.3 MB, free: 7.527 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.002347/0.816, allocations: 1.478 MB / 492.8 MB, free: 6.004 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008171/0.8168, allocations: 246.1 kB / 493.1 MB, free: 5.758 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.463e-06/0.8168, allocations: 0 / 493.1 MB, free: 5.758 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003906/0.8172, allocations: 133.6 kB / 493.2 MB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009792/0.8182, allocations: 137.9 kB / 493.3 MB, free: 5.488 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00399/0.8223, allocations: 1.183 MB / 494.5 MB, free: 4.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007403/0.823, allocations: 0.9879 MB / 495.5 MB, free: 3.234 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006944/0.8238, allocations: 327.3 kB / 495.8 MB, free: 2.914 MB / 378.7 MB Notification: Performance of SimCode: time 1.223e-06/0.8238, allocations: 0 / 495.8 MB, free: 2.914 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.626/3.449, allocations: 15.94 MB / 0.4998 GB, free: 2.98 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