Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") Notification: Performance of loadModel(Modelica): time 2.151/2.151, allocations: 224.7 MB / 241.1 MB, free: 1.652 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.379e-05/3.386e-05, allocations: 4 kB / 294.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1315, allocations: 50.41 MB / 345 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.006704/0.1383, allocations: 3.871 MB / 348.9 MB, free: 5.02 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003406/0.1417, allocations: 1.208 MB / 350.1 MB, free: 3.805 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007651/0.1426, allocations: 31.94 kB / 350.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003377/0.1429, allocations: 83.25 kB / 350.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008075/0.1437, allocations: 211.2 kB / 350.4 MB, free: 3.484 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000889/0.1446, allocations: 219.7 kB / 350.6 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001226/0.1459, allocations: 0.5112 MB / 351.1 MB, free: 2.758 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005216/0.1464, allocations: 221.2 kB / 351.3 MB, free: 2.543 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004868/0.1469, allocations: 255.2 kB / 351.6 MB, free: 2.293 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005496/0.1475, allocations: 302.8 kB / 351.9 MB, free: 1.996 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/0.1477, allocations: 28 kB / 351.9 MB, free: 1.969 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.1478, allocations: 36 kB / 351.9 MB, free: 1.934 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001953/0.148, allocations: 135.4 kB / 352.1 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001923/0.1482, allocations: 60 kB / 352.1 MB, free: 1.742 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001162/0.1494, allocations: 0.7947 MB / 352.9 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1494, allocations: 7.875 kB / 352.9 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1494, allocations: 0 / 352.9 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.1494, allocations: 4 kB / 352.9 MB, free: 0.9336 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.002975/0.1524, allocations: 0.9721 MB / 353.9 MB, free: 15.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.1525, allocations: 12.03 kB / 353.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002994/0.1528, allocations: 94.88 kB / 354 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/0.1544, allocations: 0.5708 MB / 354.6 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.1546, allocations: 65.98 kB / 354.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/0.1548, allocations: 75.94 kB / 354.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/0.157, allocations: 0.7576 MB / 355.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.485e-05/0.157, allocations: 3.906 kB / 355.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001174/0.1572, allocations: 35.94 kB / 355.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.313e-05/0.1572, allocations: 16 kB / 355.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00213/0.1593, allocations: 0.5829 MB / 356.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006325/0.1657, allocations: 2.641 MB / 358.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002085/0.1678, allocations: 0.6009 MB / 359.4 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.442e-05/0.1679, allocations: 16.55 kB / 359.4 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001356/0.1693, allocations: 449.7 kB / 359.8 MB, free: 9.809 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 4.118e-06/0.1693, allocations: 0 / 359.8 MB, free: 9.809 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.005772/0.1751, allocations: 1.246 MB / 361.1 MB, free: 8.535 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.38e-05/0.1753, allocations: 115.4 kB / 361.2 MB, free: 8.398 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009471/0.1762, allocations: 478.2 kB / 361.6 MB, free: 7.922 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001524/0.1764, allocations: 45.69 kB / 361.7 MB, free: 7.871 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003401/0.1767, allocations: 366.9 kB / 362 MB, free: 7.512 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000276/0.177, allocations: 205.1 kB / 362.2 MB, free: 7.309 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.87e-05/0.1771, allocations: 12 kB / 362.3 MB, free: 7.297 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1773, allocations: 342.8 kB / 362.6 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000976/0.1783, allocations: 241.9 kB / 362.8 MB, free: 6.715 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.1794, allocations: 422.7 kB / 363.2 MB, free: 6.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.1805, allocations: 306.4 kB / 363.5 MB, free: 5.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.1805, allocations: 4 kB / 363.5 MB, free: 5.926 MB / 298.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002721/0.1833, allocations: 0.8108 MB / 364.4 MB, free: 5.098 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008226/0.1841, allocations: 1.943 MB / 366.3 MB, free: 2.996 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.606e-05/0.1841, allocations: 7.938 kB / 366.3 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008006/0.185, allocations: 160.7 kB / 366.5 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009465/0.1859, allocations: 119.8 kB / 366.6 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004489/0.1904, allocations: 2.365 MB / 368.9 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009841/0.1915, allocations: 99.34 kB / 369 MB, free: 116 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.51e-05/0.1916, allocations: 24 kB / 369.1 MB, free: 92 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.1916, allocations: 4 kB / 369.1 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002451/0.1941, allocations: 0.7508 MB / 369.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.1941, allocations: 4 kB / 369.8 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006534/0.1948, allocations: 155.1 kB / 370 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008621/0.1957, allocations: 119.8 kB / 370.1 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004463/0.2001, allocations: 2.331 MB / 372.4 MB, free: 12.58 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007738/0.201, allocations: 83.5 kB / 372.5 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.2011, allocations: 28.23 kB / 372.5 MB, free: 12.47 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 (71): * Single equations (assignments): 69 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0006312/0.2017, allocations: 237.5 kB / 372.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002804/0.202, allocations: 71.16 kB / 372.8 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002771/0.2048, allocations: 0.7874 MB / 373.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/0.2048, allocations: 8 kB / 373.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.2049, allocations: 0 / 373.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.2049, allocations: 7.938 kB / 373.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004109/0.209, allocations: 1.545 MB / 375.2 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.2091, allocations: 0 / 375.2 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007732/0.2098, allocations: 83.88 kB / 375.3 MB, free: 9.664 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00072/0.2106, allocations: 151.5 kB / 375.4 MB, free: 9.516 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.403e-05/0.2107, allocations: 15.98 kB / 375.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004556/0.2152, allocations: 2.358 MB / 377.8 MB, free: 7.008 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2153, allocations: 7.938 kB / 377.8 MB, free: 7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003782/0.2191, allocations: 1.155 MB / 378.9 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004488/0.2196, allocations: 204.1 kB / 379.1 MB, free: 5.609 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/0.2198, allocations: 16 kB / 379.2 MB, free: 5.594 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007832/0.2206, allocations: 55.95 kB / 379.2 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002477/0.2208, allocations: 60.47 kB / 379.3 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.466e-05/0.2209, allocations: 20 kB / 379.3 MB, free: 5.461 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007218/0.2216, allocations: 366.8 kB / 379.7 MB, free: 5.105 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.2217, allocations: 0 / 379.7 MB, free: 5.105 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0016/0.2233, allocations: 355 kB / 380 MB, free: 4.758 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * 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 (50): * Single equations (assignments): 41 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.000282/0.2236, allocations: 140.6 kB / 380.1 MB, free: 4.613 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00452/0.2281, allocations: 1.486 MB / 381.6 MB, free: 3.082 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/0.2282, allocations: 3.859 kB / 381.6 MB, free: 3.078 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.2298, allocations: 0.5221 MB / 382.1 MB, free: 2.543 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009514/0.2307, allocations: 128.1 kB / 382.3 MB, free: 2.422 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004126/0.2349, allocations: 1.611 MB / 383.9 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007716/0.2357, allocations: 0.9669 MB / 384.9 MB, free: 15.78 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/0.2361, allocations: 55.41 kB / 384.9 MB, free: 15.73 MB / 330.7 MB Notification: Performance of SimCode: time 3.056e-06/0.2361, allocations: 0 / 384.9 MB, free: 15.73 MB / 330.7 MB Notification: Performance of Templates: time 0.03284/0.2689, allocations: 11.82 MB / 396.7 MB, free: 3.934 MB / 330.7 MB