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_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.627/1.627, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.17e-05/3.192e-05, allocations: 0 / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2156/0.2156, allocations: 38.76 MB / 263.8 MB, free: 9.781 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1386/0.3542, allocations: 93.65 MB / 357.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/0.3545, allocations: 71.95 kB / 357.5 MB, free: 11.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4304/0.7849, allocations: 90.83 MB / 448.3 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7849, allocations: 0 / 448.3 MB, free: 24.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.978e-05/0.785, allocations: 20 kB / 448.3 MB, free: 24.96 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.002983/0.788, allocations: 1.613 MB / 449.9 MB, free: 23.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.788, allocations: 12.03 kB / 449.9 MB, free: 23.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002976/0.7883, allocations: 193.7 kB / 450.1 MB, free: 23.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002182/0.7905, allocations: 1.223 MB / 451.4 MB, free: 21.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/0.7906, allocations: 20.56 kB / 451.4 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.589e-05/0.7907, allocations: 27.95 kB / 451.4 MB, free: 21.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008197/0.7915, allocations: 442.5 kB / 451.8 MB, free: 21.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.7916, allocations: 4 kB / 451.8 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.194e-05/0.7917, allocations: 8 kB / 451.9 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.7917, allocations: 8 kB / 451.9 MB, free: 21.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007113/0.7924, allocations: 377.2 kB / 452.2 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003411/0.7958, allocations: 1.658 MB / 453.9 MB, free: 19.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005294/0.7964, allocations: 267.3 kB / 454.1 MB, free: 18.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005627/0.797, allocations: 373.9 kB / 454.5 MB, free: 18.54 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01852/0.8155, allocations: 18.19 MB / 472.7 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004846/0.8161, allocations: 207.2 kB / 472.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.696e-06/0.8161, allocations: 0 / 472.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.001271/0.8174, allocations: 492.2 kB / 473.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.8175, allocations: 166.1 kB / 473.6 MB, free: 12.85 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002362/0.8199, allocations: 1.217 MB / 474.8 MB, free: 11.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.514e-05/0.82, allocations: 29.7 kB / 474.8 MB, free: 11.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007344/0.8208, allocations: 0.6388 MB / 475.4 MB, free: 10.92 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.8209, allocations: 94.73 kB / 475.5 MB, free: 10.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.297e-05/0.821, allocations: 12 kB / 475.5 MB, free: 10.81 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.8212, allocations: 330.8 kB / 475.9 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003191/0.8215, allocations: 105.1 kB / 476 MB, free: 10.38 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004922/0.822, allocations: 330.7 kB / 476.3 MB, free: 9.953 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/0.8224, allocations: 149.7 kB / 476.4 MB, free: 9.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.553e-06/0.8224, allocations: 8 kB / 476.4 MB, free: 9.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001234/0.8237, allocations: 499.2 kB / 476.9 MB, free: 9.305 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.8237, allocations: 4 kB / 476.9 MB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.26e-05/0.8238, allocations: 40 kB / 477 MB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004128/0.8242, allocations: 141.2 kB / 477.1 MB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005442/0.8248, allocations: 119.8 kB / 477.2 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000893/0.8257, allocations: 0.6811 MB / 477.9 MB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.8268, allocations: 87.5 kB / 478 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.124e-05/0.8269, allocations: 32 kB / 478 MB, free: 8.18 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.0002088/0.8271, allocations: 140.8 kB / 478.2 MB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002767/0.8274, allocations: 189.8 kB / 478.3 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00242/0.8298, allocations: 0.6763 MB / 479 MB, free: 7.16 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.8299, allocations: 4 kB / 479 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.8299, allocations: 0 / 479 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.697e-06/0.8299, allocations: 3.938 kB / 479 MB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002811/0.8327, allocations: 1.238 MB / 480.3 MB, free: 5.844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.125e-05/0.8328, allocations: 35.98 kB / 480.3 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003497/0.8332, allocations: 59.89 kB / 480.4 MB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003575/0.8336, allocations: 128.9 kB / 480.5 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.483e-05/0.8336, allocations: 16 kB / 480.5 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008358/0.8345, allocations: 0.6734 MB / 481.2 MB, free: 4.906 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.163e-06/0.8345, allocations: 0 / 481.2 MB, free: 4.906 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.8358, allocations: 0.6375 MB / 481.8 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006455/0.8365, allocations: 294.6 kB / 482.1 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/0.8367, allocations: 8 kB / 482.1 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006965/0.8374, allocations: 43.95 kB / 482.2 MB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.8376, allocations: 43.89 kB / 482.2 MB, free: 3.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.44e-05/0.8377, allocations: 19.98 kB / 482.2 MB, free: 3.801 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001972/0.8397, allocations: 0.9352 MB / 483.2 MB, free: 2.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.096e-06/0.8397, allocations: 0 / 483.2 MB, free: 2.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001559/0.8413, allocations: 363.7 kB / 483.5 MB, free: 2.484 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.001259/0.8425, allocations: 0.6192 MB / 484.1 MB, free: 1.863 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.8437, allocations: 416.2 kB / 484.5 MB, free: 1.445 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.8437, allocations: 0 / 484.5 MB, free: 1.445 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005955/0.8443, allocations: 243.2 kB / 484.8 MB, free: 1.195 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.8457, allocations: 243.7 kB / 485 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003911/0.8497, allocations: 1.558 MB / 486.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/0.8508, allocations: 1.184 MB / 487.7 MB, free: 14.14 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000267/0.8511, allocations: 83.42 kB / 487.8 MB, free: 14.06 MB / 346.7 MB Notification: Performance of SimCode: time 1.905e-06/0.8511, allocations: 3.938 kB / 487.8 MB, free: 14.05 MB / 346.7 MB Notification: Performance of Templates: time 0.2395/1.091, allocations: 24.15 MB / 0.5 GB, free: 77.05 MB / 346.7 MB