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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.956/1.956, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.974e-05/2.977e-05, allocations: 4 kB / 292.7 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09644, allocations: 50.41 MB / 343.1 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.406/0.5025, allocations: 83.19 MB / 426.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.5028, allocations: 66.47 kB / 426.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.038/0.5408, allocations: 9.231 MB / 435.6 MB, free: 3.066 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.985e-06/0.5408, allocations: 4 kB / 435.6 MB, free: 3.062 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.687e-05/0.5409, allocations: 12 kB / 435.6 MB, free: 3.051 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.002353/0.5432, allocations: 0.8659 MB / 436.5 MB, free: 2.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.5433, allocations: 8.031 kB / 436.5 MB, free: 2.152 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.5435, allocations: 63.33 kB / 436.5 MB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007279/0.5442, allocations: 392.8 kB / 436.9 MB, free: 1.734 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.71e-05/0.5443, allocations: 31.22 kB / 436.9 MB, free: 1.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.5444, allocations: 45.52 kB / 437 MB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.5455, allocations: 467.8 kB / 437.4 MB, free: 1.359 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.5455, allocations: 7.891 kB / 437.4 MB, free: 1.352 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.621e-05/0.5456, allocations: 18.48 kB / 437.5 MB, free: 1.344 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.5457, allocations: 12 kB / 437.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.5467, allocations: 401.8 kB / 437.9 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004816/0.5515, allocations: 2.191 MB / 440.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003803/0.5554, allocations: 0.7265 MB / 440.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000627/0.556, allocations: 275.4 kB / 441.1 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.951e-05/0.5561, allocations: 8.312 kB / 441.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006996/0.5568, allocations: 304.1 kB / 441.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.42e-06/0.5568, allocations: 0 / 441.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001705/0.5585, allocations: 0.5602 MB / 441.9 MB, free: 13.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.79e-05/0.5586, allocations: 89.11 kB / 442 MB, free: 13.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000578/0.5592, allocations: 356.3 kB / 442.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.205e-05/0.5593, allocations: 32.64 kB / 442.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.5595, allocations: 232.5 kB / 442.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.5597, allocations: 126.4 kB / 442.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.5598, allocations: 6.812 kB / 442.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002074/0.56, allocations: 361.9 kB / 443.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004615/0.5605, allocations: 172.3 kB / 443.3 MB, free: 12.87 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004975/0.561, allocations: 211.6 kB / 443.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004713/0.5615, allocations: 194.1 kB / 443.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.602e-06/0.5615, allocations: 0 / 443.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001683/0.5632, allocations: 0.6156 MB / 444.3 MB, free: 12.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.738e-05/0.5633, allocations: 33.66 kB / 444.3 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.64e-06/0.5633, allocations: 8.062 kB / 444.3 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.5645, allocations: 336.2 kB / 444.6 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006429/0.5652, allocations: 110.3 kB / 444.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008736/0.5739, allocations: 3.076 MB / 447.8 MB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008969/0.5748, allocations: 110.1 kB / 447.9 MB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.202e-05/0.5749, allocations: 15.98 kB / 448 MB, free: 9.133 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.0001942/0.5751, allocations: 131 kB / 448.1 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.5753, allocations: 47.44 kB / 448.1 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001553/0.5754, allocations: 59.27 kB / 448.2 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.898e-06/0.5755, allocations: 4 kB / 448.2 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.05e-06/0.5755, allocations: 4 kB / 448.2 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.289e-06/0.5755, allocations: 0 / 448.2 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009435/0.5764, allocations: 0.607 MB / 448.8 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.646e-06/0.5765, allocations: 0 / 448.8 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006513/0.5771, allocations: 102.8 kB / 448.9 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.5783, allocations: 334.6 kB / 449.2 MB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.722e-05/0.5783, allocations: 11.5 kB / 449.2 MB, free: 8.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008861/0.5872, allocations: 3.084 MB / 452.3 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5872, allocations: 0 / 452.3 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/0.5897, allocations: 0.8605 MB / 453.2 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000343/0.59, allocations: 180.4 kB / 453.4 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.5902, allocations: 11.98 kB / 453.4 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008087/0.591, allocations: 91.92 kB / 453.5 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.5912, allocations: 59.86 kB / 453.5 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.567e-05/0.5913, allocations: 8.188 kB / 453.5 MB, free: 3.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004813/0.5918, allocations: 285.2 kB / 453.8 MB, free: 3.371 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.98e-07/0.5918, allocations: 0 / 453.8 MB, free: 3.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008294/0.5926, allocations: 179.7 kB / 454 MB, free: 3.195 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.0002299/0.5929, allocations: 127.2 kB / 454.1 MB, free: 3.059 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001869/0.5948, allocations: 0.6648 MB / 454.8 MB, free: 2.371 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.485e-06/0.5948, allocations: 3.938 kB / 454.8 MB, free: 2.367 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/0.596, allocations: 438.1 kB / 455.2 MB, free: 1.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005154/0.5966, allocations: 80.64 kB / 455.3 MB, free: 1.855 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003186/0.5998, allocations: 0.8953 MB / 456.2 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005881/0.6004, allocations: 0.8436 MB / 457 MB, free: 72 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003398/0.6007, allocations: 47.39 kB / 457.1 MB, free: 24 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.6009, allocations: 27.42 kB / 457.1 MB, free: 16 MB / 378.7 MB Notification: Performance of SimCode: time 1.85e-06/0.6009, allocations: 0 / 457.1 MB, free: 16 MB / 378.7 MB Notification: Performance of Templates: time 0.03066/0.6316, allocations: 11.21 MB / 468.3 MB, free: 4.859 MB / 378.7 MB