Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 1.76/1.76, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.268e-05/3.287e-05, allocations: 3.938 kB / 225 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2143, allocations: 38.76 MB / 263.7 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.3639, allocations: 93.98 MB / 357.7 MB, free: 11.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.3642, allocations: 71.97 kB / 357.8 MB, free: 11.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.644/1.008, allocations: 129.2 MB / 487 MB, free: 1.723 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.511e-06/1.008, allocations: 0 / 487 MB, free: 1.723 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.496e-05/1.008, allocations: 48 kB / 487.1 MB, free: 1.676 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006278/1.015, allocations: 2.796 MB / 489.9 MB, free: 14.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/1.015, allocations: 12.03 kB / 489.9 MB, free: 14.81 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008168/1.016, allocations: 418.9 kB / 490.3 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005798/1.021, allocations: 2.421 MB / 492.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.765e-05/1.021, allocations: 40.98 kB / 492.8 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001888/1.022, allocations: 55.86 kB / 492.8 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/1.023, allocations: 0.7852 MB / 493.6 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/1.024, allocations: 0 / 493.6 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/1.024, allocations: 20 kB / 493.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.575e-05/1.024, allocations: 27.92 kB / 493.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/1.025, allocations: 0.7014 MB / 494.3 MB, free: 10.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008138/1.033, allocations: 3.29 MB / 497.6 MB, free: 6.875 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/1.035, allocations: 483.9 kB / 498.1 MB, free: 6.395 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/1.036, allocations: 0.5966 MB / 498.7 MB, free: 5.785 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2413/1.277, allocations: 36.21 MB / 0.5224 GB, free: 35.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006098/1.278, allocations: 312 kB / 0.5227 GB, free: 35.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.529e-06/1.278, allocations: 0 / 0.5227 GB, free: 35.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001569/1.279, allocations: 0.8214 MB / 0.5235 GB, free: 35.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.136e-05/1.279, allocations: 273.5 kB / 0.5237 GB, free: 34.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004715/1.284, allocations: 2.666 MB / 0.5263 GB, free: 34.47 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/1.284, allocations: 36.8 kB / 0.5264 GB, free: 34.44 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/1.286, allocations: 1.302 MB / 0.5276 GB, free: 34.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/1.286, allocations: 161.9 kB / 0.5278 GB, free: 34.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.075e-05/1.286, allocations: 16.91 kB / 0.5278 GB, free: 34.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.902e-05/1.286, allocations: 351.3 kB / 0.5282 GB, free: 33.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004692/1.286, allocations: 192.9 kB / 0.5283 GB, free: 33.78 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006034/1.287, allocations: 0.5877 MB / 0.5289 GB, free: 33.26 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005544/1.288, allocations: 274.6 kB / 0.5292 GB, free: 33.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/1.288, allocations: 7.188 kB / 0.5292 GB, free: 33.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001699/1.289, allocations: 0.7797 MB / 0.5299 GB, free: 33.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/1.289, allocations: 11.09 kB / 0.53 GB, free: 33.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001265/1.29, allocations: 83.73 kB / 0.53 GB, free: 33.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.439e-05/1.29, allocations: 21.19 kB / 0.5301 GB, free: 33.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009711/1.291, allocations: 215.4 kB / 0.5303 GB, free: 33.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.566e-05/1.291, allocations: 27.56 kB / 0.5303 GB, free: 33.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/1.293, allocations: 120.1 kB / 0.5304 GB, free: 33.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/1.293, allocations: 67.03 kB / 0.5305 GB, free: 33.17 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0002234/1.293, allocations: 171.8 kB / 0.5306 GB, free: 33.06 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005355/1.293, allocations: 404.9 kB / 0.531 GB, free: 32.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003718/1.297, allocations: 1.159 MB / 0.5321 GB, free: 32.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/1.297, allocations: 2.906 kB / 0.5321 GB, free: 32.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.969e-06/1.297, allocations: 0 / 0.5321 GB, free: 32.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.885e-06/1.297, allocations: 3.844 kB / 0.5321 GB, free: 32.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004598/1.302, allocations: 2.196 MB / 0.5343 GB, free: 32.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001103/1.302, allocations: 71.17 kB / 0.5344 GB, free: 32.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006902/1.303, allocations: 102 kB / 0.5345 GB, free: 32.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-06/1.303, allocations: 2.281 kB / 0.5345 GB, free: 32.38 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.527e-05/1.303, allocations: 36.11 kB / 0.5345 GB, free: 32.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.48e-06/1.303, allocations: 7.297 kB / 0.5345 GB, free: 32.38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.372e-06/1.303, allocations: 3.906 kB / 0.5345 GB, free: 32.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002131/1.305, allocations: 1.238 MB / 0.5357 GB, free: 31.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/1.306, allocations: 0.517 MB / 0.5362 GB, free: 31.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004941/1.307, allocations: 14.86 kB / 0.5362 GB, free: 31.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/1.308, allocations: 46.42 kB / 0.5363 GB, free: 31.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/1.308, allocations: 61.56 kB / 0.5363 GB, free: 31.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.255e-05/1.308, allocations: 46.05 kB / 0.5364 GB, free: 31.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00392/1.312, allocations: 2.027 MB / 0.5384 GB, free: 31.42 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.118e-06/1.312, allocations: 0 / 0.5384 GB, free: 31.42 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002242/1.315, allocations: 0.6598 MB / 0.539 GB, free: 31.41 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.001433/1.316, allocations: 0.8824 MB / 0.5399 GB, free: 31.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001404/1.317, allocations: 0.6975 MB / 0.5405 GB, free: 31.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.608e-06/1.317, allocations: 0 / 0.5405 GB, free: 31.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006451/1.318, allocations: 393.8 kB / 0.5409 GB, free: 31.06 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/1.321, allocations: 0.5197 MB / 0.5414 GB, free: 31.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006803/1.328, allocations: 3.344 MB / 0.5447 GB, free: 29.95 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001322/1.329, allocations: 1.787 MB / 0.5464 GB, free: 29.22 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004657/1.329, allocations: 169.8 kB / 0.5466 GB, free: 29.21 MB / 346.7 MB Notification: Performance of SimCode: time 1.773e-06/1.329, allocations: 0 / 0.5466 GB, free: 29.21 MB / 346.7 MB Notification: Performance of Templates: time 0.05947/1.389, allocations: 38.1 MB / 0.5838 GB, free: 11.67 MB / 346.7 MB