Running command: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.542e-05/2.555e-05, allocations: 4 kB / 292.1 MB, free: 8.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/0.08918, allocations: 50.42 MB / 342.5 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3583/0.4475, allocations: 83.25 MB / 425.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.4478, allocations: 67.77 kB / 425.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03793/0.4857, allocations: 9.232 MB / 435.1 MB, free: 2.969 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.062e-06/0.4858, allocations: 0 / 435.1 MB, free: 2.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.517e-05/0.4858, allocations: 12 kB / 435.1 MB, free: 2.957 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.002365/0.4882, allocations: 0.877 MB / 436 MB, free: 2.059 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.4882, allocations: 12.03 kB / 436 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.4884, allocations: 55.34 kB / 436 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007225/0.4892, allocations: 385 kB / 436.4 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.124e-05/0.4892, allocations: 33.08 kB / 436.5 MB, free: 1.621 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.4893, allocations: 45.34 kB / 436.5 MB, free: 1.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.4904, allocations: 471.7 kB / 437 MB, free: 1.262 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.4905, allocations: 7.953 kB / 437 MB, free: 1.254 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.859e-05/0.4905, allocations: 13.12 kB / 437 MB, free: 1.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.4906, allocations: 8 kB / 437 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.4916, allocations: 403.5 kB / 437.4 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004848/0.4965, allocations: 2.197 MB / 439.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003817/0.5003, allocations: 0.7222 MB / 440.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006149/0.501, allocations: 276.3 kB / 440.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.818e-05/0.501, allocations: 8.312 kB / 440.6 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000697/0.5017, allocations: 314.4 kB / 440.9 MB, free: 14.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.381e-06/0.5018, allocations: 0 / 440.9 MB, free: 14.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001682/0.5035, allocations: 0.5513 MB / 441.4 MB, free: 13.9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/0.5036, allocations: 85.11 kB / 441.5 MB, free: 13.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005749/0.5041, allocations: 353.3 kB / 441.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.934e-05/0.5042, allocations: 33.45 kB / 441.9 MB, free: 13.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/0.5045, allocations: 277.5 kB / 442.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.5046, allocations: 127.2 kB / 442.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.329e-05/0.5047, allocations: 3.625 kB / 442.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.5049, allocations: 333.2 kB / 442.6 MB, free: 12.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004636/0.5054, allocations: 175.9 kB / 442.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005007/0.5059, allocations: 212.5 kB / 443 MB, free: 12.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004694/0.5064, allocations: 198.1 kB / 443.2 MB, free: 12.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.264e-06/0.5064, allocations: 0 / 443.2 MB, free: 12.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001641/0.508, allocations: 0.5843 MB / 443.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.842e-05/0.5081, allocations: 37.22 kB / 443.8 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.418e-06/0.5081, allocations: 0 / 443.8 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001226/0.5093, allocations: 339.3 kB / 444.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006444/0.51, allocations: 107.8 kB / 444.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008868/0.5189, allocations: 3.073 MB / 447.3 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009175/0.5198, allocations: 114.5 kB / 447.4 MB, free: 9.051 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.766e-05/0.5199, allocations: 8 kB / 447.4 MB, free: 9.043 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.0002111/0.5202, allocations: 143.4 kB / 447.6 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.5203, allocations: 47.44 kB / 447.6 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/0.5204, allocations: 49.22 kB / 447.7 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.053e-06/0.5205, allocations: 4 kB / 447.7 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.707e-06/0.5205, allocations: 4 kB / 447.7 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.725e-06/0.5205, allocations: 3.984 kB / 447.7 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009335/0.5214, allocations: 0.6044 MB / 448.3 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.341e-06/0.5215, allocations: 8 kB / 448.3 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006562/0.5221, allocations: 99.17 kB / 448.4 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.5233, allocations: 337.8 kB / 448.7 MB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.913e-05/0.5233, allocations: 14.67 kB / 448.7 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008718/0.5321, allocations: 3.076 MB / 451.8 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.682e-06/0.5321, allocations: 0 / 451.8 MB, free: 5.203 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.5345, allocations: 0.8647 MB / 452.7 MB, free: 4.316 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003482/0.5349, allocations: 184.4 kB / 452.9 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.535, allocations: 4 kB / 452.9 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008089/0.5359, allocations: 103.9 kB / 453 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.5361, allocations: 51.88 kB / 453 MB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.938e-05/0.5361, allocations: 15.98 kB / 453 MB, free: 3.945 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004708/0.5366, allocations: 281.2 kB / 453.3 MB, free: 3.672 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.01e-07/0.5366, allocations: 0 / 453.3 MB, free: 3.672 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000802/0.5374, allocations: 179.7 kB / 453.5 MB, free: 3.496 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.0002295/0.5377, allocations: 121.9 kB / 453.6 MB, free: 3.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001857/0.5396, allocations: 0.6648 MB / 454.3 MB, free: 2.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.671e-06/0.5396, allocations: 4 kB / 454.3 MB, free: 2.676 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/0.5408, allocations: 437.5 kB / 454.7 MB, free: 2.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004939/0.5413, allocations: 69.41 kB / 454.8 MB, free: 2.172 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.5446, allocations: 0.9361 MB / 455.7 MB, free: 1.211 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005984/0.5452, allocations: 0.8475 MB / 456.6 MB, free: 344 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.5454, allocations: 39.42 kB / 456.6 MB, free: 304 kB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.5454, allocations: 0 / 456.6 MB, free: 304 kB / 362.7 MB Notification: Performance of Templates: time 0.01629/0.5617, allocations: 8.991 MB / 465.6 MB, free: 7.352 MB / 378.7 MB