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.692/1.692, allocations: 171.1 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.492e-05/3.5e-05, allocations: 8 kB / 228.1 MB, free: 7.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08636/0.08642, allocations: 38.76 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009472/0.09595, allocations: 6.054 MB / 272.9 MB, free: 11.05 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02846/0.1245, allocations: 15 MB / 287.9 MB, free: 12.02 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001306/0.1258, allocations: 15.94 kB / 288 MB, free: 12 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00242/0.1283, allocations: 0.5712 MB / 288.5 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005956/0.1343, allocations: 1.316 MB / 289.8 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003945/0.1383, allocations: 0.9031 MB / 290.7 MB, free: 9.199 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.007739/0.1461, allocations: 2.762 MB / 293.5 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003168/0.1465, allocations: 64.38 kB / 293.6 MB, free: 6.371 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008512/0.1473, allocations: 370.9 kB / 293.9 MB, free: 6.008 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009045/0.1483, allocations: 453.9 kB / 294.4 MB, free: 5.562 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00515/0.1534, allocations: 1.191 MB / 295.6 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004736/0.154, allocations: 56 kB / 295.6 MB, free: 4.316 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002318/0.1542, allocations: 135 kB / 295.8 MB, free: 4.184 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005156/0.1547, allocations: 132 kB / 295.9 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003152/0.1579, allocations: 1.508 MB / 297.4 MB, free: 2.543 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.158, allocations: 4 kB / 297.4 MB, free: 2.539 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.158, allocations: 3.938 kB / 297.4 MB, free: 2.535 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.011e-05/0.1581, allocations: 0 / 297.4 MB, free: 2.535 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003604/0.1617, allocations: 1.472 MB / 298.9 MB, free: 1.008 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.1618, allocations: 12.03 kB / 298.9 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000486/0.1623, allocations: 193.7 kB / 299.1 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2192/0.3815, allocations: 1.196 MB / 300.3 MB, free: 31.45 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.3816, allocations: 19.5 kB / 300.3 MB, free: 31.45 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.3817, allocations: 30.89 kB / 300.3 MB, free: 31.45 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/0.3834, allocations: 457.2 kB / 300.8 MB, free: 31.41 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.3834, allocations: 0 / 300.8 MB, free: 31.41 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.861e-05/0.3835, allocations: 15.27 kB / 300.8 MB, free: 31.41 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.3836, allocations: 11.36 kB / 300.8 MB, free: 31.41 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001948/0.3855, allocations: 0.5055 MB / 301.3 MB, free: 31.41 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00469/0.3902, allocations: 1.627 MB / 302.9 MB, free: 30.6 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.3922, allocations: 418.1 kB / 303.3 MB, free: 30.45 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02159/0.4138, allocations: 15.3 MB / 318.6 MB, free: 17.58 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001011/0.4148, allocations: 285.6 kB / 318.9 MB, free: 17.41 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 4.459e-06/0.4149, allocations: 0 / 318.9 MB, free: 17.41 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.003558/0.4184, allocations: 0.9045 MB / 319.8 MB, free: 16.96 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.4185, allocations: 59.34 kB / 319.9 MB, free: 16.9 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00257/0.4211, allocations: 1.228 MB / 321.1 MB, free: 16.22 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.4213, allocations: 37.59 kB / 321.1 MB, free: 16.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005962/0.4219, allocations: 0.6333 MB / 321.8 MB, free: 15.58 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001505/0.422, allocations: 96.53 kB / 321.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/0.4221, allocations: 7.906 kB / 321.9 MB, free: 15.5 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.663e-05/0.4222, allocations: 334.7 kB / 322.2 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007836/0.423, allocations: 181.4 kB / 322.4 MB, free: 15.1 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008499/0.4238, allocations: 379.9 kB / 322.7 MB, free: 14.77 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008144/0.4247, allocations: 221.9 kB / 323 MB, free: 14.68 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.4247, allocations: 7.812 kB / 323 MB, free: 14.67 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002105/0.4268, allocations: 0.6388 MB / 323.6 MB, free: 14.38 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.4269, allocations: 9.75 kB / 323.6 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.534e-05/0.427, allocations: 43.33 kB / 323.7 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004446/0.4274, allocations: 135.7 kB / 323.8 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007427/0.4282, allocations: 116.4 kB / 323.9 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007768/0.429, allocations: 0.6826 MB / 324.6 MB, free: 13.72 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.4301, allocations: 81.88 kB / 324.7 MB, free: 13.68 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.773e-05/0.4302, allocations: 33.28 kB / 324.7 MB, free: 13.67 MB / 250.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.0006044/0.4308, allocations: 269.9 kB / 325 MB, free: 13.46 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003188/0.4311, allocations: 192.8 kB / 325.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003258/0.4344, allocations: 0.8053 MB / 326 MB, free: 12.66 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.4345, allocations: 0 / 326 MB, free: 12.66 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.4345, allocations: 7.016 kB / 326 MB, free: 12.65 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.4345, allocations: 0 / 326 MB, free: 12.65 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003427/0.4379, allocations: 1.349 MB / 327.3 MB, free: 11.24 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.371e-05/0.4381, allocations: 40.05 kB / 327.4 MB, free: 11.2 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004413/0.4385, allocations: 51.95 kB / 327.4 MB, free: 11.15 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003522/0.4389, allocations: 130.1 kB / 327.5 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.619e-05/0.439, allocations: 20 kB / 327.5 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007103/0.4397, allocations: 0.6617 MB / 328.2 MB, free: 10.31 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4397, allocations: 4.031 kB / 328.2 MB, free: 10.31 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002151/0.4419, allocations: 0.8001 MB / 329 MB, free: 9.465 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005493/0.4425, allocations: 274.7 kB / 329.3 MB, free: 9.176 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003147/0.4428, allocations: 8 kB / 329.3 MB, free: 9.168 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008202/0.4436, allocations: 39.97 kB / 329.3 MB, free: 9.129 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.4438, allocations: 47.88 kB / 329.4 MB, free: 9.082 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.676e-05/0.4439, allocations: 20.56 kB / 329.4 MB, free: 9.062 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001687/0.4456, allocations: 0.9497 MB / 330.3 MB, free: 8.094 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.12e-07/0.4456, allocations: 0 / 330.3 MB, free: 8.094 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001273/0.4469, allocations: 335.8 kB / 330.7 MB, free: 7.781 MB / 250.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.00105/0.448, allocations: 0.5548 MB / 331.2 MB, free: 7.348 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.4501, allocations: 0.5515 MB / 331.8 MB, free: 6.785 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.4501, allocations: 4 kB / 331.8 MB, free: 6.781 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.4512, allocations: 320.5 kB / 332.1 MB, free: 6.457 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.4526, allocations: 241.4 kB / 332.3 MB, free: 6.219 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005005/0.4576, allocations: 2.539 MB / 334.9 MB, free: 3.637 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006046/0.4582, allocations: 1.188 MB / 336.1 MB, free: 2.418 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002882/0.4586, allocations: 79.44 kB / 336.1 MB, free: 2.34 MB / 250.7 MB Notification: Performance of SimCode: time 2.615e-06/0.4586, allocations: 0 / 336.1 MB, free: 2.34 MB / 250.7 MB Notification: Performance of Templates: time 0.0523/0.5109, allocations: 24.22 MB / 360.4 MB, free: 10.12 MB / 282.7 MB