Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 2.232/2.232, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.954e-05/2.94e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.107, allocations: 50.41 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00932/0.1164, allocations: 6.238 MB / 351.2 MB, free: 2.695 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02932/0.1458, allocations: 15.74 MB / 367 MB, free: 2.918 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.1471, allocations: 23.88 kB / 367 MB, free: 2.895 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002375/0.1495, allocations: 0.5673 MB / 367.5 MB, free: 2.324 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006138/0.1557, allocations: 1.327 MB / 368.9 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004006/0.1597, allocations: 0.9109 MB / 369.8 MB, free: 80 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007781/0.1676, allocations: 2.829 MB / 372.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002923/0.1679, allocations: 64.39 kB / 372.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009586/0.1689, allocations: 422.7 kB / 373.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009588/0.1699, allocations: 477.9 kB / 373.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005805/0.1757, allocations: 1.401 MB / 375 MB, free: 10.9 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004696/0.1762, allocations: 56 kB / 375 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002433/0.1765, allocations: 143 kB / 375.1 MB, free: 10.7 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005212/0.177, allocations: 128 kB / 375.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002995/0.18, allocations: 1.496 MB / 376.8 MB, free: 9.078 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1801, allocations: 0 / 376.8 MB, free: 9.078 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1801, allocations: 4 kB / 376.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.758e-05/0.1802, allocations: 4 kB / 376.8 MB, free: 9.07 MB / 314.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.003512/0.1837, allocations: 1.464 MB / 378.2 MB, free: 7.551 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.1838, allocations: 8.031 kB / 378.2 MB, free: 7.543 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004432/0.1842, allocations: 201.6 kB / 378.4 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00322/0.1875, allocations: 1.196 MB / 379.6 MB, free: 6.078 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.418e-05/0.1875, allocations: 24.5 kB / 379.7 MB, free: 6.051 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001353/0.1877, allocations: 28 kB / 379.7 MB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.1893, allocations: 449.2 kB / 380.1 MB, free: 5.582 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.1893, allocations: 0 / 380.1 MB, free: 5.582 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.863e-05/0.1894, allocations: 12 kB / 380.1 MB, free: 5.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.438e-05/0.1894, allocations: 11.98 kB / 380.2 MB, free: 5.559 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002002/0.1915, allocations: 0.4981 MB / 380.7 MB, free: 5.059 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004456/0.1959, allocations: 1.638 MB / 382.3 MB, free: 3.352 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.1977, allocations: 411.4 kB / 382.7 MB, free: 2.941 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02339/0.2211, allocations: 15.28 MB / 398 MB, free: 1.594 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001069/0.2222, allocations: 287 kB / 398.2 MB, free: 1.301 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.787e-06/0.2223, allocations: 0 / 398.2 MB, free: 1.301 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.003678/0.2259, allocations: 0.8962 MB / 399.1 MB, free: 384 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/0.2261, allocations: 67.33 kB / 399.2 MB, free: 304 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2766/0.5027, allocations: 1.208 MB / 400.4 MB, free: 54.8 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001075/0.5028, allocations: 33.2 kB / 400.5 MB, free: 54.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007473/0.5036, allocations: 0.6337 MB / 401.1 MB, free: 54.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.5038, allocations: 95.36 kB / 401.2 MB, free: 54.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-05/0.5038, allocations: 10.53 kB / 401.2 MB, free: 54.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.343e-05/0.5039, allocations: 329.7 kB / 401.5 MB, free: 54.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009853/0.5049, allocations: 183.1 kB / 401.7 MB, free: 54.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.506, allocations: 377.5 kB / 402.1 MB, free: 53.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009139/0.5069, allocations: 217.4 kB / 402.3 MB, free: 53.67 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.485e-06/0.5069, allocations: 2.031 kB / 402.3 MB, free: 53.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002324/0.5092, allocations: 0.6538 MB / 402.9 MB, free: 53.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/0.5093, allocations: 8.797 kB / 402.9 MB, free: 53.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001032/0.5094, allocations: 43.94 kB / 403 MB, free: 53.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004879/0.5099, allocations: 132.2 kB / 403.1 MB, free: 53.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008059/0.5108, allocations: 118.8 kB / 403.2 MB, free: 53.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000821/0.5116, allocations: 0.6776 MB / 403.9 MB, free: 52.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.5127, allocations: 85.86 kB / 404 MB, free: 52.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.5128, allocations: 34.17 kB / 404 MB, free: 52.81 MB / 330.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.0006347/0.5135, allocations: 273.5 kB / 404.3 MB, free: 52.6 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003198/0.5138, allocations: 191 kB / 404.5 MB, free: 52.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003423/0.5172, allocations: 0.7884 MB / 405.3 MB, free: 52.28 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.5173, allocations: 3.375 kB / 405.3 MB, free: 52.28 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.5173, allocations: 0 / 405.3 MB, free: 52.28 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.5173, allocations: 5.781 kB / 405.3 MB, free: 52.28 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003711/0.5211, allocations: 1.349 MB / 406.6 MB, free: 51.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.665e-05/0.5212, allocations: 34.3 kB / 406.7 MB, free: 51.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005628/0.5218, allocations: 52.97 kB / 406.7 MB, free: 51.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004652/0.5223, allocations: 133.9 kB / 406.8 MB, free: 51.58 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.427e-05/0.5223, allocations: 14.78 kB / 406.8 MB, free: 51.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007638/0.5231, allocations: 0.6717 MB / 407.5 MB, free: 51.01 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.5231, allocations: 1 kB / 407.5 MB, free: 51.01 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002415/0.5256, allocations: 0.7895 MB / 408.3 MB, free: 50.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006108/0.5262, allocations: 275 kB / 408.6 MB, free: 50.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003147/0.5266, allocations: 7.969 kB / 408.6 MB, free: 50.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008543/0.5274, allocations: 41.8 kB / 408.6 MB, free: 50.37 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.5276, allocations: 42.55 kB / 408.7 MB, free: 50.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-05/0.5277, allocations: 23.52 kB / 408.7 MB, free: 50.36 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002164/0.5299, allocations: 0.9426 MB / 409.6 MB, free: 49.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5299, allocations: 0 / 409.6 MB, free: 49.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001494/0.5314, allocations: 322.9 kB / 409.9 MB, free: 49.95 MB / 330.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.001249/0.5327, allocations: 0.5485 MB / 410.5 MB, free: 49.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002349/0.5351, allocations: 0.5455 MB / 411 MB, free: 49.64 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.5352, allocations: 1.156 kB / 411 MB, free: 49.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001214/0.5364, allocations: 318.6 kB / 411.4 MB, free: 49.53 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002374/0.5388, allocations: 289 kB / 411.6 MB, free: 49.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005067/0.5439, allocations: 2.542 MB / 414.2 MB, free: 48.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000796/0.5448, allocations: 1.182 MB / 415.4 MB, free: 47.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003256/0.5451, allocations: 79.72 kB / 415.4 MB, free: 47.27 MB / 330.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5451, allocations: 0 / 415.4 MB, free: 47.27 MB / 330.7 MB Notification: Performance of Templates: time 0.04284/0.588, allocations: 24.08 MB / 439.5 MB, free: 25.18 MB / 330.7 MB