Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadModel(Modelica): time 2.284/2.284, allocations: 224.7 MB / 241.1 MB, free: 1.648 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.142e-05/3.146e-05, allocations: 4 kB / 294.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1053, allocations: 50.41 MB / 345 MB, free: 8.906 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL): time 0.006714/0.112, allocations: 3.945 MB / 348.9 MB, free: 4.934 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003471/0.1156, allocations: 1.224 MB / 350.2 MB, free: 3.703 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007921/0.1164, allocations: 31.94 kB / 350.2 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003631/0.1168, allocations: 91.17 kB / 350.3 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009205/0.1177, allocations: 219.2 kB / 350.5 MB, free: 3.367 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009213/0.1187, allocations: 227.6 kB / 350.7 MB, free: 3.145 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001262/0.12, allocations: 0.5229 MB / 351.2 MB, free: 2.621 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005631/0.1206, allocations: 217.8 kB / 351.5 MB, free: 2.406 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005569/0.1211, allocations: 267.1 kB / 351.7 MB, free: 2.145 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005683/0.1217, allocations: 310.8 kB / 352 MB, free: 1.84 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.1219, allocations: 32 kB / 352.1 MB, free: 1.809 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.122, allocations: 32 kB / 352.1 MB, free: 1.777 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001983/0.1222, allocations: 139.4 kB / 352.2 MB, free: 1.641 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.1224, allocations: 67.94 kB / 352.3 MB, free: 1.574 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.1237, allocations: 0.8103 MB / 353.1 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1237, allocations: 4 kB / 353.1 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.61e-06/0.1237, allocations: 4 kB / 353.1 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.992e-05/0.1238, allocations: 0 / 353.1 MB, free: 0.7539 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.003124/0.1269, allocations: 0.9879 MB / 354.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.127, allocations: 12.03 kB / 354.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003274/0.1273, allocations: 94.88 kB / 354.2 MB, free: 15.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.1291, allocations: 0.5825 MB / 354.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.1293, allocations: 65.98 kB / 354.8 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002148/0.1296, allocations: 72 kB / 354.9 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002457/0.132, allocations: 0.7901 MB / 355.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.014e-05/0.1321, allocations: 0 / 355.7 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/0.1323, allocations: 35.94 kB / 355.7 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.1323, allocations: 16 kB / 355.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002314/0.1346, allocations: 0.6011 MB / 356.4 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007424/0.1421, allocations: 2.725 MB / 359.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002054/0.1442, allocations: 0.5756 MB / 359.7 MB, free: 9.957 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.298e-05/0.1444, allocations: 8.562 kB / 359.7 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001461/0.1458, allocations: 461.1 kB / 360.1 MB, free: 9.488 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 6.412e-06/0.1459, allocations: 3.984 kB / 360.1 MB, free: 9.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.005856/0.1517, allocations: 1.246 MB / 361.4 MB, free: 8.211 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.939e-05/0.1519, allocations: 119.4 kB / 361.5 MB, free: 8.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009925/0.1529, allocations: 486.1 kB / 362 MB, free: 7.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001517/0.1531, allocations: 45.7 kB / 362 MB, free: 7.539 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003364/0.1534, allocations: 370.9 kB / 362.4 MB, free: 7.172 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002664/0.1537, allocations: 213 kB / 362.6 MB, free: 6.961 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.68e-05/0.1538, allocations: 8 kB / 362.6 MB, free: 6.953 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1539, allocations: 342.8 kB / 362.9 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009421/0.1549, allocations: 245.9 kB / 363.2 MB, free: 6.367 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.156, allocations: 434.8 kB / 363.6 MB, free: 5.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.1571, allocations: 303.8 kB / 363.9 MB, free: 5.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.1571, allocations: 0 / 363.9 MB, free: 5.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002664/0.1598, allocations: 0.8254 MB / 364.7 MB, free: 4.727 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009153/0.1607, allocations: 1.947 MB / 366.6 MB, free: 2.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.108e-05/0.1608, allocations: 11.94 kB / 366.7 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008176/0.1616, allocations: 140.8 kB / 366.8 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.1626, allocations: 131.7 kB / 366.9 MB, free: 2.344 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004423/0.1671, allocations: 2.33 MB / 369.3 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.1681, allocations: 99.38 kB / 369.4 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.388e-05/0.1682, allocations: 28 kB / 369.4 MB, free: 15.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.1683, allocations: 8 kB / 369.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00239/0.1707, allocations: 0.7577 MB / 370.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.1707, allocations: 8 kB / 370.2 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000619/0.1713, allocations: 152.8 kB / 370.3 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008907/0.1722, allocations: 119.8 kB / 370.4 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004256/0.1765, allocations: 2.305 MB / 372.7 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007757/0.1773, allocations: 79.55 kB / 372.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.831e-05/0.1774, allocations: 32 kB / 372.8 MB, free: 12.16 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.notFire,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 13} Notification: Performance of prepare postOptimizeDAE: time 0.0006158/0.1781, allocations: 233.7 kB / 373.1 MB, free: 11.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.1783, allocations: 79.09 kB / 373.1 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002817/0.1811, allocations: 0.7839 MB / 373.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.821e-05/0.1812, allocations: 8 kB / 373.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1812, allocations: 3.938 kB / 373.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.1812, allocations: 7.984 kB / 373.9 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004354/0.1856, allocations: 1.572 MB / 375.5 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.1857, allocations: 4.094 kB / 375.5 MB, free: 9.391 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008626/0.1865, allocations: 91.88 kB / 375.6 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006732/0.1872, allocations: 139.6 kB / 375.7 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.586e-05/0.1873, allocations: 23.98 kB / 375.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004566/0.1919, allocations: 2.304 MB / 378.1 MB, free: 6.703 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.192, allocations: 3.938 kB / 378.1 MB, free: 6.699 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003859/0.1958, allocations: 1.171 MB / 379.2 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005298/0.1964, allocations: 208.1 kB / 379.4 MB, free: 5.281 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001819/0.1966, allocations: 12 kB / 379.5 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008123/0.1974, allocations: 59.95 kB / 379.5 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.1977, allocations: 56.47 kB / 379.6 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.798e-05/0.1978, allocations: 23.98 kB / 379.6 MB, free: 5.133 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007225/0.1985, allocations: 374.8 kB / 380 MB, free: 4.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1985, allocations: 0 / 380 MB, free: 4.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001653/0.2002, allocations: 362.9 kB / 380.3 MB, free: 4.414 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.notFire,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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 {4 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002817/0.2005, allocations: 149.2 kB / 380.5 MB, free: 4.266 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004721/0.2053, allocations: 1.49 MB / 382 MB, free: 2.734 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.128e-05/0.2053, allocations: 7.922 kB / 382 MB, free: 2.727 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001662/0.207, allocations: 0.5251 MB / 382.5 MB, free: 2.184 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009746/0.208, allocations: 107.8 kB / 382.6 MB, free: 2.082 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004392/0.2124, allocations: 1.719 MB / 384.3 MB, free: 336 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008487/0.2133, allocations: 0.9825 MB / 385.3 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003577/0.2137, allocations: 55.42 kB / 385.3 MB, free: 15.27 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.2137, allocations: 0 / 385.3 MB, free: 15.27 MB / 330.7 MB Notification: Performance of Templates: time 0.02733/0.2411, allocations: 12.02 MB / 397.4 MB, free: 3.273 MB / 330.7 MB