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.738/1.738, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.141e-05/3.136e-05, allocations: 4 kB / 228.1 MB, free: 7.996 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08363/0.08368, allocations: 38.78 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01704/0.1008, allocations: 11.37 MB / 278.3 MB, free: 5.727 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.03023/0.1311, allocations: 16.24 MB / 294.5 MB, free: 5.449 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002634/0.1338, allocations: 35.81 kB / 294.5 MB, free: 5.414 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00346/0.1373, allocations: 0.8272 MB / 295.4 MB, free: 4.582 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007977/0.1453, allocations: 1.814 MB / 297.2 MB, free: 2.762 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004203/0.1496, allocations: 0.9772 MB / 298.1 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2579/0.4075, allocations: 5.578 MB / 303.7 MB, free: 6.09 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009226/0.4085, allocations: 133.1 kB / 303.9 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002919/0.4115, allocations: 0.7168 MB / 304.6 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003319/0.4149, allocations: 0.8997 MB / 305.5 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009563/0.4245, allocations: 1.208 MB / 306.7 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001478/0.4261, allocations: 74.62 kB / 306.8 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00124/0.4274, allocations: 271.9 kB / 307 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00224/0.4297, allocations: 274.8 kB / 307.3 MB, free: 6.078 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008419/0.4381, allocations: 2.79 MB / 310.1 MB, free: 5.742 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4382, allocations: 1.312 kB / 310.1 MB, free: 5.742 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.4382, allocations: 4 kB / 310.1 MB, free: 5.738 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001869/0.4384, allocations: 0 / 310.1 MB, free: 5.738 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.008715/0.4472, allocations: 2.659 MB / 312.7 MB, free: 4.27 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.4472, allocations: 8.812 kB / 312.8 MB, free: 4.27 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001577/0.4488, allocations: 417.8 kB / 313.2 MB, free: 4.059 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008909/0.4578, allocations: 2.309 MB / 315.5 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.552e-05/0.4579, allocations: 40.47 kB / 315.5 MB, free: 3.398 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004563/0.4584, allocations: 54.11 kB / 315.6 MB, free: 3.395 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003493/0.4619, allocations: 0.7513 MB / 316.3 MB, free: 3.344 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.411e-05/0.462, allocations: 0 / 316.3 MB, free: 3.344 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001656/0.4622, allocations: 19.7 kB / 316.3 MB, free: 3.344 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.326e-05/0.4623, allocations: 25.08 kB / 316.4 MB, free: 3.34 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003805/0.4661, allocations: 0.8578 MB / 317.2 MB, free: 3.324 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01383/0.48, allocations: 3.122 MB / 320.3 MB, free: 2.375 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002676/0.4827, allocations: 0.6148 MB / 321 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06663/0.5494, allocations: 30.35 MB / 351.3 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002143/0.5516, allocations: 395.3 kB / 351.7 MB, free: 3.172 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 5.991e-06/0.5517, allocations: 0 / 351.7 MB, free: 3.172 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.005841/0.5575, allocations: 1.492 MB / 353.2 MB, free: 1.773 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.812e-05/0.5576, allocations: 67.17 kB / 353.3 MB, free: 1.695 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006556/0.5642, allocations: 2.578 MB / 355.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001984/0.5645, allocations: 35.58 kB / 355.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00161/0.5661, allocations: 1.292 MB / 357.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000361/0.5665, allocations: 166.4 kB / 357.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.237e-05/0.5666, allocations: 18.12 kB / 357.3 MB, free: 15.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.5668, allocations: 349 kB / 357.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.5679, allocations: 262.2 kB / 357.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.5694, allocations: 0.6139 MB / 358.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/0.5707, allocations: 349.1 kB / 358.9 MB, free: 13.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.3e-05/0.5707, allocations: 4 kB / 358.9 MB, free: 13.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003191/0.5739, allocations: 0.9513 MB / 359.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/0.574, allocations: 13.56 kB / 359.9 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001829/0.5742, allocations: 80.16 kB / 359.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.126e-05/0.5742, allocations: 20 kB / 360 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.5756, allocations: 210.3 kB / 360.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-05/0.5757, allocations: 29.47 kB / 360.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002297/0.578, allocations: 122.9 kB / 360.3 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002424/0.5783, allocations: 69.8 kB / 360.4 MB, free: 12.54 MB / 298.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.001411/0.5797, allocations: 445.6 kB / 360.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001078/0.5808, allocations: 403.1 kB / 361.2 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00548/0.5863, allocations: 1.282 MB / 362.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.5864, allocations: 8 kB / 362.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.5864, allocations: 4 kB / 362.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.5864, allocations: 3.953 kB / 362.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006566/0.593, allocations: 2.178 MB / 364.7 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001629/0.5932, allocations: 72 kB / 364.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009248/0.5941, allocations: 106.7 kB / 364.9 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-05/0.5942, allocations: 4 kB / 364.9 MB, free: 8.809 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.5943, allocations: 31.95 kB / 364.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.866e-06/0.5943, allocations: 4 kB / 364.9 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.5943, allocations: 2.812 kB / 364.9 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004652/0.599, allocations: 1.447 MB / 366.3 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001852/0.6009, allocations: 487.9 kB / 366.8 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009739/0.6019, allocations: 8 kB / 366.8 MB, free: 6.781 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001624/0.6035, allocations: 43.95 kB / 366.9 MB, free: 6.738 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002714/0.6038, allocations: 66.72 kB / 366.9 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/0.604, allocations: 36.88 kB / 367 MB, free: 6.641 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.005146/0.6091, allocations: 1.984 MB / 369 MB, free: 4.664 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.6092, allocations: 0 / 369 MB, free: 4.664 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002888/0.6121, allocations: 0.5934 MB / 369.5 MB, free: 4.07 MB / 298.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.002351/0.6145, allocations: 0.7436 MB / 370.3 MB, free: 3.473 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004666/0.6192, allocations: 0.8486 MB / 371.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.6193, allocations: 0 / 371.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002249/0.6215, allocations: 473 kB / 371.6 MB, free: 2.164 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006027/0.6276, allocations: 0.5077 MB / 372.1 MB, free: 1.652 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/0.6462, allocations: 5.187 MB / 377.3 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002836/0.6491, allocations: 1.785 MB / 379.1 MB, free: 10.61 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008013/0.65, allocations: 155.4 kB / 379.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of SimCode: time 1.323e-06/0.65, allocations: 0 / 379.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of Templates: time 0.09117/0.7412, allocations: 37.17 MB / 416.4 MB, free: 5.367 MB / 346.7 MB