Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.829/1.829, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.983e-05/2.989e-05, allocations: 4 kB / 225 MB, free: 2.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2055, allocations: 38.77 MB / 263.8 MB, free: 9.824 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1185/0.324, allocations: 70.87 MB / 334.7 MB, free: 2.848 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.3243, allocations: 67.97 kB / 334.7 MB, free: 2.781 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0408/0.3651, allocations: 8.251 MB / 343 MB, free: 10.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.367e-06/0.3652, allocations: 4 kB / 343 MB, free: 10.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.644e-05/0.3653, allocations: 8 kB / 343 MB, free: 10.48 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002523/0.3678, allocations: 0.8284 MB / 343.8 MB, free: 9.594 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.987e-05/0.3679, allocations: 8.031 kB / 343.8 MB, free: 9.586 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002136/0.3681, allocations: 59.34 kB / 343.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007216/0.3688, allocations: 371.5 kB / 344.2 MB, free: 9.125 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.525e-05/0.3689, allocations: 32.73 kB / 344.3 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.369, allocations: 36 kB / 344.3 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.3702, allocations: 451.9 kB / 344.8 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.3702, allocations: 3.938 kB / 344.8 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.811e-05/0.3703, allocations: 12 kB / 344.8 MB, free: 8.578 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.059e-05/0.3703, allocations: 12 kB / 344.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.3714, allocations: 381.5 kB / 345.2 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005071/0.3765, allocations: 2.038 MB / 347.2 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003958/0.3805, allocations: 0.7063 MB / 347.9 MB, free: 5.344 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000705/0.3812, allocations: 268.7 kB / 348.2 MB, free: 5.082 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.749e-05/0.3813, allocations: 4 kB / 348.2 MB, free: 5.078 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007132/0.382, allocations: 291.5 kB / 348.4 MB, free: 4.777 MB / 298.7 MB Notification: Performance of pre-optimization done (n=39): time 3.922e-06/0.382, allocations: 0 / 348.4 MB, free: 4.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.00186/0.3839, allocations: 0.5533 MB / 349 MB, free: 4.215 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.727e-05/0.384, allocations: 89.06 kB / 349.1 MB, free: 4.109 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005658/0.3846, allocations: 318.9 kB / 349.4 MB, free: 3.793 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.763e-05/0.3847, allocations: 37.7 kB / 349.4 MB, free: 3.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.3849, allocations: 224.6 kB / 349.7 MB, free: 3.527 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.3851, allocations: 134.1 kB / 349.8 MB, free: 3.395 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.432e-05/0.3852, allocations: 4 kB / 349.8 MB, free: 3.391 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.3854, allocations: 354.8 kB / 350.1 MB, free: 3.035 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004808/0.3859, allocations: 164.8 kB / 350.3 MB, free: 2.871 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005156/0.3864, allocations: 201.9 kB / 350.5 MB, free: 2.664 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004929/0.3869, allocations: 187.6 kB / 350.7 MB, free: 2.477 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.387, allocations: 3.938 kB / 350.7 MB, free: 2.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001821/0.3888, allocations: 0.6013 MB / 351.3 MB, free: 1.855 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.392e-05/0.3889, allocations: 33.7 kB / 351.3 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.925e-06/0.3889, allocations: 0 / 351.3 MB, free: 1.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.3901, allocations: 342.8 kB / 351.6 MB, free: 1.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006061/0.3908, allocations: 95.88 kB / 351.7 MB, free: 1.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009451/0.4002, allocations: 3.075 MB / 354.8 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009011/0.4012, allocations: 111.8 kB / 354.9 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.537e-05/0.4013, allocations: 12 kB / 354.9 MB, free: 14.06 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001979/0.4015, allocations: 122.2 kB / 355.1 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.4016, allocations: 43.44 kB / 355.1 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001655/0.4018, allocations: 56.44 kB / 355.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.4018, allocations: 4 kB / 355.2 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.768e-06/0.4018, allocations: 11.94 kB / 355.2 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.4018, allocations: 7.938 kB / 355.2 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000967/0.4028, allocations: 0.5717 MB / 355.8 MB, free: 13.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.4028, allocations: 3.984 kB / 355.8 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006/0.4034, allocations: 83.94 kB / 355.8 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001178/0.4046, allocations: 332.7 kB / 356.2 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.013e-05/0.4047, allocations: 7.984 kB / 356.2 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009139/0.4139, allocations: 3.073 MB / 359.2 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.644e-06/0.4139, allocations: 0 / 359.2 MB, free: 9.555 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.4164, allocations: 0.8373 MB / 360.1 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003364/0.4168, allocations: 168.5 kB / 360.2 MB, free: 8.512 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001117/0.4169, allocations: 19.94 kB / 360.3 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007686/0.4177, allocations: 87.92 kB / 360.3 MB, free: 8.406 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/0.4179, allocations: 47.92 kB / 360.4 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.439e-05/0.4179, allocations: 8 kB / 360.4 MB, free: 8.352 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004185/0.4184, allocations: 257.2 kB / 360.7 MB, free: 8.102 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.4184, allocations: 0 / 360.7 MB, free: 8.102 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008165/0.4192, allocations: 171.7 kB / 360.8 MB, free: 7.934 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002309/0.4195, allocations: 127.2 kB / 360.9 MB, free: 7.801 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.4214, allocations: 0.6536 MB / 361.6 MB, free: 7.125 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.315e-06/0.4214, allocations: 0 / 361.6 MB, free: 7.125 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001216/0.4226, allocations: 421.5 kB / 362 MB, free: 6.703 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005497/0.4232, allocations: 66.31 kB / 362.1 MB, free: 6.641 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.4262, allocations: 0.7632 MB / 362.8 MB, free: 5.859 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005977/0.4268, allocations: 0.8474 MB / 363.7 MB, free: 4.988 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003057/0.4271, allocations: 39.27 kB / 363.7 MB, free: 4.945 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.4272, allocations: 27.44 kB / 363.8 MB, free: 4.922 MB / 314.7 MB Notification: Performance of SimCode: time 2.523e-06/0.4272, allocations: 0 / 363.8 MB, free: 4.922 MB / 314.7 MB Notification: Performance of Templates: time 0.2069/0.6342, allocations: 10.48 MB / 374.2 MB, free: 91.09 MB / 314.7 MB