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_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.984/1.984, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.058e-05/3.073e-05, allocations: 4 kB / 292.2 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08897/0.08902, allocations: 50.41 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3802/0.4693, allocations: 83.19 MB / 425.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003459/0.4697, allocations: 73.83 kB / 425.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06918/0.5389, allocations: 9.231 MB / 435.1 MB, free: 3.078 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.157e-06/0.5389, allocations: 0 / 435.1 MB, free: 3.078 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.707e-05/0.539, allocations: 8 kB / 435.1 MB, free: 3.07 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002359/0.5414, allocations: 0.8761 MB / 435.9 MB, free: 2.172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.5414, allocations: 8.031 kB / 435.9 MB, free: 2.164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.5416, allocations: 59.34 kB / 436 MB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007244/0.5423, allocations: 394.4 kB / 436.4 MB, free: 1.746 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.135e-05/0.5424, allocations: 26.09 kB / 436.4 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.5425, allocations: 47.08 kB / 436.5 MB, free: 1.699 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.5436, allocations: 471.5 kB / 436.9 MB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.5437, allocations: 3.953 kB / 436.9 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.985e-05/0.5437, allocations: 17.88 kB / 436.9 MB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.5438, allocations: 8 kB / 437 MB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.5448, allocations: 399 kB / 437.3 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004838/0.5497, allocations: 2.207 MB / 439.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003763/0.5535, allocations: 0.7153 MB / 440.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006641/0.5542, allocations: 274.5 kB / 440.5 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.82e-05/0.5542, allocations: 12.27 kB / 440.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007222/0.555, allocations: 298.6 kB / 440.8 MB, free: 14.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.723e-06/0.555, allocations: 0 / 440.8 MB, free: 14.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001737/0.5567, allocations: 0.5639 MB / 441.4 MB, free: 14.01 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.5568, allocations: 81.11 kB / 441.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006182/0.5574, allocations: 353.8 kB / 441.8 MB, free: 13.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.718e-05/0.5575, allocations: 35.89 kB / 441.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/0.5578, allocations: 234.7 kB / 442.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.558, allocations: 128.8 kB / 442.2 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.446e-05/0.558, allocations: 14.56 kB / 442.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002108/0.5582, allocations: 353.2 kB / 442.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004834/0.5587, allocations: 175.5 kB / 442.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005093/0.5593, allocations: 211.8 kB / 442.9 MB, free: 12.76 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004743/0.5597, allocations: 188.7 kB / 443.1 MB, free: 12.64 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.953e-06/0.5598, allocations: 3.938 kB / 443.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001745/0.5615, allocations: 0.6154 MB / 443.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.847e-05/0.5616, allocations: 41.64 kB / 443.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.811e-06/0.5616, allocations: 3.984 kB / 443.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001193/0.5628, allocations: 331.8 kB / 444.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006443/0.5635, allocations: 107.8 kB / 444.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008977/0.5725, allocations: 3.076 MB / 447.3 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009492/0.5735, allocations: 113 kB / 447.4 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-05/0.5736, allocations: 11.38 kB / 447.4 MB, free: 9.164 MB / 362.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.trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.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.000208/0.5738, allocations: 141 kB / 447.6 MB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.5739, allocations: 43.44 kB / 447.6 MB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001624/0.5741, allocations: 60.95 kB / 447.7 MB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.622e-06/0.5741, allocations: 4 kB / 447.7 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.019e-06/0.5741, allocations: 0 / 447.7 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.33e-06/0.5741, allocations: 0 / 447.7 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009636/0.5751, allocations: 0.6077 MB / 448.3 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.218e-06/0.5751, allocations: 3.984 kB / 448.3 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006529/0.5758, allocations: 102.4 kB / 448.4 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.5769, allocations: 348.3 kB / 448.7 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.854e-05/0.577, allocations: 6.797 kB / 448.7 MB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009358/0.5864, allocations: 3.073 MB / 451.8 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.861e-06/0.5864, allocations: 0 / 451.8 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.5889, allocations: 0.8644 MB / 452.7 MB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/0.5893, allocations: 180.4 kB / 452.8 MB, free: 3.812 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.5895, allocations: 12 kB / 452.9 MB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000811/0.5903, allocations: 91.91 kB / 452.9 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.5905, allocations: 59.88 kB / 453 MB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.395e-05/0.5906, allocations: 8 kB / 453 MB, free: 3.645 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005015/0.5911, allocations: 285.2 kB / 453.3 MB, free: 3.367 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.06e-07/0.5911, allocations: 0 / 453.3 MB, free: 3.367 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008303/0.5919, allocations: 183.7 kB / 453.5 MB, free: 3.188 MB / 362.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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.0002346/0.5922, allocations: 119.2 kB / 453.6 MB, free: 3.059 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001864/0.5941, allocations: 0.6687 MB / 454.3 MB, free: 2.367 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.182e-06/0.5941, allocations: 0 / 454.3 MB, free: 2.367 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.5954, allocations: 434 kB / 454.7 MB, free: 1.934 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005298/0.5959, allocations: 84.33 kB / 454.8 MB, free: 1.855 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.5991, allocations: 0.8953 MB / 455.7 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000607/0.5998, allocations: 0.8475 MB / 456.5 MB, free: 68 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003431/0.6001, allocations: 43.39 kB / 456.5 MB, free: 24 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.6003, allocations: 27.44 kB / 456.6 MB, free: 16 MB / 378.7 MB Notification: Performance of SimCode: time 1.877e-06/0.6003, allocations: 0 / 456.6 MB, free: 16 MB / 378.7 MB Notification: Performance of Templates: time 0.0265/0.6268, allocations: 11.21 MB / 467.8 MB, free: 4.859 MB / 378.7 MB