Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.792/1.792, allocations: 171.2 MB / 185.7 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.679e-05/2.666e-05, allocations: 0 / 228.1 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08128/0.08134, allocations: 38.77 MB / 266.9 MB, free: 492 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009209/0.0906, allocations: 6.052 MB / 273 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02707/0.1177, allocations: 14.99 MB / 288 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001171/0.1189, allocations: 19.88 kB / 288 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002227/0.1212, allocations: 0.5673 MB / 288.5 MB, free: 10.78 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005848/0.1271, allocations: 1.327 MB / 289.9 MB, free: 9.449 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003803/0.1309, allocations: 0.9031 MB / 290.8 MB, free: 8.543 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.007694/0.1387, allocations: 2.79 MB / 293.6 MB, free: 5.75 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.139, allocations: 56.41 kB / 293.6 MB, free: 5.695 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007591/0.1398, allocations: 370.9 kB / 294 MB, free: 5.332 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007897/0.1406, allocations: 453.9 kB / 294.4 MB, free: 4.887 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004835/0.1454, allocations: 1.191 MB / 295.6 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004361/0.1459, allocations: 56 kB / 295.7 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002164/0.1462, allocations: 143 kB / 295.8 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005026/0.1467, allocations: 128 kB / 295.9 MB, free: 3.375 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002859/0.1495, allocations: 1.512 MB / 297.4 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1496, allocations: 0 / 297.4 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1496, allocations: 0 / 297.4 MB, free: 1.859 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.251e-05/0.1497, allocations: 4 kB / 297.4 MB, free: 1.855 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003476/0.1531, allocations: 1.472 MB / 298.9 MB, free: 336 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.1532, allocations: 16.02 kB / 298.9 MB, free: 320 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004244/0.1536, allocations: 189.7 kB / 299.1 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2214/0.375, allocations: 1.192 MB / 300.3 MB, free: 31.52 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.564e-05/0.3751, allocations: 18.94 kB / 300.3 MB, free: 31.52 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.3753, allocations: 29.39 kB / 300.4 MB, free: 31.52 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.377, allocations: 456.2 kB / 300.8 MB, free: 31.48 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.377, allocations: 0 / 300.8 MB, free: 31.48 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.017e-05/0.3771, allocations: 17.03 kB / 300.8 MB, free: 31.48 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.3771, allocations: 10.81 kB / 300.8 MB, free: 31.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.3791, allocations: 0.5064 MB / 301.3 MB, free: 31.43 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004562/0.3837, allocations: 1.632 MB / 303 MB, free: 30.58 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00171/0.3855, allocations: 417.9 kB / 303.4 MB, free: 30.44 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.021/0.4065, allocations: 15.3 MB / 318.7 MB, free: 17.43 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000969/0.4075, allocations: 280.7 kB / 319 MB, free: 17.27 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 3.426e-06/0.4075, allocations: 0 / 319 MB, free: 17.27 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.00365/0.4112, allocations: 0.9037 MB / 319.9 MB, free: 16.82 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.4113, allocations: 59.12 kB / 319.9 MB, free: 16.75 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002246/0.4136, allocations: 1.225 MB / 321.1 MB, free: 16.08 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.773e-05/0.4137, allocations: 37.19 kB / 321.2 MB, free: 16.04 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006687/0.4144, allocations: 0.7238 MB / 321.9 MB, free: 15.4 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.4145, allocations: 97.16 kB / 322 MB, free: 15.32 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.4146, allocations: 11.88 kB / 322 MB, free: 15.31 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.973e-05/0.4146, allocations: 325.8 kB / 322.3 MB, free: 14.99 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007684/0.4154, allocations: 182 kB / 322.5 MB, free: 14.92 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008239/0.4163, allocations: 384 kB / 322.9 MB, free: 14.59 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007867/0.4171, allocations: 221.5 kB / 323.1 MB, free: 14.49 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.4171, allocations: 0 / 323.1 MB, free: 14.49 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00238/0.4195, allocations: 0.7894 MB / 323.9 MB, free: 14.12 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.4195, allocations: 8.812 kB / 323.9 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-05/0.4196, allocations: 44.28 kB / 323.9 MB, free: 14.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004262/0.4201, allocations: 133.2 kB / 324.1 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007193/0.4208, allocations: 124 kB / 324.2 MB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006995/0.4215, allocations: 0.6851 MB / 324.9 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.4227, allocations: 79.44 kB / 325 MB, free: 13.36 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-05/0.4228, allocations: 44.05 kB / 325 MB, free: 13.32 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005648/0.4233, allocations: 265.7 kB / 325.3 MB, free: 13.05 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00028/0.4236, allocations: 190.7 kB / 325.4 MB, free: 12.86 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003109/0.4267, allocations: 0.8003 MB / 326.2 MB, free: 12.06 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.4268, allocations: 4 kB / 326.2 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.4268, allocations: 0 / 326.2 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.4268, allocations: 4.609 kB / 326.3 MB, free: 12.05 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003387/0.4302, allocations: 1.346 MB / 327.6 MB, free: 10.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-05/0.4303, allocations: 36 kB / 327.6 MB, free: 10.61 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/0.4308, allocations: 60.02 kB / 327.7 MB, free: 10.55 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003432/0.4312, allocations: 124.8 kB / 327.8 MB, free: 10.42 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.437e-05/0.4313, allocations: 19.98 kB / 327.8 MB, free: 10.4 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006482/0.4319, allocations: 0.6656 MB / 328.5 MB, free: 9.711 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.4319, allocations: 0 / 328.5 MB, free: 9.711 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.4341, allocations: 0.7922 MB / 329.3 MB, free: 8.875 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005978/0.4347, allocations: 275.4 kB / 329.6 MB, free: 8.586 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003284/0.4351, allocations: 19.92 kB / 329.6 MB, free: 8.566 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008069/0.4359, allocations: 39.91 kB / 329.6 MB, free: 8.527 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001872/0.4361, allocations: 39.89 kB / 329.7 MB, free: 8.488 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-05/0.4362, allocations: 27.98 kB / 329.7 MB, free: 8.461 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001632/0.4378, allocations: 0.9458 MB / 330.6 MB, free: 7.496 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4378, allocations: 0 / 330.6 MB, free: 7.496 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.00125/0.4391, allocations: 339.8 kB / 331 MB, free: 7.18 MB / 250.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,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001002/0.4401, allocations: 0.5522 MB / 331.5 MB, free: 6.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.4421, allocations: 0.5554 MB / 332.1 MB, free: 6.184 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.4422, allocations: 0 / 332.1 MB, free: 6.184 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.4432, allocations: 321 kB / 332.4 MB, free: 5.859 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/0.4446, allocations: 238.9 kB / 332.6 MB, free: 5.621 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004614/0.4493, allocations: 2.491 MB / 335.1 MB, free: 3.094 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/0.4499, allocations: 1.191 MB / 336.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0009832/0.4509, allocations: 181.9 kB / 336.5 MB, free: 1.695 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.4511, allocations: 79.44 kB / 336.6 MB, free: 1.617 MB / 250.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4511, allocations: 4 kB / 336.6 MB, free: 1.613 MB / 250.7 MB Notification: Performance of Templates: time 0.05609/0.5072, allocations: 18.73 MB / 355.3 MB, free: 14.89 MB / 282.7 MB