Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.833/1.833, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.638e-05/2.651e-05, allocations: 4 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07511/0.07516, allocations: 44.5 MB / 299.8 MB, free: 6.605 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3441/0.4193, allocations: 97.46 MB / 397.3 MB, free: 18.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.4196, allocations: 65.75 kB / 397.4 MB, free: 18.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2563/0.6759, allocations: 89.31 MB / 486.7 MB, free: 1.445 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6759, allocations: 4 kB / 486.7 MB, free: 1.441 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.722e-05/0.676, allocations: 24 kB / 486.7 MB, free: 1.418 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003341/0.6793, allocations: 1.61 MB / 488.3 MB, free: 15.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.6794, allocations: 12.03 kB / 488.3 MB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004392/0.6798, allocations: 193.7 kB / 488.5 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002842/0.6827, allocations: 1.231 MB / 489.7 MB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.6828, allocations: 16.56 kB / 489.8 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.6829, allocations: 28 kB / 489.8 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.6839, allocations: 443.5 kB / 490.2 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.684, allocations: 0 / 490.2 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-05/0.6841, allocations: 12 kB / 490.2 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.6841, allocations: 16 kB / 490.2 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008723/0.685, allocations: 374.4 kB / 490.6 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004081/0.6891, allocations: 1.651 MB / 492.3 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006563/0.6898, allocations: 283.5 kB / 492.5 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007106/0.6905, allocations: 358 kB / 492.9 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02544/0.716, allocations: 18.19 MB / 0.4991 GB, free: 6.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004995/0.7165, allocations: 207.2 kB / 0.4993 GB, free: 6.016 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 3.62e-06/0.7165, allocations: 4 kB / 0.4993 GB, free: 6.012 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001285/0.7178, allocations: 0.4884 MB / 0.4998 GB, free: 5.512 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.718, allocations: 158.2 kB / 0.4999 GB, free: 5.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002392/0.7204, allocations: 1.213 MB / 0.5011 GB, free: 4.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.759e-05/0.7205, allocations: 29.7 kB / 0.5011 GB, free: 4.035 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007496/0.7213, allocations: 0.6387 MB / 0.5018 GB, free: 3.395 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.7214, allocations: 94.73 kB / 0.5019 GB, free: 3.301 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.372e-05/0.7215, allocations: 16 kB / 0.5019 GB, free: 3.285 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.7217, allocations: 326.8 kB / 0.5022 GB, free: 2.957 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003148/0.722, allocations: 105.1 kB / 0.5023 GB, free: 2.855 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/0.7225, allocations: 331.8 kB / 0.5026 GB, free: 2.426 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003796/0.7229, allocations: 160.3 kB / 0.5027 GB, free: 2.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.098e-06/0.723, allocations: 0 / 0.5027 GB, free: 2.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001251/0.7242, allocations: 0.5079 MB / 0.5032 GB, free: 1.754 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.7243, allocations: 8 kB / 0.5033 GB, free: 1.746 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.649e-05/0.7244, allocations: 44 kB / 0.5033 GB, free: 1.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004152/0.7248, allocations: 132.8 kB / 0.5034 GB, free: 1.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005759/0.7254, allocations: 123.9 kB / 0.5035 GB, free: 1.449 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009216/0.7263, allocations: 0.681 MB / 0.5042 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.7274, allocations: 79.56 kB / 0.5043 GB, free: 0.6641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.216e-05/0.7275, allocations: 39.98 kB / 0.5043 GB, free: 0.625 MB / 394.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.000209/0.7277, allocations: 138.8 kB / 0.5044 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002694/0.728, allocations: 189.7 kB / 0.5046 GB, free: 304 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00246/0.7305, allocations: 0.6801 MB / 0.5053 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.959e-06/0.7305, allocations: 0 / 0.5053 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.069e-06/0.7305, allocations: 4 kB / 0.5053 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.7305, allocations: 7.891 kB / 0.5053 GB, free: 15.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002817/0.7334, allocations: 1.238 MB / 0.5065 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-05/0.7335, allocations: 40.05 kB / 0.5066 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003406/0.7338, allocations: 55.89 kB / 0.5066 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003491/0.7342, allocations: 128.8 kB / 0.5067 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-05/0.7343, allocations: 16 kB / 0.5067 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008295/0.7351, allocations: 0.6694 MB / 0.5074 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.675e-06/0.7351, allocations: 4.031 kB / 0.5074 GB, free: 13.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.7364, allocations: 0.6454 MB / 0.508 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006287/0.7371, allocations: 286.6 kB / 0.5083 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002236/0.7373, allocations: 4 kB / 0.5083 GB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007367/0.7381, allocations: 47.95 kB / 0.5084 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.7382, allocations: 35.95 kB / 0.5084 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.955e-05/0.7383, allocations: 27.98 kB / 0.5084 GB, free: 12.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001977/0.7403, allocations: 0.9313 MB / 0.5093 GB, free: 11.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.004e-06/0.7403, allocations: 0 / 0.5093 GB, free: 11.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001589/0.7419, allocations: 363.6 kB / 0.5097 GB, free: 10.93 MB / 410.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.001296/0.7432, allocations: 0.6412 MB / 0.5103 GB, free: 10.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001188/0.7445, allocations: 416.7 kB / 0.5107 GB, free: 9.859 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.073e-06/0.7445, allocations: 0 / 0.5107 GB, free: 9.859 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006476/0.7452, allocations: 243.2 kB / 0.5109 GB, free: 9.609 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/0.7466, allocations: 239.2 kB / 0.5112 GB, free: 9.371 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004012/0.7506, allocations: 1.57 MB / 0.5127 GB, free: 7.758 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/0.7517, allocations: 1.183 MB / 0.5138 GB, free: 6.543 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.7519, allocations: 79.44 kB / 0.5139 GB, free: 6.465 MB / 410.7 MB Notification: Performance of SimCode: time 1.852e-06/0.7519, allocations: 0 / 0.5139 GB, free: 6.465 MB / 410.7 MB Notification: Performance of Templates: time 0.259/1.011, allocations: 24.21 MB / 0.5376 GB, free: 99.67 MB / 410.7 MB