Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkMosfetCharacterization",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.745/1.745, allocations: 194.9 MB / 202.6 MB, free: 6.883 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2276/1.973, allocations: 46.83 MB / 249.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09773/2.071, allocations: 44.5 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.361/2.432, allocations: 96.95 MB / 390.9 MB, free: 2.965 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/2.432, allocations: 67.12 kB / 390.9 MB, free: 2.957 MB / 298.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.2727/2.705, allocations: 71.61 MB / 462.5 MB, free: 9.043 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/2.705, allocations: 12 kB / 462.5 MB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/2.705, allocations: 114.6 kB / 462.7 MB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002061/2.707, allocations: 0.7677 MB / 463.4 MB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.634e-05/2.707, allocations: 7.984 kB / 463.4 MB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.982e-05/2.708, allocations: 19.91 kB / 463.4 MB, free: 8.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008186/2.708, allocations: 241.1 kB / 463.7 MB, free: 7.832 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008434/2.709, allocations: 299.6 kB / 464 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/2.709, allocations: 0 / 464 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.748e-05/2.709, allocations: 0 / 464 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.764e-05/2.709, allocations: 4 kB / 464 MB, free: 7.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003541/2.713, allocations: 1.225 MB / 465.2 MB, free: 6.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004161/2.713, allocations: 113.9 kB / 465.3 MB, free: 6.113 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000481/2.714, allocations: 181 kB / 465.5 MB, free: 5.934 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01668/2.731, allocations: 9.241 MB / 474.7 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003925/2.731, allocations: 139.5 kB / 474.9 MB, free: 11.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=19): time 3.246e-06/2.731, allocations: 0 / 474.9 MB, free: 11.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.000843/2.732, allocations: 264.3 kB / 475.1 MB, free: 10.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.478e-05/2.732, allocations: 118.6 kB / 475.2 MB, free: 10.83 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/2.734, allocations: 0.7048 MB / 476 MB, free: 10.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.054e-05/2.734, allocations: 29.64 kB / 476 MB, free: 10.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/2.734, allocations: 272.2 kB / 476.2 MB, free: 9.809 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.077e-05/2.734, allocations: 63.27 kB / 476.3 MB, free: 9.746 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.124e-05/2.734, allocations: 0 / 476.3 MB, free: 9.746 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/2.734, allocations: 321.9 kB / 476.6 MB, free: 9.426 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002494/2.734, allocations: 64 kB / 476.7 MB, free: 9.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004122/2.735, allocations: 219.8 kB / 476.9 MB, free: 9.078 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003392/2.735, allocations: 99.45 kB / 477 MB, free: 8.984 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/2.735, allocations: 3.938 kB / 477 MB, free: 8.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001031/2.736, allocations: 367.5 kB / 477.4 MB, free: 8.617 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/2.736, allocations: 4 kB / 477.4 MB, free: 8.613 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.285e-05/2.736, allocations: 23.98 kB / 477.4 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.57e-05/2.736, allocations: 8 kB / 477.4 MB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008567/2.737, allocations: 104.2 kB / 477.5 MB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/2.737, allocations: 11.91 kB / 477.5 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009524/2.738, allocations: 67.7 kB / 477.6 MB, free: 8.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.006e-05/2.738, allocations: 24 kB / 477.6 MB, free: 8.379 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.0001722/2.739, allocations: 120.8 kB / 477.7 MB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/2.739, allocations: 114.5 kB / 477.8 MB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002172/2.741, allocations: 430.2 kB / 478.2 MB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/2.741, allocations: 0 / 478.2 MB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/2.741, allocations: 4 kB / 478.3 MB, free: 7.711 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/2.741, allocations: 3.984 kB / 478.3 MB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/2.742, allocations: 0.535 MB / 478.8 MB, free: 7.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.406e-05/2.742, allocations: 24.06 kB / 478.8 MB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006015/2.743, allocations: 59.95 kB / 478.9 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/2.743, allocations: 0 / 478.9 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.58e-05/2.743, allocations: 8 kB / 478.9 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.175e-06/2.743, allocations: 7.984 kB / 478.9 MB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/2.743, allocations: 3.906 kB / 478.9 MB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008286/2.744, allocations: 352.9 kB / 479.2 MB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001006/2.745, allocations: 0.7396 MB / 480 MB, free: 5.867 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004978/2.745, allocations: 203.7 kB / 480.2 MB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/2.745, allocations: 7.984 kB / 480.2 MB, free: 5.641 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007921/2.746, allocations: 39.97 kB / 480.2 MB, free: 5.602 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/2.746, allocations: 31.95 kB / 480.3 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-05/2.747, allocations: 11.94 kB / 480.3 MB, free: 5.559 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001229/2.748, allocations: 0.5413 MB / 480.8 MB, free: 5.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002156/2.75, allocations: 243.7 kB / 481 MB, free: 4.773 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.001333/2.751, allocations: 0.6324 MB / 481.7 MB, free: 4.133 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007915/2.752, allocations: 245.4 kB / 481.9 MB, free: 3.887 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/2.752, allocations: 0 / 481.9 MB, free: 3.887 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003958/2.753, allocations: 129.6 kB / 482 MB, free: 3.754 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009601/2.753, allocations: 137.9 kB / 482.2 MB, free: 3.617 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003432/2.757, allocations: 0.9619 MB / 483.1 MB, free: 2.617 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009589/2.758, allocations: 1.038 MB / 484.2 MB, free: 1.551 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/2.758, allocations: 0 / 484.2 MB, free: 1.551 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.Spice3BenchmarkMosfetCharacterization_res.mat does not exist to compare? outputFormat=mat