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.2_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.247e-05/4.261e-05, allocations: 7.203 kB / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07748/0.07755, allocations: 44.5 MB / 299.8 MB, free: 6.648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3457/0.4233, allocations: 75.84 MB / 375.7 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.4236, allocations: 68.42 kB / 375.7 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03327/0.4569, allocations: 8.216 MB / 384 MB, free: 21.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.976e-06/0.457, allocations: 0 / 384 MB, free: 21.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.703e-05/0.457, allocations: 9.5 kB / 384 MB, free: 21.48 MB / 314.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.00211/0.4591, allocations: 0.8299 MB / 384.8 MB, free: 20.97 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4592, allocations: 9.625 kB / 384.8 MB, free: 20.97 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.4594, allocations: 55.53 kB / 384.9 MB, free: 20.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006171/0.46, allocations: 372.9 kB / 385.2 MB, free: 20.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.813e-05/0.4601, allocations: 31.34 kB / 385.3 MB, free: 20.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.4602, allocations: 33.91 kB / 385.3 MB, free: 20.69 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.4613, allocations: 462.8 kB / 385.7 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.4613, allocations: 1.625 kB / 385.7 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.052e-05/0.4614, allocations: 18 kB / 385.8 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.4614, allocations: 8.344 kB / 385.8 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.4625, allocations: 385.5 kB / 386.2 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004605/0.4671, allocations: 2.037 MB / 388.2 MB, free: 19.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003656/0.4708, allocations: 0.7139 MB / 388.9 MB, free: 19.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006604/0.4715, allocations: 266.9 kB / 389.2 MB, free: 19.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.049e-05/0.4716, allocations: 15.02 kB / 389.2 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006213/0.4722, allocations: 291.1 kB / 389.5 MB, free: 19.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 3.752e-06/0.4723, allocations: 3.938 kB / 389.5 MB, free: 19.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.00163/0.4739, allocations: 0.5501 MB / 390 MB, free: 19.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.474, allocations: 81.02 kB / 390.1 MB, free: 19.44 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004722/0.4745, allocations: 315.5 kB / 390.4 MB, free: 19.33 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.4746, allocations: 40.19 kB / 390.4 MB, free: 19.3 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.4747, allocations: 270.5 kB / 390.7 MB, free: 19.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.4749, allocations: 132.9 kB / 390.8 MB, free: 19.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.4749, allocations: 11.56 kB / 390.8 MB, free: 19.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.141e-05/0.475, allocations: 328.4 kB / 391.2 MB, free: 18.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004194/0.4754, allocations: 163.1 kB / 391.3 MB, free: 18.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000468/0.4759, allocations: 205.2 kB / 391.5 MB, free: 18.67 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004332/0.4763, allocations: 185.6 kB / 391.7 MB, free: 18.63 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.72e-06/0.4764, allocations: 3.906 kB / 391.7 MB, free: 18.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00157/0.478, allocations: 0.5747 MB / 392.3 MB, free: 18.53 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.159e-05/0.478, allocations: 32.98 kB / 392.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.484e-06/0.478, allocations: 0 / 392.3 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/0.4791, allocations: 337.6 kB / 392.6 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005676/0.4797, allocations: 97.86 kB / 392.7 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008102/0.4879, allocations: 3.066 MB / 395.8 MB, free: 17.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009952/0.4889, allocations: 111.1 kB / 395.9 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.804e-05/0.489, allocations: 11.8 kB / 395.9 MB, free: 17.02 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.0001719/0.4892, allocations: 134.2 kB / 396.1 MB, free: 16.9 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.4893, allocations: 46.81 kB / 396.1 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.4895, allocations: 52.78 kB / 396.2 MB, free: 16.87 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.784e-06/0.4895, allocations: 7.906 kB / 396.2 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.796e-06/0.4895, allocations: 3.516 kB / 396.2 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.318e-06/0.4895, allocations: 0 / 396.2 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007933/0.4903, allocations: 0.5833 MB / 396.8 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.178e-06/0.4903, allocations: 3.938 kB / 396.8 MB, free: 16.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000629/0.491, allocations: 89.06 kB / 396.8 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.4921, allocations: 329.9 kB / 397.2 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.273e-05/0.4922, allocations: 14.81 kB / 397.2 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008885/0.5011, allocations: 3.051 MB / 400.2 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.116e-06/0.5012, allocations: 2.344 kB / 400.2 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.5035, allocations: 0.8352 MB / 401.1 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.5038, allocations: 180.2 kB / 401.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.5039, allocations: 3.5 kB / 401.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008477/0.5048, allocations: 89.17 kB / 401.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.505, allocations: 48.59 kB / 401.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.315e-05/0.5051, allocations: 11.72 kB / 401.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003492/0.5054, allocations: 257.2 kB / 401.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-07/0.5054, allocations: 0 / 401.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008351/0.5063, allocations: 167.8 kB / 401.8 MB, free: 14.85 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.0002081/0.5065, allocations: 130.6 kB / 401.9 MB, free: 14.74 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.5082, allocations: 0.6577 MB / 402.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.023e-06/0.5082, allocations: 0 / 402.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.5098, allocations: 439.8 kB / 403 MB, free: 30.4 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006288/0.5105, allocations: 69.56 kB / 403.1 MB, free: 30.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003057/0.5135, allocations: 0.8004 MB / 403.9 MB, free: 30.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005089/0.5141, allocations: 0.8445 MB / 404.7 MB, free: 29.4 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/0.5143, allocations: 30.16 kB / 404.8 MB, free: 29.39 MB / 330.7 MB Notification: Performance of SimCode: time 1.773e-06/0.5143, allocations: 0 / 404.8 MB, free: 29.39 MB / 330.7 MB Notification: Performance of Templates: time 0.0137/0.528, allocations: 8.328 MB / 413.1 MB, free: 28.23 MB / 330.7 MB